-
Notifications
You must be signed in to change notification settings - Fork 6
/
options.py
33 lines (26 loc) · 1.8 KB
/
options.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
import argparse
parser = argparse.ArgumentParser()
# train settings
parser.add_argument('--epoch', type=int, default=150, help='epoch number')
parser.add_argument('--lr', type=float, default=1e-4, help='learning rate')
parser.add_argument('--batchsize', type=int, default=16, help='training batch size')
parser.add_argument('--trainsize', type=int, default=352, help='training image size')
parser.add_argument('--clip', type=float, default=0.5, help='gradient clipping margin')
parser.add_argument('--decay_rate', type=float, default=0.2, help='decay rate of learning rate')
parser.add_argument('--decay_epoch', type=int, default=40, help='every n epochs decay learning rate')
parser.add_argument('--load', type=str, default=None, help='train from checkpoints')
parser.add_argument('--gpu_id', type=str, default='6,7', help='gpu')
parser.add_argument('--backbone', type=str, default='R50', help='backbone networks:R50 or V16')
parser.add_argument('--rgb_root', type=str, default='/data/RGBD_for_train/RGB/',
help='the training rgb images root')
parser.add_argument('--depth_root', type=str, default='/data/RGBD_for_train/depth/',
help='the training depth images root')
parser.add_argument('--gt_root', type=str, default='/data/RGBD_for_train/GT/',
help='the training gt images root')
parser.add_argument('--save_path', type=str, default='./CIRNet_cpts/', help='the path to save models and logs')
# test set
parser.add_argument('--testsize', type=int, default=352, help='testing image size')
parser.add_argument('--test_path', type=str, default='./data/RGBD_for_test/', help='test dataset path')
parser.add_argument('--test_model', type=str, default='CIRNet_R50.pth',
help='load the model for testing')
opt = parser.parse_args()