Spaces:
Paused
Paused
Update app.py
Browse files
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 |
|