Open unography opened 8 years ago
Can you give me a bit more info as to how this error came about? Are you using the command line tools or one of the model classes? Have you properly set the image sizes?
Hi there, I am jumping in as I have the same problem regardless of the model used. I am using the code from the notebook. My own images (64x64=4096) are loaded without trouble (dimensions are set). Here is the error (I am on OSX10.11):
Traceback (most recent call last):
File "test.py", line 12, in
Expect: prod(in_types[0].shape[1:]) == in_types[1].shape[1] Actual: 4096 != 12288
I would greatly appreciate if you could help! Cheers.
I had the same issue, resolved by using the --shape flag to specify image size for the train command, ie:
fauxtograph train --kl_ratio 0.005 --shape 64 64 ./images ./models/modelname
Hi, @tjtorres and @RobGeada have got the similar problem.. My Image size is 300X300 and Gray Scale
`fauxtograph train --kl_ratio 0.005 --shape 300 300 /home/dl-box/Arghya/arghya/lasttry/images/ ./models/VAE
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 49/49 [00:00<00:00, 1781.81it/s]
Image Files Loaded!
epoch: 1
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/usr/local/bin/fauxtograph", line 11, in
Expect: prod(in_types[0].shape[1:]) == in_types[1].shape[1] Actual: 90000 != 270000
`
I'm having the same issue. I was able to pass the colored images with --shape, but after I converted to gray scale, I get this error again. Even after converting them to 125x150 just to be sure.
While training on my own images, I'm getting this error,
chainer.utils.type_check.InvalidType: Invalid operation is performed in: LinearFunction (Forward)
Expect: prod(in_types[0].shape[1:]) == in_types[1].shape[1] Actual: 259656 != 27648