Giter Site home page Giter Site logo

Comments (5)

AzureSkyHuHu avatar AzureSkyHuHu commented on June 30, 2024

RuntimeError: stack expects each tensor to be equal size, but got [4] at entry 0 and [5] at entry 7

from captcha_break.

ypwhs avatar ypwhs commented on June 30, 2024

你可以检查一下文件夹里的图片,是否都是RGB图片,尺寸是否一致。

如果不一致,你需要手动写一个 collate 函数,对尺寸不一致的图片进行一个补全操作(padding)。
比如先创建一个 (batch_size, height, max_width, 3) 的矩阵,然后将每张图贴进去。

参考链接:

from captcha_break.

AzureSkyHuHu avatar AzureSkyHuHu commented on June 30, 2024

已解决 谢谢大佬

from captcha_break.

Alexuebo avatar Alexuebo commented on June 30, 2024

大佬您好,为什么我检查了我图片尺寸都是一样的(3x70x200),还是出现了这种问题呢?以及collate_fn函数具体要怎么操作啊
image

from captcha_break.

jjw12345 avatar jjw12345 commented on June 30, 2024

我是训练效果很差。。。

from captcha_break.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.