Closed diaodeyi closed 3 years ago
This seems to be an issue with your GPU and CUDA environment. If you provide more information we can try helping, but I recommend looking into this issue through other forums that are more knowledgeable about correctly configuring CUDA.
Loading pSp from checkpoint: ./experiment/checkpoint/psp_ffhq_frontalization.pt
Loading dataset for ffhq_frontalize
0%| | 0/500 [00:00<?, ?it/s]
Traceback (most recent call last):
File "scripts/inference.py", line 133, in
my GPU is TITAN XP and my CUDA is 10.2 , pytorch version is 1.6.0 ,i don‘t know what’s wrong
It could be that your pytorch version is not compatible with your GPU. Please refer to this thread for a more detailed explanation that I hope you find useful: https://github.com/pytorch/pytorch/issues/31285
yeah,that works. Thank you so much ! By the way , where to find the sketch and the Mask data image to vertify the generation task?
Here you can find the original CelebA-HQ dataset along with the segmentation maps for performing segmentation-to-image: https://github.com/switchablenorms/CelebAMask-HQ
Regarding the sketch data we used in the paper, we actually generated the data ourselves using a simple Sobel operator followed by Simo-Serra's sketch simplification (https://github.com/bobbens/sketch_simplification).
I added the script we used for generating the dataset to: scripts/generate_sketch_data.py
Thanks ,but the sketch script with a wrong that "CUDA error: out of memory" , actually the memory is enough.. maybe the sketch_gan Model is not compatible with the pytorch version?
That is possible. If I remember correctly, I wrote a note at the top of the script mentioning that you need to install specific versions of pytorch and torchvision to work with their sketch simplification model. Try running the script using those versions.
yeah,that works. Thank you so much ! By the way , where to find the sketch and the Mask data image to vertify the generation task?
How did you solve the problem? I get the same error and can not find the solution.
Hi @xzwthu , If you provide some more details about your GPU and CUDA environment I can try helping you out
there is wrong with inference :no kernel image is available for execution on the device , but i don’t know how to solve it.