Traceback (most recent call last):


 "extract_features.py", line 133, in <module>

main()


 "extract_features.py", line 81, in main

model = DefaultTrainer.build_model(cfg)


 "/usr/local/lib64/python3.6/site-packages/detectron2/engine/defaults.py", line 415, in build_model

model = build_model(cfg)


 "/usr/local/lib64/python3.6/site-packages/detectron2/modeling/meta_arch/build.py", line 21, in build_model

model = META_ARCH_REGISTRY.get(meta_arch)(cfg)


 "/home/default/ephemeral_drive/work/image_captioning/MILVLG/bottom-up-attention.pytorch/models/bua/rcnn.py", line 40, in __init__

self.roi_heads = build_roi_heads(cfg, self.backbone.output_shape())


 "/usr/local/lib64/python3.6/site-packages/detectron2/modeling/roi_heads/roi_heads.py", line 43, in build_roi_heads

return ROI_HEADS_REGISTRY.get(name)(cfg, input_shape)


 "/home/default/ephemeral_drive/work/image_captioning/MILVLG/bottom-up-attention.pytorch/models/bua/roi_heads.py", line 52, in __init__

super().__init__(cfg, input_shape)


 "/usr/local/lib64/python3.6/site-packages/detectron2/config/config.py", line 147, in wrapped

explicit_args = _get_args_from_config(from_config_func, *args, **kwargs)


 "/usr/local/lib64/python3.6/site-packages/detectron2/config/config.py", line 180, in _get_args_from_config

ret = from_config_func(*args, **kwargs)
TypeError: from_config() takes 2 positional arguments but 3 were given

Traceback (most recent call last):


 "/Users/indoorgeo/Documents/shptester.py", line 19, in <module>

w.shape(shaperec.shape)


 "/Library/Python/2.7/site-packages/shapefile.py", line 1086, in shape

return self._shapes[i]
TypeError: object cannot be interpreted as an index
