赞
踩
文件ultralytics/cfg/default.yaml中的相关参数
当save_period 为-1时不保存,只需要改为你想要的间隔正数即可。
或者在modal 函数中重载该参数,如下
save_period=1表示每隔一个epoch就保存一次权重。