-
Notifications
You must be signed in to change notification settings - Fork 61
/
opt.py
49 lines (36 loc) · 1.48 KB
/
opt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import argparse
parser = argparse.ArgumentParser(description='reid')
parser.add_argument('--data_path',
default="Market-1501-v15.09.15",
help='path of Market-1501-v15.09.15')
parser.add_argument('--mode',
default='train', choices=['train', 'evaluate', 'vis'],
help='train or evaluate ')
parser.add_argument('--query_image',
default='0001_c1s1_001051_00.jpg',
help='path to the image you want to query')
parser.add_argument('--freeze',
default=False,
help='freeze backbone or not ')
parser.add_argument('--weight',
default='weights/model.pt',
help='load weights ')
parser.add_argument('--epoch',
default=500,
help='number of epoch to train')
parser.add_argument('--lr',
default=2e-4,
help='initial learning_rate')
parser.add_argument('--lr_scheduler',
default=[320, 380],
help='MultiStepLR,decay the learning rate')
parser.add_argument("--batchid",
default=4,
help='the batch for id')
parser.add_argument("--batchimage",
default=4,
help='the batch of per id')
parser.add_argument("--batchtest",
default=8,
help='the batch size for test')
opt = parser.parse_args()