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

predict error #21

Open
zlszhonglongshen opened this issue Jan 14, 2022 · 3 comments
Open

predict error #21

zlszhonglongshen opened this issue Jan 14, 2022 · 3 comments

Comments

@zlszhonglongshen
Copy link

aleImage
imgVector = imgLL.reshape(1, WIDTH*HEIGHT)
ValueError: cannot reshape array of size 126025 into shape (1,187500)

@tkone2018
Copy link

@zlszhonglongshen 你好,请问你解决了吗 顺便能告诉一下各个库的版本吗,谢谢

@luoyexk
Copy link

luoyexk commented Jan 4, 2023

"Note - Resize Images to WIDTH = 1000 and HEIGHT = 750"

建议训练图片修改成以上比例

我使用以下方式重新修改了图片的宽高后, 没有出现上述错误

from PIL import Image

img = Image.open("image/1.jpg")
img = img.resize(size=(1000, 750))
img.save("img.jpg")

@tkone2018
Copy link

@luoyexk 谢谢,请问下你这边运行成功的各个包的版本能说下吗

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

3 participants