You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run TSD inside a docker using the following python (/lh points mapped the host directory)
from mmdet.apis import init_detector, inference_detector
import mmcv
import sys
config_file = '/lh/r50-FPN-1x_classsampling_TSD.py'
checkpoint_file = '/lh/r50-FPN-1x_classsampling_TSD.pth'
# build the model from a config file and a checkpoint file
model = init_detector(config_file, checkpoint_file, device='cuda:0')
# test a video and show the results
video = mmcv.VideoReader(sys.argv[1])
for frame in video:
result = inference_detector(model, frame)
model.show_result(frame, result, wait_time=1, out_file='/lh/out.jpg')
break #just a test
I get the following:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/mmcv/utils/registry.py", line 52, in build_from_cfg
return obj_cls(**args)
TypeError: __init__() got an unexpected keyword argument 'bbox_roi_extractor'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/lh/inf.py", line 12, in <module>
model = init_detector(config_file, checkpoint_file, device='cuda:0')
File "/mmdetection/mmdet/apis/inference.py", line 40, in init_detector
model = build_detector(config.model, test_cfg=config.get('test_cfg'))
File "/mmdetection/mmdet/models/builder.py", line 59, in build_detector
cfg, default_args=dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "/opt/conda/lib/python3.7/site-packages/mmcv/utils/registry.py", line 212, in build
return self.build_func(*args, **kwargs, registry=self)
File "/opt/conda/lib/python3.7/site-packages/mmcv/cnn/builder.py", line 27, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File "/opt/conda/lib/python3.7/site-packages/mmcv/utils/registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.__name__}: {e}')
TypeError: FasterRCNN: __init__() got an unexpected keyword argument 'bbox_roi_extractor'
I am using the same model (r50-FPN-1x_classsampling_TSD.py and r50-FPN-1x_classsampling_TSD.pth) and having the same error:
"TypeError: init() got an unexpected keyword argument 'bbox_roi_extractor'"
Hi,
I am trying to run TSD inside a docker using the following python (/lh points mapped the host directory)
I get the following:
this is using mmdetection 2.20. the docker is:
Any help will be greatly appreciated!
The text was updated successfully, but these errors were encountered: