Skip to content

Errors when attempting to generate image using torch cpu() #118

Description

@salamanders

I'm attempting to run the demo on a machine that doesn't have a CUDA compatible GPU. I got as far as the sample command:

python scripts/txt2img.py --prompt "a virus monster is playing guitar, oil on canvas" --ddim_eta 0.0 --n_samples 4 --n_iter 4 --scale 5.0 --ddim_steps 50

I noticed that at this location, it only uses model.cuda() but later in the file has

device=torch.device("cuda") iftorch.cuda.is_available() elsetorch.device("cpu")
model=model.to(device)

Is this intentional, or can the demo be run on a CPU-only output?

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