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
Getting error in Google Colab provided on GitHub
Tried the Google Colab provided on GitHub. But unable to import T5EncoderModel
Error OSError: DeepFloyd/IF-I-IF-v1.0 is not a local folder and is not a valid model identifier listed on
'https://huggingface.co/models
If this is a private repository, make sure to pass a token having permission to this repo with use_auth_token or
log in with huggingface-cli login and pass use_auth_token=True.
I have accepted License and able to load the model using diffusers. But memory crashes, Please help.
I have the same error and I don't know how to fix it.
From the notebook: "Accept the license on the model card of DeepFloyd/IF-I-XL-v1.0. Accepting the license on the stage I model card will auto accept for the other IF models."
You can do that here: https://huggingface.co/DeepFloyd/IF-I-XL-v1.0
Restart the notebook afterwards