
报错→RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)
如图所示,这个问题怎么解决呀?谢谢!

这个报错是因为你的PyTorch版本使用了CUDA,但是Stable Diffusion没有正确配置使用CUDA。有几种解决方法: