Instructions to use hf-internal-testing/tiny-stable-diffusion-xl-refiner-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-stable-diffusion-xl-refiner-pipe with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-xl-refiner-pipe", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 65e2f10112dde557a0df2d3d42245d78c621f9ab8e8587990a9ea77f7de0c496
- Size of remote file:
- 2.65 MB
- SHA256:
- 7999b516094ac4239121d9f62a37e6be99620e7016220011bb99cf8b1a391aad
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.