提交 66a75b98 编写于 作者: Z zhengya01

add ce

上级 e6c2cb83
...@@ -7,11 +7,11 @@ export OMP_NUM_THREADS=1 ...@@ -7,11 +7,11 @@ export OMP_NUM_THREADS=1
cudaid=${face_detection:=0} # use 0-th card as default cudaid=${face_detection:=0} # use 0-th card as default
export CUDA_VISIBLE_DEVICES=$cudaid export CUDA_VISIBLE_DEVICES=$cudaid
FLAGS_benchmark=true python train.py --model_save_dir=output/ --data_dir=dataset/coco/ --max_iter=20 --enable_ce --pretrained_model=./imagenet_resnet50_fusebn | python _ce.py FLAGS_benchmark=true python train.py --model_save_dir=output/ --data_dir=dataset/coco/ --max_iter=10 --enable_ce --pretrained_model=./imagenet_resnet50_fusebn | python _ce.py
cudaid=${face_detection_m:=0,1,2,3} # use 0,1,2,3 card as default cudaid=${face_detection_m:=0,1,2,3} # use 0,1,2,3 card as default
export CUDA_VISIBLE_DEVICES=$cudaid export CUDA_VISIBLE_DEVICES=$cudaid
FLAGS_benchmark=true python train.py --model_save_dir=output/ --data_dir=dataset/coco/ --max_iter=20 --enable_ce --pretrained_model=./imagenet_resnet50_fusebn | python _ce.py FLAGS_benchmark=true python train.py --model_save_dir=output/ --data_dir=dataset/coco/ --max_iter=10 --enable_ce --pretrained_model=./imagenet_resnet50_fusebn | python _ce.py
...@@ -206,7 +206,6 @@ _C.bbox_clip = np.log(1000. / 16.) ...@@ -206,7 +206,6 @@ _C.bbox_clip = np.log(1000. / 16.)
# ce # ce
_C.enable_ce = False _C.enable_ce = False
_C.num_devices = 1
# dataset path # dataset path
_C.train_file_list = 'annotations/instances_train2017.json' _C.train_file_list = 'annotations/instances_train2017.json'
......
...@@ -132,8 +132,6 @@ def parse_args(): ...@@ -132,8 +132,6 @@ def parse_args():
# ce # ce
parser.add_argument( parser.add_argument(
'--enable_ce', action='store_true', help='If set, run the task with continuous evaluation logs.') '--enable_ce', action='store_true', help='If set, run the task with continuous evaluation logs.')
parser.add_argument(
'--num_devices', type=int, default=1, help='Number of GPU devices')
# yapf: enable # yapf: enable
args = parser.parse_args() args = parser.parse_args()
file_name = sys.argv[0] file_name = sys.argv[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册