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

[Feature] Early Stopping, Validation Loss #1491

Open
1dmesh opened this issue Feb 14, 2024 · 1 comment
Open

[Feature] Early Stopping, Validation Loss #1491

1dmesh opened this issue Feb 14, 2024 · 1 comment

Comments

@1dmesh
Copy link

1dmesh commented Feb 14, 2024

What is the feature?

Early stopping focused on the validation loss metric would be nice. From my minimal understanding, it would be hard to do with the current system of extending BaseMetric. At least with IoUMetric, there is no ability to early stop based on the validation loss. If this is not practical to see in deep learning, or if this functionality already exists please let me know!

For more context, see below where I have tried using EarlyStoppingHook.

Any other context?

  • loss

    • early_stopping=dict(type='EarlyStoppingHook', monitor='loss', min_delta=0.01, patience=10)
    • UserWarning: Skip early stopping process since the evaluation results (dict_keys(['aAcc', 'mIoU', 'mAcc', 'mDice', 'mFscore', 'mPrecision', 'mRecall'])) do not include monitor (loss)
  • val_loss

    • early_stopping=dict(type='EarlyStoppingHook', monitor='val_loss', min_delta=0.01, patience=10)
    • UserWarning: Skip early stopping process since the evaluation results (dict_keys(['aAcc', 'mIoU', 'mAcc', 'mDice', 'mFscore', 'mPrecision', 'mRecall'])) do not include monitor (val_loss)
  • Related:

@zhouzaida
Copy link
Member

zhouzaida commented Feb 18, 2024

Hi, as mentioned in #1486, mmengine doesn't support calculating the loss of a validation set yet, so early stopping can't perform logic based on the loss.

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