Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'list' object is not callable #37

Open
XingLiuJia opened this issue Mar 7, 2019 · 0 comments
Open

TypeError: 'list' object is not callable #37

XingLiuJia opened this issue Mar 7, 2019 · 0 comments

Comments

@XingLiuJia
Copy link

/home/scw4750/anaconda3/envs/pyt0.4/bin/python /media/scw4750/个人文件/liujiajia/fpn.pytorch-master/trainval_net.py
Called with args:
Namespace(batch_size=1, checkepoch=1, checkpoint=0, checkpoint_interval=10000, checksession=1, class_agnostic=False, cuda='True', dataset='pascal_voc', disp_interval=100, lr=0.001, lr_decay_gamma=0.1, lr_decay_step=5, lscale=False, mGPUs='2', max_epochs=20, net='res101', num_workers=0, optimizer='sgd', resume=False, save_dir='/liujiajia/models', session=1, start_epoch=1, use_tfboard=False)
Using config:
{'ANCHOR_RATIOS': [0.5, 1, 2],
'ANCHOR_SCALES': [8, 16, 32],
'CROP_RESIZE_WITH_MAX_POOL': False,
'CUDA': False,
'DATA_DIR': '/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/data',
'DEDUP_BOXES': 0.0625,
'EPS': 1e-14,
'EXP_DIR': 'res101',
'FEAT_STRIDE': [16],
'FPN_ANCHOR_SCALES': [32, 64, 128, 256, 512],
'FPN_ANCHOR_STRIDE': 1,
'FPN_FEAT_STRIDES': [4, 8, 16, 32, 64],
'GPU_ID': '0,1',
'HAS_MASK': True,
'MATLAB': 'matlab',
'MAX_NUM_GT_BOXES': 20,
'MOBILENET': {'DEPTH_MULTIPLIER': 1.0,
'FIXED_LAYERS': 5,
'REGU_DEPTH': False,
'WEIGHT_DECAY': 4e-05},
'PIXEL_MEANS': array([[[102.9801, 115.9465, 122.7717]]]),
'POOLING_MODE': 'align',
'POOLING_SIZE': 7,
'RESNET': {'FIXED_BLOCKS': 1, 'MAX_POOL': False},
'RNG_SEED': 3,
'ROOT_DIR': '/media/scw4750/个人文件/liujiajia/fpn.pytorch-master',
'TEST': {'BBOX_REG': True,
'HAS_RPN': True,
'MAX_SIZE': 1000,
'MODE': 'nms',
'NMS': 0.3,
'PROPOSAL_METHOD': 'gt',
'RPN_MIN_SIZE': 16,
'RPN_NMS_THRESH': 0.7,
'RPN_POST_NMS_TOP_N': 300,
'RPN_PRE_NMS_TOP_N': 6000,
'RPN_TOP_N': 5000,
'SCALES': [600],
'SVM': False},
'TRAIN': {'ASPECT_GROUPING': False,
'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,
'BIAS_DECAY': False,
'BN_TRAIN': False,
'DISPLAY': 20,
'DOUBLE_BIAS': False,
'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': 8,
'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_ITERS': 5000,
'SNAPSHOT_KEPT': 3,
'SNAPSHOT_PREFIX': 'res101_faster_rcnn',
'STEPSIZE': [30000],
'SUMMARY_INTERVAL': 180,
'TRIM_HEIGHT': 600,
'TRIM_WIDTH': 600,
'TRUNCATED': False,
'USE_ALL_GT': True,
'USE_FLIPPED': True,
'USE_GT': False,
'WEIGHT_DECAY': 0.0001},
'USE_GPU_NMS': True}
voc_2007_trainval gt roidb loaded from /media/scw4750/个人文件/liujiajia/fpn.pytorch-master/data/cache/voc_2007_trainval_gt_roidb.pkl
Loaded dataset voc_2007_trainval for training
voc_2007_trainval gt roidb loaded from /media/scw4750/个人文件/liujiajia/fpn.pytorch-master/data/cache/voc_2007_trainval_gt_roidb.pkl
Set proposal method: gt
Appending horizontally-flipped training examples...
Traceback (most recent call last):
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/trainval_net.py", line 219, in
imdb, roidb, ratio_list, ratio_index = combined_roidb(args.imdb_name)
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/lib/roi_data_layer/roidb.py", line 116, in combined_roidb
roidbs = [get_roidb(s) for s in imdb_names.split('+')]
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/lib/roi_data_layer/roidb.py", line 116, in
roidbs = [get_roidb(s) for s in imdb_names.split('+')]
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/lib/roi_data_layer/roidb.py", line 113, in get_roidb
roidb = get_training_roidb(imdb)
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/lib/roi_data_layer/roidb.py", line 97, in get_training_roidb
imdb.append_flipped_images()
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/lib/datasets/imdb.py", line 118, in append_flipped_images
boxes = self.roidb[i]['boxes'].copy()
File "/media/scw4750/个人文件/liujiajia/fpn.pytorch-master/lib/datasets/imdb.py", line 76, in roidb
self._roidb = self.roidb_handler()
TypeError: 'list' object is not callable

Process finished with exit code 1

How to solve? Thank you very much! My version is Pytorch 0.4 ,Python 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant