lumina37 / rotate-captcha-crack

CNN预测图片旋转角✨可用于破解旋转验证码
The Unlicense
312 stars 89 forks source link

RuntimeError (CUDA) #27

Closed SVJA7IK closed 8 months ago

SVJA7IK commented 8 months ago

I'm running code on a version of Python 3.10 via server.py. For some reason I get an error : RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to ma p your storages to the CPU.

lumina37 commented 8 months ago

If you already have a CUDA device, maybe you need to install PyTorch with CUDA runtime, see this tutorial.