Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片大小设置 #10

Open
Lewin671 opened this issue Mar 3, 2019 · 4 comments
Open

图片大小设置 #10

Lewin671 opened this issue Mar 3, 2019 · 4 comments

Comments

@Lewin671
Copy link

Lewin671 commented Mar 3, 2019

RuntimeError: size mismatch, m1: [64 x 8960], m2: [1344 x 1024] at /pytorch/aten/src/TH/generic/THTensorMath.cpp:940
设置了自己定义的图片大小后出现不匹配的错误,请问如何解决?

@movecpp
Copy link

movecpp commented Mar 24, 2019

160X60

@asyncins
Copy link

asyncins commented May 2, 2019

RuntimeError: size mismatch, m1: [64 x 8960], m2: [1344 x 1024] at /pytorch/aten/src/TH/generic/THTensorMath.cpp:940
设置了自己定义的图片大小后出现不匹配的错误,请问如何解决?

图片宽高在 captcha_setting.py 文件中设置,然后检查其他文件中用到图片宽高值的地方,保持同步即可。

@xunuodfh
Copy link

RuntimeError: size mismatch, m1: [64 x 8960], m2: [1344 x 1024] at /pytorch/aten/src/TH/generic/THTensorMath.cpp:940
设置了自己定义的图片大小后出现不匹配的错误,请问如何解决?

我也遇到这个问题了,你解决了么?

@enjoyhomelife
Copy link

将captcha_gen.py中第18行修改为:
image = ImageCaptcha(captcha_setting.IMAGE_WIDTH, captcha_setting.IMAGE_HEIGHT)
即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants