Skip to content

Commit d9e98b3

Browse files
author
Ubuntu
committed
added default for input in inference
1 parent e4cc2b9 commit d9e98b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/aging_gan/inference.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def parse_args() -> argparse.Namespace:
2828
p.add_argument(
2929
"--input",
3030
type=str,
31-
required=True,
31+
default=str(
32+
Path(__file__).resolve().parents[2] / "images/example.png"
33+
),
3234
help="Path to source image (required for 'infer')",
3335
)
3436
p.add_argument(

0 commit comments

Comments
 (0)