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

How to save the best checkpoint file? #137

Open
Meoooww opened this issue Nov 3, 2023 · 0 comments
Open

How to save the best checkpoint file? #137

Meoooww opened this issue Nov 3, 2023 · 0 comments

Comments

@Meoooww
Copy link

Meoooww commented Nov 3, 2023

I noticed that the parameter "work-dir" specifies the output path of the checkpoint file, which contains files like "iter_**.pth" and "latest.pth". The "latest.pth" is not the best checkpoint file, so how to output the best checkpoint?

This is my first time using the mmcv, i tried the following code(in segformer.b5.640x640.ade.160k.py), bt useless
evaluation = dict(interval=50, metric='mIoU', save_best='auto')

the mmcv doc: https://mmcv.readthedocs.io/en/v1.3.14/_modules/mmcv/runner/hooks/evaluation.html
ref: open-mmlab/mmsegmentation#130

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

1 participant