nicolai256 / Stable-textual-inversion_win

MIT License
241 stars 43 forks source link

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. #26

Open CptJackieSparrow opened 1 year ago

CptJackieSparrow commented 1 year ago

Hey, I'm trying the run the code on win 11, latest update, RTX 3080 Ti I'm getting this error constantly.

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 map your storages to the CPU.

nicolai256 commented 1 year ago

Hey, I'm trying the run the code on win 11, latest update, RTX 3080 Ti I'm getting this error constantly.

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 map your storages to the CPU.

does it stop your training?