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

The pretrain weight issues #31

Open
Orbis36 opened this issue Oct 2, 2023 · 2 comments
Open

The pretrain weight issues #31

Orbis36 opened this issue Oct 2, 2023 · 2 comments

Comments

@Orbis36
Copy link

Orbis36 commented Oct 2, 2023

Hi there,

Thanks for your work first.
Basically, I noticed that you freeze the FPN and Swin-T when training the network.
However, I think the weights you mentioned didn't contain the weights for the FPN part.
So how can you get it?

@Orbis36
Copy link
Author

Orbis36 commented Oct 2, 2023

I think maybe you gave the wrong link in that issue.
Considering your codes from 51 to 61 in file centerpoint_MM_waymo.py,
You should use the weight pre-trained on COCO instead of ImageNet.

@Z-Lee-corder
Copy link

I think maybe you gave the wrong link in that issue. Considering your codes from 51 to 61 in file centerpoint_MM_waymo.py, You should use the weight pre-trained on COCO instead of ImageNet.

I also found this question. But I also found another question:
If we want to use pretrained image network parameters, we need uncomment "IMGPRETRAINED_MODEL: '../output_s2/det_model_cfgs/pretrained_ckpt/swin_tiny_patch4_window7_224.pth" in yaml file.
Although a part of parameters of image backbone have been predefined and frozen, but they are not imported into image network.
in line 62 of "anchor_MM_kitti.py":
self.img_backbone.load_state_dict(new_ckpt, strict=False)

When I debug to this position, I found "new_ckpt" is empty.
That is to say, the pretrained image network parameters were not imported into the network. The frozen image parameters that are still randomly defined parameters at the beginning of training.

I don't know if my understanding is correct?

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