renyuxi commited on
Commit
5c2e997
1 Parent(s): c491c89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, safety_checker=None)
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)