ligang-cs / PseCo

An official implementation of the PseCo (ECCV2022)
Apache License 2.0
133 stars 19 forks source link

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

Closed ljq2000 closed 2 years ago

ljq2000 commented 2 years ago

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):

ligang-cs commented 2 years ago

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.