MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / parse_args

Function parse_args

src/utils/readers.py:22–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def parse_args():
23 parser = argparse.ArgumentParser()
24 parser.add_argument(
25 '-fps', '--fps',
26 type=int, default=DEFAULT_FPS,
27 help="Output video FPS"
28 )
29 parser.add_argument(
30 '-v', '--video_dir',
31 type=str,
32 help="Video directory name"
33 )
34 parser.add_argument(
35 '-vs', '--video_dirs',
36 nargs='+',
37 type=str,
38 help="Video directory names"
39 )
40 parser.add_argument(
41 '-v2', '--video_dir2',
42 type=str,
43 help="Video directory name"
44 )
45 parser.add_argument(
46 '-sd', '--segms_dir',
47 type=str,
48 help="Segmentation directory name"
49 )
50 parser.add_argument(
51 '-fgd', '--fg_dir',
52 type=str,
53 help="Foreground directory name"
54 )
55 parser.add_argument(
56 '-fgfd', '--fg_frames_dir',
57 type=str,
58 help="Foreground frames directory name"
59 )
60 parser.add_argument(
61 '-fgsd', '--fg_segms_dir',
62 type=str,
63 help="Foreground segmentations directory name"
64 )
65 parser.add_argument(
66 '-syfd', '--syn_frames_dir',
67 type=str,
68 help="Synthesized frames directory name"
69 )
70 parser.add_argument(
71 '-bgfd', '--bg_frames_dir',
72 type=str,
73 help="Background frames directory name"
74 )
75 parser.add_argument(
76 '-rt', '--reader_type',
77 type=str,
78 help="Type of reader"
79 )

Callers 1

readers.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected