Run this model with HF Jobs
Run stabilityai/stable-diffusion-x4-upscaler on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use stabilityai/stable-diffusion-x4-upscaler with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-x4-upscaler with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-x4-upscaler", 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
Adding `safetensors` variant of this model
#3
by patrickvonplaten - opened
Files changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:cce6febb0b6d876ee5eb24af35e27e764eb4f9b1d0b7c026c8c3333d4cfc916csize 1361597018123version https://git-lfs.github.com/spec/v1oid sha256:b6dc05aaae1ba43c230612932492a81e431126582481fd6c7d94c6b15f9ce584size 1893675621123version https://git-lfs.github.com/spec/v1oid sha256:33478c297ec29218100f8ee86007b3ab4c2701896d5ca5c9e3a84fc29f678183size 221326504123version https://git-lfs.github.com/spec/v1oid sha256:35c01d6160bdfe6644b0aee52ac2667da2f40a33a5d1ef12bbd011d059057bc6size 3531269371text_encoder/model.safetensorsAdded+3
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/diffusion_pytorch_model.safetensorsAdded+3
x4-upscaler-ema.safetensorsAdded+3