-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
'init_cfg without layer key, if you do not define override' #5209
Comments
same problem |
Have u solved it? I am still struggling. |
Please @hhaAndroid & @MeowZheng have a look. |
Hi @EdyQiu, This is just a warning. The current default configuration is loaded with pre-training weights, you don’t need to do anything. |
@hhaAndroid |
it is weird in
|
All I want to do is just to use faster rcnn + resnet50 on VOC dataset, to see whether the performance is close to the benchmark.
However, there is an error msg about loading the pre-trained model:
UserWarning: init_cfg without layer key, if you do not define override key either, this init_cfg will do nothing
I cloned the mmdetection project today, so every file is up-to-date.
Also, I have modified the config file to be
model = dict(
type='FasterRCNN',
#pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
style='pytorch',
**init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet50'),),**
I realized there was an update about unified parameter initialization, but I have no clue about how to
write the init_cfg to use a pre-trained model. e.g. layer = ??? override = ???
The most related official document is open-mmlab/mmcv#780,
still, I could not solve this simple problem.
Thanks a lot for any suggestions!
The text was updated successfully, but these errors were encountered: