Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ class timer:
|
|
34 |
if not path.exists(cache_path):
|
35 |
os.makedirs(cache_path, exist_ok=True)
|
36 |
|
37 |
-
pipe = StableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.bfloat16
|
38 |
pipe.to(device="cuda", dtype=torch.bfloat16)
|
39 |
unet_state = load_file(hf_hub_download("ByteDance/Hyper-SD", "Hyper-SDXL-1step-Unet.safetensors"), device="cuda")
|
40 |
pipe.unet.load_state_dict(unet_state)
|
|
|
34 |
if not path.exists(cache_path):
|
35 |
os.makedirs(cache_path, exist_ok=True)
|
36 |
|
37 |
+
pipe = StableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.bfloat16)
|
38 |
pipe.to(device="cuda", dtype=torch.bfloat16)
|
39 |
unet_state = load_file(hf_hub_download("ByteDance/Hyper-SD", "Hyper-SDXL-1step-Unet.safetensors"), device="cuda")
|
40 |
pipe.unet.load_state_dict(unet_state)
|