YuHengsss / YOLOV

This repo is an implementation of PyTorch version YOLOV Series
Apache License 2.0
309 stars 43 forks source link

train model from scratch not checkpoint #15

Closed AlfieXiong closed 1 year ago

AlfieXiong commented 1 year ago

Dear author,I would like to train model from scratch not checkpoint;but I can not train my model if i don't set the checkpoint "-c weights/yoloxs_vid.pth". error info:"FileNotFoundError: [Errno 2] No such file or directory: '' I'll appreciate for you help

YuHengsss commented 1 year ago

Dear author,I would like to train model from scratch not checkpoint;but I can not train my model if i don't set the checkpoint "-c weights/yoloxs_vid.pth". error info:"FileNotFoundError: [Errno 2] No such file or directory: '' I'll appreciate for you help

I'm sorry for that. We don't test training the video object detector from scratch. I'm afraid you have to change the code and try it by yourself. Looking forward to your good news!

Yipzcc commented 1 year ago

Dear author,I would like to train model from scratch not checkpoint;but I can not train my model if i don't set the checkpoint "-c weights/yoloxs_vid.pth". error info:"FileNotFoundError: [Errno 2] No such file or directory: '' I'll appreciate for you help

please change the parser.add_argument("-c", "--ckpt", default='', type=str, help="checkpoint file") to parser.add_argument("-c", "--ckpt", default=None, type=str, help="checkpoint file") and try again