I tried to train the model with the custom dataset, and I ran the following code (the dataset was properly transformed to a COCO style)
python tools/train_net.py --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml OUTPUT_DIR detectron/datasets/data/fundus_patch/output
And all the tests were passed before I ran this code, I modified the config file
And the following was what I got:
Found Detectron ops lib: /usr/local/lib/libcaffe2_detectron_ops_gpu.so
E0612 20:32:38.941774 3756 init_intrinsics_check.cc:43] CPU feature avx is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
E0612 20:32:38.941857 3756 init_intrinsics_check.cc:43] CPU feature avx2 is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
E0612 20:32:38.941905 3756 init_intrinsics_check.cc:43] CPU feature fma is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
INFO train_net.py: 95: Called with args:
INFO train_net.py: 96: Namespace(cfg_file='configs/12_2017_baselines/fundus_mask_rcnn_R-50-FPN_1x.yaml', multi_gpu_testing=False, opts=['OUTPUT_DIR', 'detectron/datasets/data/fundus_patch/output'], skip_test=False)
Traceback (most recent call last):
File "tools/train_net.py", line 128, in
main()
File "tools/train_net.py", line 98, in main
merge_cfg_from_file(args.cfg_file)
File "/home/travis/software/detectron/detectron/core/config.py", line 1124, in merge_cfg_from_file
_merge_a_into_b(yaml_cfg, __C)
File "/home/travis/software/detectron/detectron/core/config.py", line 1184, in _merge_a_into_b
_merge_a_into_b(v, b[k], stack=stack_push)
File "/home/travis/software/detectron/detectron/core/config.py", line 1174, in _merge_a_into_b
raise KeyError('Non-existent config key: {}'.format(full_key))
KeyError: u'Non-existent config key: MODEL.NUM_GPUS'
I tried to train the model with the custom dataset, and I ran the following code (the dataset was properly transformed to a COCO style)
python tools/train_net.py --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml OUTPUT_DIR detectron/datasets/data/fundus_patch/output
And all the tests were passed before I ran this code, I modified the config fileSystem information
python --version
output: 2.7.12And the following was what I got: Found Detectron ops lib: /usr/local/lib/libcaffe2_detectron_ops_gpu.so E0612 20:32:38.941774 3756 init_intrinsics_check.cc:43] CPU feature avx is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU. E0612 20:32:38.941857 3756 init_intrinsics_check.cc:43] CPU feature avx2 is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU. E0612 20:32:38.941905 3756 init_intrinsics_check.cc:43] CPU feature fma is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU. INFO train_net.py: 95: Called with args: INFO train_net.py: 96: Namespace(cfg_file='configs/12_2017_baselines/fundus_mask_rcnn_R-50-FPN_1x.yaml', multi_gpu_testing=False, opts=['OUTPUT_DIR', 'detectron/datasets/data/fundus_patch/output'], skip_test=False) Traceback (most recent call last): File "tools/train_net.py", line 128, in
main()
File "tools/train_net.py", line 98, in main
merge_cfg_from_file(args.cfg_file)
File "/home/travis/software/detectron/detectron/core/config.py", line 1124, in merge_cfg_from_file
_merge_a_into_b(yaml_cfg, __C)
File "/home/travis/software/detectron/detectron/core/config.py", line 1184, in _merge_a_into_b
_merge_a_into_b(v, b[k], stack=stack_push)
File "/home/travis/software/detectron/detectron/core/config.py", line 1174, in _merge_a_into_b
raise KeyError('Non-existent config key: {}'.format(full_key))
KeyError: u'Non-existent config key: MODEL.NUM_GPUS'
Anyone knows what was wrong with my training?