xinntao / ESRGAN

ECCV18 Workshops - Enhanced SRGAN. Champion PIRM Challenge on Perceptual Super-Resolution. The training codes are in BasicSR.
https://github.com/xinntao/BasicSR
Apache License 2.0
5.91k stars 1.05k forks source link

What does "Torch not compiled with CUDA enabled" means? #88

Open sonic4380 opened 4 years ago

sonic4380 commented 4 years ago

I'm trying to put the command "python test.py --cpu models/RRDB_ESRGAN_x4.pth", but it doesn't work, instead, i get an error saying "Torch not compiled with CUDA enabled", i'm using a Laptop with Intel i5 Graphics card, is there anything i can do? image

xinntao commented 4 years ago

You need to change these lines: from "cuda" to "cpu" https://github.com/xinntao/ESRGAN/blob/435851ee28ef315df3fa59eae0328e76a618ac40/test.py#L9-L10

sonic4380 commented 4 years ago

But it doesn't even say "cuda"!, it says "model = model.to(device)", so something must be really wrong, right?

ignaciotcrespo commented 4 years ago

for me this worked ok

python3 test.py --cpu models/YOURMODEL.pth

using the repo at https://github.com/BlueAmulet/ESRGAN.git