parser.add_argument(
"--resume", default=True, action="store_true", help="resume training"
)
parser.add_argument("-c", "--ckpt", default="./YOLOX_outputs/yolox_s/epoch_10_ckpt.pth", type=str, help="checkpoint file")
parser.add_argument(
"-e",
"--start_epoch",
default=11,
type=int,
help="resume training start epoch",
)
由于在output文件夹中会出现多个pth文件,下面是对这些权重文件的一些表述。
model_final.pth: 最终模型权重。
model_epoch_x.pth: 特定epoch的模型权重。
model_best.pth: 验证集表现最好的模型权重。
model_last.pth: 最后一个epoch的模型权重。
optimizer.pth: 优化器状态。
scheduler.pth: 学习率调度器状态。
checkpoint.pth: 综合训练状态。