-
Notifications
You must be signed in to change notification settings - Fork 54
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
While training on own images, getting a Invalid operation is performed in: LinearFunction (Forward) error #16
Comments
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): Expect: prod(in_types[0].shape[1:]) == in_types[1].shape[1] I would greatly appreciate if you could help! |
I had the same issue, resolved by using the --shape flag to specify image size for the train command, ie: |
Hi, @tjtorres and @RobGeada `fauxtograph train --kl_ratio 0.005 --shape 300 300 /home/dl-box/Arghya/arghya/lasttry/images/ ./models/VAE Expect: prod(in_types[0].shape[1:]) == in_types[1].shape[1] ` |
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
The text was updated successfully, but these errors were encountered: