Open Liu98Fan opened 6 years ago
$ python ./tools/train_net.py --device gpu --device_id 0 --weights data/pretra in_model/VGG_imagenet.npy --imdb voc_2007_trainval --iters 7000 --cfg experiments/cfgs/faster_rcnn_end2end.yml --network VGGnet_train voc_2007_train voc_2007_val voc_2007_trainval voc_2007_test kitti_train kitti_val kitti_trainval kitti_test nthu_71 nthu_370 Called with args: Namespace(cfg_file='experiments/cfgs/faster_rcnn_end2end.yml', device='gpu', device_id=0, imdb_name='voc_2007_trainval', max_iters=7000, network_name='VGGnet_train', pretrained_model='data/pretrain_model/VGG_imagenet.npy', randomize=False, set_cfgs=None, solver=None) Using config: {'DATA_DIR': '/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/data', 'DEDUP_BOXES': 0.0625, 'EPS': 1e-14, 'EXP_DIR': 'faster_rcnn_end2end', 'GPU_ID': 0, 'IS_MULTISCALE': False, 'MATLAB': 'matlab', 'MODELS_DIR': '/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/models/pascal_voc', 'PIXEL_MEANS': array([[[102.9801, 115.9465, 122.7717]]]), 'RNG_SEED': 3, 'ROOT_DIR': '/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF', 'TEST': {'BBOX_REG': True, 'DEBUG_TIMELINE': False, 'HAS_RPN': True, 'MAX_SIZE': 1000, 'NMS': 0.3, 'PROPOSAL_METHOD': 'selective_search', 'RPN_MIN_SIZE': 16, 'RPN_NMS_THRESH': 0.7, 'RPN_POST_NMS_TOP_N': 300, 'RPN_PRE_NMS_TOP_N': 6000, 'SCALES': [600], 'SVM': False}, 'TRAIN': {'ASPECT_GROUPING': True, 'BATCH_SIZE': 128, 'BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0], 'BBOX_NORMALIZE_MEANS': [0.0, 0.0, 0.0, 0.0], 'BBOX_NORMALIZE_STDS': [0.1, 0.1, 0.2, 0.2], 'BBOX_NORMALIZE_TARGETS': True, 'BBOX_NORMALIZE_TARGETS_PRECOMPUTED': True, 'BBOX_REG': True, 'BBOX_THRESH': 0.5, 'BG_THRESH_HI': 0.5, 'BG_THRESH_LO': 0.0, 'DEBUG_TIMELINE': False, 'DISPLAY': 10, 'FG_FRACTION': 0.25, 'FG_THRESH': 0.5, 'GAMMA': 0.1, 'HAS_RPN': True, 'IMS_PER_BATCH': 1, 'LEARNING_RATE': 0.001, 'MAX_SIZE': 1000, 'MOMENTUM': 0.9, 'PROPOSAL_METHOD': 'gt', 'RPN_BATCHSIZE': 256, 'RPN_BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0], 'RPN_CLOBBER_POSITIVES': False, 'RPN_FG_FRACTION': 0.5, 'RPN_MIN_SIZE': 16, 'RPN_NEGATIVE_OVERLAP': 0.3, 'RPN_NMS_THRESH': 0.7, 'RPN_POSITIVE_OVERLAP': 0.7, 'RPN_POSITIVE_WEIGHT': -1.0, 'RPN_POST_NMS_TOP_N': 2000, 'RPN_PRE_NMS_TOP_N': 12000, 'SCALES': [600], 'SNAPSHOT_INFIX': '', 'SNAPSHOT_ITERS': 5000, 'SNAPSHOT_PREFIX': 'VGGnet_fast_rcnn', 'STEPSIZE': 50000, 'USE_FLIPPED': True, 'USE_PREFETCH': False}, 'USE_GPU_NMS': True} <bound method pascal_voc.default_roidb of <datasets.pascal_voc.pascal_voc object at 0x7f0c4aeffbd0>> Loaded dataset voc_2007_trainval for training Appending horizontally-flipped training examples... voc_2007_trainval gt roidb loaded from /media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/data/cache/voc_2007_trainval_gt_roidb.pkl done Preparing training data... Traceback (most recent call last): File "./tools/train_net.py", line 83, in roidb = get_training_roidb(imdb) File "/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/tools/../lib/fast_rcnn/train.py", line 212, in get_training_roidb rdl_roidb.prepare_roidb(imdb) File "/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/tools/../lib/roi_data_layer/roidb.py", line 27, in prepare_roidb roidb[i]['image'] = imdb.image_path_at(i) IndexError: list index out of range
voc_2007_trainval
This error happend when i was trying to train the model by my data,can someone help me fix it?
I met the same problem, have you fixed it? Thanks!
$ python ./tools/train_net.py --device gpu --device_id 0 --weights data/pretra in_model/VGG_imagenet.npy --imdb voc_2007_trainval --iters 7000 --cfg experiments/cfgs/faster_rcnn_end2end.yml --network VGGnet_train voc_2007_train voc_2007_val voc_2007_trainval voc_2007_test kitti_train kitti_val kitti_trainval kitti_test nthu_71 nthu_370 Called with args: Namespace(cfg_file='experiments/cfgs/faster_rcnn_end2end.yml', device='gpu', device_id=0, imdb_name='voc_2007_trainval', max_iters=7000, network_name='VGGnet_train', pretrained_model='data/pretrain_model/VGG_imagenet.npy', randomize=False, set_cfgs=None, solver=None) Using config: {'DATA_DIR': '/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/data', 'DEDUP_BOXES': 0.0625, 'EPS': 1e-14, 'EXP_DIR': 'faster_rcnn_end2end', 'GPU_ID': 0, 'IS_MULTISCALE': False, 'MATLAB': 'matlab', 'MODELS_DIR': '/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/models/pascal_voc', 'PIXEL_MEANS': array([[[102.9801, 115.9465, 122.7717]]]), 'RNG_SEED': 3, 'ROOT_DIR': '/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF', 'TEST': {'BBOX_REG': True, 'DEBUG_TIMELINE': False, 'HAS_RPN': True, 'MAX_SIZE': 1000, 'NMS': 0.3, 'PROPOSAL_METHOD': 'selective_search', 'RPN_MIN_SIZE': 16, 'RPN_NMS_THRESH': 0.7, 'RPN_POST_NMS_TOP_N': 300, 'RPN_PRE_NMS_TOP_N': 6000, 'SCALES': [600], 'SVM': False}, 'TRAIN': {'ASPECT_GROUPING': True, 'BATCH_SIZE': 128, 'BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0], 'BBOX_NORMALIZE_MEANS': [0.0, 0.0, 0.0, 0.0], 'BBOX_NORMALIZE_STDS': [0.1, 0.1, 0.2, 0.2], 'BBOX_NORMALIZE_TARGETS': True, 'BBOX_NORMALIZE_TARGETS_PRECOMPUTED': True, 'BBOX_REG': True, 'BBOX_THRESH': 0.5, 'BG_THRESH_HI': 0.5, 'BG_THRESH_LO': 0.0, 'DEBUG_TIMELINE': False, 'DISPLAY': 10, 'FG_FRACTION': 0.25, 'FG_THRESH': 0.5, 'GAMMA': 0.1, 'HAS_RPN': True, 'IMS_PER_BATCH': 1, 'LEARNING_RATE': 0.001, 'MAX_SIZE': 1000, 'MOMENTUM': 0.9, 'PROPOSAL_METHOD': 'gt', 'RPN_BATCHSIZE': 256, 'RPN_BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0], 'RPN_CLOBBER_POSITIVES': False, 'RPN_FG_FRACTION': 0.5, 'RPN_MIN_SIZE': 16, 'RPN_NEGATIVE_OVERLAP': 0.3, 'RPN_NMS_THRESH': 0.7, 'RPN_POSITIVE_OVERLAP': 0.7, 'RPN_POSITIVE_WEIGHT': -1.0, 'RPN_POST_NMS_TOP_N': 2000, 'RPN_PRE_NMS_TOP_N': 12000, 'SCALES': [600], 'SNAPSHOT_INFIX': '', 'SNAPSHOT_ITERS': 5000, 'SNAPSHOT_PREFIX': 'VGGnet_fast_rcnn', 'STEPSIZE': 50000, 'USE_FLIPPED': True, 'USE_PREFETCH': False}, 'USE_GPU_NMS': True} <bound method pascal_voc.default_roidb of <datasets.pascal_voc.pascal_voc object at 0x7f0c4aeffbd0>> Loaded dataset
roidb = get_training_roidb(imdb)
File "/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/tools/../lib/fast_rcnn/train.py", line 212, in get_training_roidb
rdl_roidb.prepare_roidb(imdb)
File "/media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/tools/../lib/roi_data_layer/roidb.py", line 27, in prepare_roidb
roidb[i]['image'] = imdb.image_path_at(i)
IndexError: list index out of range
voc_2007_trainval
for training Appending horizontally-flipped training examples... voc_2007_trainval gt roidb loaded from /media/liufan/689097F39097C64A/ubuntu16.04/fasterrcnn/Faster-RCNN_TF/data/cache/voc_2007_trainval_gt_roidb.pkl done Preparing training data... Traceback (most recent call last): File "./tools/train_net.py", line 83, inThis error happend when i was trying to train the model by my data,can someone help me fix it?