profaker commited on
Commit
3c68335
·
verified ·
1 Parent(s): 4842cf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -9,8 +9,6 @@ from share_btn import community_icon_html, loading_icon_html, share_js
9
  from safetensors.torch import load_file
10
  from huggingface_hub import hf_hub_download
11
 
12
- unet = UNet2DConditionModel.from_config("SG161222/Realistic_Vision_V5.0_noVAE", subfolder="unet").to("cuda")
13
- unet.load_state_dict(load_file(hf_hub_download("ByteDance/SDXL-Lightning", "sdxl_lightning_2step_unet.safetensors"), device="cuda"))
14
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse")
15
  pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.0_noVAE",unet=unet,vae=vae).to("cuda")
16
 
 
9
  from safetensors.torch import load_file
10
  from huggingface_hub import hf_hub_download
11
 
 
 
12
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse")
13
  pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.0_noVAE",unet=unet,vae=vae).to("cuda")
14