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
Commit History
-
Fix deprecated float16/fp16 variant loading through new `version` API. (#21)
- Fix deprecated float16/fp16 variant loading through new `version` API. (a7b1e851c8090882146ee8ed207047d61755d8ea)572c992
-
Update vae/config.json (#9)
- Update vae/config.json (197e90fe98a07bfa6e040a0872d7bfdd25707147) Co-authored-by: ちくわぶ <Prgckwb@users.noreply.huggingface.co>c1d3e48
-
Adding `safetensors` variant of this model (#3)
- Adding `safetensors` variant of this model (41c0823eeac255f85303ad3efc553817f3647375)a44206c
-
add diffusers model
c13f588