guangkaixu commited on
Commit
17777da
1 Parent(s): 75c72c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -62,6 +62,8 @@ def process_depth(
62
  path_input,
63
  processing_res=default_image_processing_res,
64
  ):
 
 
65
  name_base, name_ext = os.path.splitext(os.path.basename(path_input))
66
  print(f"Processing image {name_base}{name_ext}")
67
 
@@ -518,7 +520,7 @@ def main():
518
  dtype = torch.float16
519
 
520
  vae = AutoencoderKL.from_pretrained("guangkaixu/GenPercept", subfolder='vae').to(dtype)
521
- unet_depth_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_depth_v1").to(dtype)
522
  unet_normal_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_normal_v1").to(dtype)
523
  unet_dis_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_dis_v1").to(dtype)
524
 
 
62
  path_input,
63
  processing_res=default_image_processing_res,
64
  ):
65
+ print('line 65', path_input)
66
+
67
  name_base, name_ext = os.path.splitext(os.path.basename(path_input))
68
  print(f"Processing image {name_base}{name_ext}")
69
 
 
520
  dtype = torch.float16
521
 
522
  vae = AutoencoderKL.from_pretrained("guangkaixu/GenPercept", subfolder='vae').to(dtype)
523
+ unet_depth_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept-depth', subfolder="unet").to(dtype)
524
  unet_normal_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_normal_v1").to(dtype)
525
  unet_dis_v1 = UNet2DConditionModel.from_pretrained('guangkaixu/GenPercept', subfolder="unet_dis_v1").to(dtype)
526