| 275 | |
| 276 | |
| 277 | def parse_args(): |
| 278 | parser = argparse.ArgumentParser("metric", add_help=False) |
| 279 | parser.add_argument("--sample_root", type=str, |
| 280 | help="the root folder to generated images") |
| 281 | parser.add_argument("--numgen", type=int, default=100, |
| 282 | help="total number of images.") |
| 283 | parser.add_argument("--target_paths", type=str, |
| 284 | help="+ separated paths to real target images") |
| 285 | parser.add_argument("--outpkl", type=str, default="evaluation.pkl", |
| 286 | help="the path to save result pkl file") |
| 287 | return parser.parse_args() |
| 288 | |
| 289 | |
| 290 | def main(args): |