ligang-cs/PseCo

PseCo_FRCNN: 'Shared2FCBBoxHead' object has no attribute 'use_sigmoid'

ljq2000 opened this issue · 2 comments

PseCo_FRCNN: 'Shared2FCBBoxHead' object has no attribute 'use_sigmoid'

Traceback (most recent call last):
File "/root/anaconda3/envs/pseco/lib/python3.8/site-packages/mmcv/utils/registry.py", line 69, in build_from_cfg
return obj_cls(**args)
File "/root/PseCo/ssod/models/PseCo_frcnn.py", line 59, in init
if self.student.roi_head.bbox_head.use_sigmoid:
File "/root/anaconda3/envs/pseco/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1130, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Shared2FCBBoxHead' object has no attribute 'use_sigmoid'Traceback (most recent call last):

Which version of mmdetection do you use? The attribute "use sigmoid" is suppressed in latest mmdetection, which may account for this error. A suitable mmdetection is already placed in PseCo/thirdparty/mmdetection. Please use it as the default mmdetection for right reproduction.