Open shrinand1996 opened 8 months ago
Hello. You can achieve this by adding resume_from_checkpoint
somewhere in your config and providing a path to weights that you want to resume from.
This is not that well documented I thing. So I'll note it down as something that should be improved in v1 docs.
Yes, let's keep this issue open as a doc improvement.
Hi @samet-akcay @blaz-r I want to work on this.
@Shakib-IO, sure go ahead. Thanks for your interest!
Hi @blaz-r
I'm unsure where I should insert resume_from_checkpoint
in the documentation. Any insight you could provide would be greatly appreciated. I found a relevant source here.
Thanks!
Hi @Shakib-IO resume_from_checkpoint was part of config before the v1. With v1, this is a bit different. You can pass the checkpoint to fit directly:
https://github.com/openvinotoolkit/anomalib/blob/34b3a90f9794dc037ec963381866d18f5f270328/src/anomalib/engine/engine.py#L462-L497
so passing --ckpt_path CKPT_PATH
.
As for setting this via config, I am not sure how this exactly it's handled there.
@Shakib-IO are you still working on this?
No. @ashwinvaidya17
What is the motivation for this task?
It will be great if we can resume training (for EfficientNet) since it takes time to train. Loading the pre trained weight will help get to desired accuracy quicker .
Describe the solution you'd like
An option in the config file that can load the pre trained weight and then resume training from there.
Additional context
No response