AUTOMATIC1111 / stable-diffusion-webui-pixelization

stable-diffusion-webui-pixelization
MIT License
550 stars 72 forks source link

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. #21

Closed cryptobrims closed 1 year ago

cryptobrims commented 1 year ago

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.

Getting this error when trying to generate an image. Added all 3 checkpoints already. I also added "map_location=torch.device('cpu') to the pixelization_model.py file after doing some googles but same error

cryptobrims commented 1 year ago

Someone actually provided a fix for this already

https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization/issues/14#issuecomment-1518890600