Skip to content

How to save model with same filename? #1421

@Nic-Ma

Description

@Nic-Ma

🚀 Feature

Hi @vfdev-5 ,

I found that CheckpointHandler can't use the fixed filename to save latest model:
https://github.com/pytorch/ignite/blob/v0.4.2/ignite/handlers/checkpoint.py#L149
But this is a very important requirement on our side...How can I achieve that?
For example, I want to always save the best model as model.pt after validations during training.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions