megvii-research / MOTRv2

[CVPR2023] MOTRv2: Bootstrapping End-to-End Multi-Object Tracking by Pretrained Object Detectors
Other
348 stars 44 forks source link

user_checkpoint和CheckpointFunction的作用是什么? #11

Closed chzhan closed 1 year ago

chzhan commented 1 year ago

如题,调试了一遍代码,没看懂他们的作用,为什么不计算梯度,又为什么重写backward,求解。

zyayoung commented 1 year ago

节约显存,为了能在2080ti上训练。

To save GPU memory and train on 2080ti. Reference: https://pytorch.org/docs/stable/checkpoint.html

chzhan commented 1 year ago

非常感谢!