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
Fix deprecated float16/fp16 variant loading through new `version` API.
#21
by patrickvonplaten - opened
Files changed (6)
123version https://git-lfs.github.com/spec/v1oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668size 680821096123version https://git-lfs.github.com/spec/v1oid sha256:7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01size 680900852123version https://git-lfs.github.com/spec/v1oid sha256:36f27094ab4f113a2021540b85ce05f9ccf3f54f21a04f8be9a2497804a577f7size 947082088123version https://git-lfs.github.com/spec/v1oid sha256:473c61882010d657c0c3aa27f62ee85d4b8cd3b40a4877b19a05d05bb4df20bbsize 946878752123version https://git-lfs.github.com/spec/v1oid sha256:fac10c7b4287c0bffe5707905b28641f2093ce07f4a7a2cf7c037b485bf46ea3size 110732111123version https://git-lfs.github.com/spec/v1oid sha256:68e6ec66e1d85ad6f5d017b1489626b36677522cdb568191ef9d5a2ee1df308dsize 110674374text_encoder/model.fp16.safetensorsAdded+3
text_encoder/pytorch_model.fp16.binAdded+3
unet/diffusion_pytorch_model.fp16.binAdded+3
unet/diffusion_pytorch_model.fp16.safetensorsAdded+3
vae/diffusion_pytorch_model.fp16.binAdded+3
vae/diffusion_pytorch_model.fp16.safetensorsAdded+3