Skip to content

Error loading module. Only CUDA backend is supported #238

Description

@sibernewf

I have been setting this up in Ubuntu 22 in a Virtualbox Vm.

I have followed the instructions as indicated, except for the part to get the weights. Instead I curled them as below:
curl https://www.googleapis.com/storage/v1/b/aai-blog-files/o/sd-v1-4.ckpt?alt=media > sd-v1-4.ckpt

when i try: python3 scripts/dream.py (or with the -l extension), I receive the following output:

Error loading model. Only the CUDA backend is supported
Traceback (most recent call last):
File "/home/alan/stable-diffusion/ldm/simplet2i.py", line 536, in load_model
self.device = self._get_device()
File "/home/alan/stable-diffusion/ldm/simplet2i.py", line 527, in _get_device
device_type = choose_torch_device()
File "/home/alan/stable-diffusion/ldm/dream/devices.py", line 7, in choose_torch_device
if torch.backends.mps.is_available():
AttributeError: module 'torch.backends' has no attribute 'mps'

Any Ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions