Moire-Pattern-Detection icon indicating copy to clipboard operation
Moire-Pattern-Detection copied to clipboard

predict error

Open zlszhonglongshen opened this issue 4 years ago • 3 comments

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

zlszhonglongshen avatar Jan 14 '22 08:01 zlszhonglongshen

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

world2025 avatar Feb 14 '22 06:02 world2025

"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")

luoyexk avatar Jan 04 '23 01:01 luoyexk

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

world2025 avatar Jan 04 '23 06:01 world2025