(v)
| 30 | torch.hub.set_dir("./ckpt") |
| 31 | |
| 32 | def str2bool(v): |
| 33 | if isinstance(v, bool): |
| 34 | return v |
| 35 | if v.lower() in ('yes', 'true', 't', 'y', '1'): |
| 36 | return True |
| 37 | elif v.lower() in ('no', 'false', 'f', 'n', '0'): |
| 38 | return False |
| 39 | else: |
| 40 | raise argparse.ArgumentTypeError('Boolean value expected.') |
| 41 | |
| 42 | |
| 43 | def parse_args(): |
nothing calls this directly
no outgoing calls
no test coverage detected