Instructions to use DeepFloyd/IF-I-XL-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DeepFloyd/IF-I-XL-v1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-XL-v1.0", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
process stage2 error
#19
by colacool - opened
When I use demo code:
#stage 2
image = stage_2(
image=image,
prompt_embeds=prompt_embeds,
negative_prompt_embeds=negative_embeds,
generator=generator,
output_type="pt",
).images
It throwed an exception like:
image = stage_2(
File "/usr/local/anaconda/envs/vision/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
TypeError: call() got an unexpected keyword argument 'image'
How could I do with it? I use diffusers 0.16.0 and pytrch 1.10.1
I choose the stage2 model by mistake..
colacool changed discussion status to closed