change model access
Browse files
app.py
CHANGED
@@ -111,11 +111,12 @@ def main():
|
|
111 |
example_image_list.append([Image.open(image_path)])
|
112 |
|
113 |
# Load DIE model
|
114 |
-
model_path = hf_hub_download(
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
)
|
|
|
119 |
die_model = UNetDIEModel(args=args, model_path=model_path)
|
120 |
|
121 |
# Partially apply the model and device arguments to die_inference
|
|
|
111 |
example_image_list.append([Image.open(image_path)])
|
112 |
|
113 |
# Load DIE model
|
114 |
+
# model_path = hf_hub_download(
|
115 |
+
# repo_id="gabar92/DIE",
|
116 |
+
# filename=args.die_model_path,
|
117 |
+
# use_auth_token=die_token
|
118 |
+
#)
|
119 |
+
model_path = "./DIE/2024_08_09_model_epoch_89.pt"
|
120 |
die_model = UNetDIEModel(args=args, model_path=model_path)
|
121 |
|
122 |
# Partially apply the model and device arguments to die_inference
|