TypeError: getattr(): attribute name must be string

#37
by lorindol - opened

When I run the code below from Google Colab, I get the following error: TypeError: getattr(): attribute name must be string
from diffusers import StableDiffusionPipeline
import torch

model_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16")
pipe = pipe.to("cuda")

Not being able to define the pipe variable blocks moving any further with the process.

Found the issue! My diffuser was not up to date.

lorindol changed discussion status to closed

Sign up or log in to comment