Skip to content
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

bad result #6

Closed
junedwx opened this issue Dec 2, 2022 · 6 comments
Closed

bad result #6

junedwx opened this issue Dec 2, 2022 · 6 comments

Comments

@junedwx
Copy link

junedwx commented Dec 2, 2022

Hi, I ran the test code test.py, but the result was bad. Can you tell me what's wrong?
My input is: test.py --name paired --resize_or_crop scale_width --batchSize 1 --gpu_ids 0 --predmask
the result like this:
image

@jokerlc
Copy link
Owner

jokerlc commented Dec 5, 2022

which torch version did you use?

@junedwx
Copy link
Author

junedwx commented Dec 5, 2022

which torch version did you use?

python --> 3.8.5
torch --> 1.7.1
1670235190033

@jokerlc
Copy link
Owner

jokerlc commented Dec 5, 2022

maybe it's due to the env, you can try update torch to 1.8

@junedwx
Copy link
Author

junedwx commented Dec 8, 2022

maybe it's due to the env, you can try update torch to 1.8

Thanks for your reply. I upgraded pytorch to 1.10.2, and the results are similar to those in the paper.

I have another question to ask, F.grid and interpolate function : align_corners=True parameter is not set in the current code. Will the result be affected?

warning: /root/miniconda3/lib/python3.8/site-packages/torch/nn/functional.py:3631: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.

@jokerlc
Copy link
Owner

jokerlc commented Dec 8, 2022

i think it doesn't affect

@junedwx
Copy link
Author

junedwx commented Dec 8, 2022

i think it doesn't affect
Thank you for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants