update model path to use argparser
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def main():
|
|
100 |
die_token = os.getenv("DIE_TOKEN")
|
101 |
model_path = hf_hub_download(
|
102 |
repo_id="gabar92/DIE",
|
103 |
-
filename="
|
104 |
use_auth_token=die_token
|
105 |
)
|
106 |
die_model = UNetDIEModel(args=args, model_path=model_path)
|
@@ -131,7 +131,7 @@ def parse_arguments():
|
|
131 |
|
132 |
parser = argparse.ArgumentParser()
|
133 |
|
134 |
-
parser.add_argument("--die_model_path", default="
|
135 |
parser.add_argument("--device", default="cpu")
|
136 |
|
137 |
parser.add_argument("--example_image_path", default="./example_images")
|
|
|
100 |
die_token = os.getenv("DIE_TOKEN")
|
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)
|
|
|
131 |
|
132 |
parser = argparse.ArgumentParser()
|
133 |
|
134 |
+
parser.add_argument("--die_model_path", default="2024_08_09_model_epoch_89.pt")
|
135 |
parser.add_argument("--device", default="cpu")
|
136 |
|
137 |
parser.add_argument("--example_image_path", default="./example_images")
|