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

Can't find cfg.MODEL.SOTR.FPN_SCALE_RANGES #15

Open
YeahHighly opened this issue Jan 13, 2022 · 1 comment
Open

Can't find cfg.MODEL.SOTR.FPN_SCALE_RANGES #15

YeahHighly opened this issue Jan 13, 2022 · 1 comment

Comments

@YeahHighly
Copy link

I encountered the following problem when running SOTR with a new data set.
File "/home/xxx/EndoCV2022/detectron2/SOTR/adet/modeling/sotr/sotr.py", line 33, in init
self.scale_ranges = cfg.MODEL.SOTR.FPN_SCALE_RANGES

I checked the configuration file R50.yaml and found that there was no such variable. Do you know how to solve it?

@JasonZuu
Copy link

JasonZuu commented Mar 11, 2022

Configs of MODEL are in the adet/config/defaults.py

To deal with your problem, you may use
from adet.config import get_cfg()
cfg = get_cfg()
model = SOTR(cfg)

However, it is better to run the tools/train_net.py file directly according to the guidance of the author, since it is a detectron2 based project.

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

2 participants