-
Notifications
You must be signed in to change notification settings - Fork 288
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
UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum. #33
Comments
Guess this problem is caused by Pillow 7.0: pytorch/vision#1846 |
@Mukosame I have the same issue. Going to Pillow 6.2.1 did not help as referenced in that link. |
I solved it by using
Note that in my project, not in PyTorch-CycleGAN. |
One thing to note is that T.InterpolationMode.* seem to be equal to Image.*. So we may ignore this warning safely (at least for now). |
can you let me know what T is in your code? |
@akshat-kulsh It's a long time ago, so I can't remember, but it's probably code like this:
|
I believe you can also omit the InterpolationMode, and just have the |
Yes, excellent - that worked for me. |
Setting up a new session...
Namespace(batchSize=1, cuda=True, dataroot='C:\Users\MaYu\Desktop\Dachuang\datasets\horse2zebra', decay_epoch=100, epoch=0, input_nc=3, lr=0.0002, n_cpu=6, n_epochs=200, output_nc=3, size=256)
E:\anaconda\anaconda\envs\pytorch\lib\site-packages\torchvision\transforms\transforms.py:257: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
warnings.warn(
help me plz!
The text was updated successfully, but these errors were encountered: