Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
Inference Endpoints

TypeError: unsupported operand type(s) for //: 'int' and 'list'

#14
by OzzyD - opened

Morning

I've just changed my code to try and work with "stability/stable-diffusion-2" as opposed to "runwayml/stable-diffusion-v1-5". When the command
"pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2", ...)" runs as suggested, I get the error "TypeError: unsupported operand type(s) for //: 'int' and 'list'" (Line 554 of 'diffusers/models/unet_2d_blocks.py' (init))

This happens on diffusers v0.8.1 after an update from 0.6 which caused a different error.

Any advice on how to solve this issue?

Hi @OzzyD

You should run the following command:
pip install --upgrade git+https://github.com/huggingface/diffusers.git transformers accelerate scipy

Thank you @mgrau this has solved my issue.

OzzyD changed discussion status to closed

Sign up or log in to comment