gabar92 commited on
Commit
8430bc8
·
1 Parent(s): 4af2df2

update model path parameter in argument parser

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -96,14 +96,14 @@ def main():
96
  for image_path in os.listdir(args.example_image_path)
97
  ]
98
 
99
-
100
  # Load DIE model
101
- model_path = hf_hub_download(
102
  repo_id="gabar92/die",
103
  filename=args.die_model_path,
104
  use_auth_token=die_token
105
  )
106
- die_model = UNetDIEModel(args=args, model_path=model_path)
 
107
 
108
  # Partially apply the model and device arguments to die_inference
109
  partial_die_inference = partial(die_inference, device=args.device, die_model=die_model)
 
96
  for image_path in os.listdir(args.example_image_path)
97
  ]
98
 
 
99
  # Load DIE model
100
+ args.die_model_path = hf_hub_download(
101
  repo_id="gabar92/die",
102
  filename=args.die_model_path,
103
  use_auth_token=die_token
104
  )
105
+
106
+ die_model = UNetDIEModel(args=args)
107
 
108
  # Partially apply the model and device arguments to die_inference
109
  partial_die_inference = partial(die_inference, device=args.device, die_model=die_model)