Instructions to use hotshotco/Hotshot-XL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hotshotco/Hotshot-XL with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hotshotco/Hotshot-XL", 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
How to run with diffusers?
#2
by imwide - opened
I tried running with diffusers but there is no pipeline for HotshotXL so it doesnt work... this is my code so far:
from diffusers import DiffusionPipeline
pipeline_gifs = DiffusionPipeline.from_pretrained("hotshotco/Hotshot-XL", torch_dtype=torch.float16)
pipeline_gifs.to("cuda")
Sadly it doesnt load and says "diffusers has no attribute "HotshotXLPipeline"
Hello!
the pipeline is in the Hotshot-XL repo - https://github.com/hotshotco/Hotshot-XL/tree/main/hotshot_xl/pipelines
To integrate it - there's a full working example here which you can cherry pick from: https://github.com/hotshotco/Hotshot-XL/blob/main/inference.py
aakashs changed discussion status to closed