Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detector freeze problem in qdtrack #752

Closed
YOOHYOJEONG opened this issue Oct 27, 2022 · 0 comments
Closed

detector freeze problem in qdtrack #752

YOOHYOJEONG opened this issue Oct 27, 2022 · 0 comments

Comments

@YOOHYOJEONG
Copy link

YOOHYOJEONG commented Oct 27, 2022

Hi.

I'm going to freeze the parameters of detector as he say(SysCV/qdtrack#126).

In qdtrack/models/mot/qdtrack.py, I tried to freeze the detector using freeze_detector(freeze_detector = True).
But, when freeze_detector = True, self.detector, I got this error.

Traceback (most recent call last):
File "tools/train.py", line 169, in
main()
File "tools/train.py", line 140, in main
test_cfg=cfg.get('test_cfg'))
File "/workspace/qdtrack/qdtrack/models/builder.py", line 15, in build_model
return build(cfg, MODELS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "/workspace/mmcv/mmcv/cnn/builder.py", line 27, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File "/workspace/mmcv/mmcv/utils/registry.py", line 72, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
AttributeError: QDTrack: 'QDTrack' object has no attribute 'backbone'

image

Here is the config file I used.
image

I think,
image
be caused by self.detector.

How can I put the backbone and neck, rpn_head, roi_head.bbox_head of the detector config file(/configs/base/faster_rcnn_r50_fpn.py) in self.detector?

Thank you.

@YOOHYOJEONG YOOHYOJEONG closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2022
@YOOHYOJEONG YOOHYOJEONG reopened this Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant