Instructions to use krnl/stable-diffusion-x4-upscaler with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use krnl/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("krnl/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
Update with safetensors
Browse files- x4-upscaler-ema.ckpt +3 -0
- x4-upscaler-ema.safetensors +3 -0
x4-upscaler-ema.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57c63b7ed94406ba07e93f38e82622ff61952bb3fc0dec684a4058fa880cddd0
|
| 3 |
+
size 3531514018
|
x4-upscaler-ema.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35c01d6160bdfe6644b0aee52ac2667da2f40a33a5d1ef12bbd011d059057bc6
|
| 3 |
+
size 3531269371
|