Open MR-hyj opened 1 year ago
I’ve located the problem. The program calls python_env/site-packages/mmdetection/mmcv/cnn/builder.py
other than my_project/models/builder.py
.
After I moved NewNet
to project mmdetection
it works well. But does that mean if I were to design a new model, all modifications should be done directly on the source code of this repo mmdetection
?
I created an empty project based on this repo:
where the files labeled
copied from mmdet repo
are directly copied from this repo, while those labeledcustom file
are newly created.My goal is to test the registry module, by designing a new detector, which consists of only a single
backbone
ResNet:Finally, in
main.py
:I got this error by running
python mian.py
it seems my
NewNet
is not registered properly, so I added some prints inmain.py
:It is weird that the outputs suggest the
NewNet
is registered. So I took a further step to debug mode to find:How could the Registry content take such a sudden change? Moreover, this new project contains only two backbones (
ResNet
andResNetv1d
), and a custom detectorNewNet
, how could the Regsitry contains the original models likeCSPDarknet
?