Instructions to use levihsu/OOTDiffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use levihsu/OOTDiffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("levihsu/OOTDiffusion", 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
path to generated images
Hello, maybe I am missing something here, but when I generate images using the API, I get for instance this result:
[{'image': '/tmp/gradio/4dfbca53f14a124020e9d58eacdd21fa0a59c92ca807d7a6ee8c3cee3d4504e5/image.webp', 'caption': None}]
but when I try to visit the url for this image: https://levihsu-ootdiffusion.hf.space/file=/tmp/gradio/4dfbca53f14a124020e9d58eacdd21fa0a59c92ca807d7a6ee8c3cee3d4504e5/image.webp
I get a "File not found: /tmp/gradio/4dfbca53f14a124020e9d58eacdd21fa0a59c92ca807d7a6ee8c3cee3d4504e5/image.webp." mistake also it seems that the generated path 4dfbca53f14a124020e9d58eacdd21fa0a59c92ca807d7a6ee8c3cee3d4504e5 are much longer in the apiu compared to the gradio app where it works fine. Am I missing something here ?
Thanks in advance