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
train doesn't run: ValueError: not enough values to unpack (expected 3, got 2) #25
Comments
Are you using png images? I ran into this too and found out that this project can only handle jpg. |
Yep. Ok, thanks, I'll try without png. |
As @xaionaro pointed out this might be an issue with the format of image, you can convert the image to relevant format using the following code: from PIL import Image
content_image = Image.open('/path/to/image')
content_rgb_image = content_image.convert('RGB')
content_rgb_image.save('/path/to/output/image') |
@abhiskk - Actually, it would be helpful if this code was incorporated into the project so people can use any type of image. The current error: @xaionaro - if you want a quick way to convert all |
@achaiah - Point noted, I will try to incorporate this soon. Any PRs are also welcome. This code is also part of the pytorch/examples repo, so if you want you can open a PR in that repo also. |
Hello.
train
doesn't run:The text was updated successfully, but these errors were encountered: