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

What parameters are supported by save best #1560

Open
luoyq6 opened this issue Jul 10, 2024 · 2 comments
Open

What parameters are supported by save best #1560

luoyq6 opened this issue Jul 10, 2024 · 2 comments

Comments

@luoyq6
Copy link

luoyq6 commented Jul 10, 2024

📚 The doc issue

What parameters are supported by save best

Suggest a potential alternative/fix

No response

@1xiaoshumiao1
Copy link

I have the same question

@fanqiNO1
Copy link
Collaborator

fanqiNO1 commented Jul 10, 2024

You can refer to https://mmengine.readthedocs.io/en/latest/tutorials/hook.html#checkpointhook

Here is an example:

default_hooks = dict(checkpoint=dict(type='CheckpointHook', save_best='auto'))

If you want to save the best checkpoints of the validation set for the training process, you can set the save_best parameter. If set to 'auto', the current checkpoint are judged to be best based on the first evaluation metric of the validation set (the evaluation metrics returned by evaluator are an ordered dictionary). (Copied from https://mmengine.readthedocs.io/en/latest/tutorials/hook.html#checkpointhook )

Hope this can help you!

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

3 participants