Skip to content

"User specified autocast device_type must be 'cuda' or 'cpu'" on M1 Mac #293

Description

@bfirsh

We're trying to convert our guide which currently on HN right now (!) to use your fork but running into trouble.

We're installing with plain pip rather than Conda using these requirements.

However we're getting this error:

ben@MacBook-Pro ~/p/tmp/stable-diffusion [lstein]
± % python scripts/dream.py --full_precision                                                                                                                                                                   !10211
* Initializing, be patient...

>> Loading model from models/ldm/stable-diffusion-v1/model.ckpt
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Using slower but more accurate full-precision math (--full_precision)
>> Setting Sampler to k_lms
>> model loaded in 5.78s

* Initialization done! Awaiting your command (-h for help, 'q' to quit)
dream> a red juicy apple floating in outer space, like a planet
User specified autocast device_type must be 'cuda' or 'cpu'
Are you sure your system has an adequate NVIDIA GPU?
>> Usage stats:
>>   0 image(s) generated in 0.00s
>>   Max VRAM used for this generation: 0.00G
Outputs:

More context: https://news.ycombinator.com/item?id=32680293

Any ideas on how to fix @lstein et al?

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