update model path parameter in argument parser
Browse files
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 |
-
|
| 102 |
repo_id="gabar92/die",
|
| 103 |
filename=args.die_model_path,
|
| 104 |
use_auth_token=die_token
|
| 105 |
)
|
| 106 |
-
|
|
|
|
| 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)
|