guangkaixu commited on
Commit
602bf69
·
verified ·
1 Parent(s): 37cff06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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('guangkaixu/genpercept-depth', subfolder="unet").to(dtype)
531
- unet_normal_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_normal_v1").to(dtype)
532
- unet_dis_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_dis_v1").to(dtype)
 
 
 
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