MCPcopy Create free account
hub / github.com/TimSeizinger/Bokehlicious / get_base_parser

Function get_base_parser

util/parser.py:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2from pathlib import Path
3
4def get_base_parser():
5 parser = ArgumentParser()
6 parser.add_argument('-out_path', type=Path, default='./output', help='output folder, default is \'./output\'')
7 parser.add_argument('-image_format', type=str, default='png', choices=['png', 'jpg'], help='image format for saving outputs')
8 return parser
9
10def add_network_args(parser: ArgumentParser):
11 parser.add_argument('-size', type=str, required=True, choices=['small', 'large', 'defocus_deblur'])

Callers 3

get_predict_parserFunction · 0.85
get_eval_parserFunction · 0.85
get_ntire_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected