Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
lora
Instructions to use bodam/0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bodam/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("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("bodam/0") prompt = "A k2b3d chair" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download unet/convert.py from bodam/0: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/bodam/0/resolve/main/unet/convert.py
- Command line
-
hf download hf://bodam/0/unet/convert.py
-
curl -L -o convert.py https://huggingface.co/bodam/0/resolve/main/unet/convert.py
207 Bytes
| from diffusers import StableDiffusionXLPipeline | |
| pipe = StableDiffusionXLPipeline.from_single_file("/root/Dreambooth/experiments/chair1/0/unet/diffusion_pytorch_model.safetensors") | |
| pipe.save_pretrained("./") |