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

i want to save best model with 'optimizer', 'param_schedulers' so that i can resume training from best model #3743

Open
Md-Sayeed-Khan opened this issue Jul 17, 2024 · 0 comments

Comments

@Md-Sayeed-Khan
Copy link

my cfg :

"val_evaluator": {
    "type": "IoUMetric",
    "iou_metrics": [
        "mIoU"
    ]
},
"default_hooks": {
    "checkpoint": {
        "type": "CheckpointHook",
        "by_epoch": false,
        "interval":1000,
        "save_best": "mIoU",
        "max_keep_ckpts": 1
        }
        }

this is saving both the latest and best .pth files but i see there is size difference in these to models
best : 100 mb
latest : 300 mb

inspecting these to files i found 'optimizer', 'param_schedulers' keys were missing in best

my question is how to save best model with all keys so that i can resume training from it

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