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

result is black #2

Open
vbqgyy opened this issue Apr 30, 2021 · 8 comments
Open

result is black #2

vbqgyy opened this issue Apr 30, 2021 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@vbqgyy
Copy link

vbqgyy commented Apr 30, 2021

(PY388) G:\proj\YUs_Ai\02PYTORCH\00style_transfer\HD\00Structure-emphasized-Multimodal-Style-Transfer-master\SEMST_Original>python test.py -c ../content/avril.jpg -s ../style/horse.jpg
CUDA available: GeForce RTX 3090
SEMST_Original_model_state.pth loaded
result saved into files starting with avril_horse

————————————————————————————————————
All is good, but the result is black
win10
pytorch 1.8.1
python 3.8
rtx 3090
cuda 11.1
avril_horse_style_transfer_demo

@irasin
Copy link
Owner

irasin commented May 1, 2021

Does any error occur?

I have not tested on the newest Pytorch yet. Show me the log if possible.

@vbqgyy
Copy link
Author

vbqgyy commented May 2, 2021 via email

@irasin
Copy link
Owner

irasin commented May 5, 2021

Hi, @vbqgyy

I tested it on PyTorch1.8 cpu and it seems OK. Check your env again please.

avril_horse_style_transfer_demo

image

@irasin irasin closed this as completed May 5, 2021
@vbqgyy
Copy link
Author

vbqgyy commented May 6, 2021

There is no problem with cpu, only gpu has a problem。

@irasin
Copy link
Owner

irasin commented May 6, 2021

@vbqgyy

Sorry, I will check it later

@irasin irasin reopened this May 6, 2021
@vbqgyy
Copy link
Author

vbqgyy commented May 6, 2021

That would be great. Thank you.

@irasin
Copy link
Owner

irasin commented May 6, 2021

Hi, @vbqgyy

I have tested on cuda11 + Pytorch1.8,1 and the result is wrong indeed. And the reason why the result is black, is because the output of Model is Nan.

However, when I tested it on cuda10.1 + Pytorch1.7.1, the result is OK again.

I guess there are some version compatibility problems here. I will fix it if I have time. Or you can check it by yourself. Best wish.

@irasin irasin added bug Something isn't working help wanted Extra attention is needed labels May 6, 2021
@vbqgyy
Copy link
Author

vbqgyy commented May 7, 2021

@irasin
Thank you for taking the time to do the test.I am just a beginner.I guess it will take a lot of time and luck to complete this thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants