mmtracking icon indicating copy to clipboard operation
mmtracking copied to clipboard

如何避免从网上load checkpoint?

Open ZZHHogan opened this issue 3 years ago • 2 comments

我发现运行demo的时候,会从网上加载预训练模型。但是我已经指定了checkpoint了,那么如何避免从网上load checkpoint? 我的命令如下:python demo/demo_mot_vis.py configs/mot/deepsort/sort_faster-rcnn_fpn_4e_mot17-private.py --checkpoint checkpoints/faster-rcnn_r50_fpn_4e_mot17.pth --input demo/demo.mp4 --output mot.mp4。checkpoints/faster-rcnn_r50_fpn_4e_mot17.pth为从网上下载的checkpoint,保存到系统的cache文件夹下。

后面我发现是要修改config,当我把config中的checkpoint路径改成checkpoints/faster-rcnn_r50_fpn_4e_mot17.pth时。出现以下信息:如何处理呢? image

ZZHHogan avatar Jun 13 '22 03:06 ZZHHogan

We recommend using English or English & Chinese for issues so that we could have broader discussion.

mm-assistant[bot] avatar Jun 13 '22 03:06 mm-assistant[bot]

Hi, hhhhhhogan,

您说的很对,我们必须要修改config文件来避免加载预训练权重,出现上述问题的原因,很可能是您下载的权重较老,与当前mmdet的版本不匹配造成的,您可以检查下mmdet的版本与您下载的权重的版本。

祝好


Hi, hhhhhhogan,

You are right, we have to modify the config file to avoid loading pre-trained weights. The reason for the above problem is most likely caused by the fact that the weights you downloaded are older and do not match the current version of mmdet, you can check the version of mmdet and the version of the weights you downloaded.

pixeli99 avatar Jun 13 '22 07:06 pixeli99