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

Training each cycle from scratch? #102

Open
Ab-34 opened this issue May 27, 2024 · 1 comment
Open

Training each cycle from scratch? #102

Ab-34 opened this issue May 27, 2024 · 1 comment

Comments

@Ab-34
Copy link

Ab-34 commented May 27, 2024

Thank you very much for your code!

I have a small doubt.

Are you training each model from scratch for each cycle?
As for each cycle, a new model is being initialized in line 131. And I don't see any checkpoints being loaded after that.

@Ab-34 Ab-34 changed the title Training each round from scratch? Training each cycle from scratch? May 27, 2024
@yuantn
Copy link
Owner

yuantn commented Oct 14, 2024

Yes, you can debug deeply. It involves calls the function mmcv.utils.registry.build_from_cfg, which loads the parameters in cfg.model and builds the model from it. The path of the pretrained model is set in cfg.model (torchvision://resnet50), so for each cycle it is trained from scratch.

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