在 YOLO 中更改 cfg 和权重文件



我用YOLO v2做了一个程序,现在我想把它更新到YOLO v3。 对于 YOLO v2 和 v3,模型完全相同,所以我只是想更改 cfg 和权重文件。

首先,我在此链接下载了yolov3.cfg和重量文件。

并将所有yolo.cfg文件更改为yolov3.cfg并收到以下错误消息:

C:Program FilesCVDlibdarkflowdarkflowdarkdarknet.py:54: UserWarning: darkflow/cfg/yolo.cfg not found, use darkflow/cfg/yolo.cfg instead
Traceback (most recent call last):
File "C:UsersdoctorfMiniconda3envsdark-flowlibsite-packagescx_freeze-6.0b1-py3.5-win-amd64.eggcx_Freezeinitscripts__startup__.py", line 14, in run
File "C:UsersdoctorfMiniconda3envsdark-flowlibsite-packagescx_freeze-6.0b1-py3.5-win-amd64.eggcx_FreezeinitscriptsConsole.py", line 26, in run
File "CVD.py", line 154, in <module>
File "CVD.py", line 67, in _main
File "D:ProjectpythonTracking-with-darkflowdarkflowdarkflownetbuild.py", line 58, in __init__
File "D:ProjectpythonTracking-with-darkflowdarkflowdarkflowdarkdarknet.py", line 17, in __init__
File "D:ProjectpythonTracking-with-darkflowdarkflowdarkflowdarkdarknet.py", line 68, in parse_cfg
File "D:ProjectpythonTracking-with-darkflowdarkflowdarkflowutilsprocess.py", line 66, in cfg_yielder
File "D:ProjectpythonTracking-with-darkflowdarkflowdarkflowutilsprocess.py", line 17, in parser
FileNotFoundError: [Errno 2] No such file or directory: 'darkflow/cfg/yolo.cfg'

有什么解决办法吗?

尝试将yolov3.cfg重命名为yolo.cfg或替换 darknet.py 中的文件路径。

相关内容

  • 没有找到相关文章

最新更新