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

the checkpoint has smaller size than the trained model #448

Open
arminiusresistance opened this issue Sep 14, 2024 · 1 comment
Open

the checkpoint has smaller size than the trained model #448

arminiusresistance opened this issue Sep 14, 2024 · 1 comment
Assignees

Comments

@arminiusresistance
Copy link

arminiusresistance commented Sep 14, 2024

I just started using RT-DETR.
The checkpoint of rtdetrv2_r18vd_120e_coco_rerun_48.1.pth
has around 77 MB, but after running this command,
python tools/train.py -c configs/rtdetrv2/rtdetrv2_r18vd_120e_coco.yml--use-amp --seed=0

The checkpoints for each epoch are around 300MB

Shouldn't the checkpoints and the pretrained models have the same size?

@lyuwenyu
Copy link
Owner

lyuwenyu commented Sep 14, 2024

rtdetrv2_r18vd_120e_coco_rerun_48.1.pth only contains ema.state_dict

checkpoint in training process contains model.state_dict, optimizer.state_dict, ema.state_dict, etc.


see detials https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetrv2_pytorch/src/solver/_solver.py#L102-L116

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