facebookresearch / Detectron

FAIR's research platform for object detection research, implementing popular algorithms like Mask R-CNN and RetinaNet.
Apache License 2.0
26.27k stars 5.46k forks source link

model_builder.py 'NoneType' object is not callable #881

Closed MaggieeeChen closed 5 years ago

MaggieeeChen commented 5 years ago

Sorry, I open this issue by mistake. But many thanks if anyone can help.

File "tools/infer_simple_txt.py", line 140, in main(args) File "tools/infer_simple_txt.py", line 103, in main model = infer_engine.initialize_model_from_cfg(args.weights) File "/home/chq/aicitydemo/AICity2018#1/AIC2018_iamai/Detection/tools/core/test_engine.py", line 327, in initialize_model_from_cfg model = model_builder.create(cfg.MODEL.TYPE, train=False, gpu_id=gpu_id) File "/home/chq/aicitydemo/AICity2018#1/AIC2018_iamai/detectron/detectron/modeling/model_builder.py", line 124, in create return get_func(model_type_func)(model) TypeError: 'NoneType' object is not callable

System information