Spaces:
Running
on
Zero
Running
on
Zero
guangkaixu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -527,9 +527,12 @@ def main():
|
|
527 |
dtype = torch.float16
|
528 |
|
529 |
vae = AutoencoderKL.from_pretrained("guangkaixu/GenPercept", subfolder='vae').to(dtype)
|
530 |
-
unet_depth_v1 = UNet2DConditionModel.from_pretrained(
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
533 |
|
534 |
empty_text_embed = torch.from_numpy(np.load("./empty_text_embed.npy")).to(device, dtype)[None] # [1, 77, 1024]
|
535 |
|
|
|
527 |
dtype = torch.float16
|
528 |
|
529 |
vae = AutoencoderKL.from_pretrained("guangkaixu/GenPercept", subfolder='vae').to(dtype)
|
530 |
+
unet_depth_v1 = UNet2DConditionModel.from_pretrained(
|
531 |
+
'guangkaixu/genpercept-depth',
|
532 |
+
subfolder="unet",
|
533 |
+
use_safetensors=True).to(dtype)
|
534 |
+
unet_normal_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_normal_v1", use_safetensors=True).to(dtype)
|
535 |
+
unet_dis_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_dis_v1", use_safetensors=True).to(dtype)
|
536 |
|
537 |
empty_text_embed = torch.from_numpy(np.load("./empty_text_embed.npy")).to(device, dtype)[None] # [1, 77, 1024]
|
538 |
|