MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

tutorials/trades/opts.py:11–268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class opts(object):
11 def __init__(self):
12 self.parser = argparse.ArgumentParser()
13 # basic experiment setting
14 self.parser.add_argument('task', default='',
15 help='ctdet | ddd | multi_pose '
16 '| tracking or combined with ,')
17 self.parser.add_argument('--dataset', default='coco',
18 help='see lib/dataset/dataset_facotry for ' +
19 'available datasets')
20 self.parser.add_argument('--test_dataset', default='',
21 help='coco | kitti | coco_hp | pascal')
22 self.parser.add_argument('--exp_id', default='default')
23 self.parser.add_argument('--test', action='store_true')
24 self.parser.add_argument('--debug', type=int, default=0,
25 help='level of visualization.'
26 '1: only show the final detection results'
27 '2: show the network output features'
28 '3: use matplot to display' # useful when lunching training with ipython notebook
29 '4: save all visualizations to disk')
30 self.parser.add_argument('--no_pause', action='store_true')
31 self.parser.add_argument('--demo', default='',
32 help='path to image/ image folders/ video. '
33 'or "webcam"')
34 self.parser.add_argument('--load_model', default='',
35 help='path to pretrained model')
36 self.parser.add_argument('--resume', action='store_true',
37 help='resume an experiment. '
38 'Reloaded the optimizer parameter and '
39 'set load_model to model_last.pth '
40 'in the exp dir if load_model is empty.')
41
42 # system
43 self.parser.add_argument('--gpus', default='0',
44 help='-1 for CPU, use comma for multiple gpus')
45 self.parser.add_argument('--num_workers', type=int, default=4,
46 help='dataloader threads. 0 for single-thread.')
47 self.parser.add_argument('--not_cuda_benchmark', action='store_true',
48 help='disable when the input size is not fixed.')
49 self.parser.add_argument('--seed', type=int, default=317,
50 help='random seed') # from CornerNet
51 self.parser.add_argument('--not_set_cuda_env', action='store_true',
52 help='used when training in slurm clusters.')
53
54 # log
55 self.parser.add_argument('--print_iter', type=int, default=0,
56 help='disable progress bar and print to screen.')
57 self.parser.add_argument('--save_all', action='store_true',
58 help='save model to disk every 5 epochs.')
59 self.parser.add_argument('--vis_thresh', type=float, default=0.3,
60 help='visualization threshold.')
61 self.parser.add_argument('--debugger_theme', default='white',
62 choices=['white', 'black'])
63 self.parser.add_argument('--eval_val', action='store_true')
64 self.parser.add_argument('--save_imgs', default='', help='')
65 self.parser.add_argument('--save_img_suffix', default='', help='')
66 self.parser.add_argument('--skip_first', type=int, default=-1, help='')
67 self.parser.add_argument('--save_video', action='store_true')
68 self.parser.add_argument('--save_framerate', type=int, default=30)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected