从Caffe转换为Tensorflow:TypeError:需要类似字节的对象,而不是“str”

2024-05-06 12:07:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图将提供的预先训练的caffe模型here转换为tensorflowthis converter,这似乎是最流行的选择。不过,当我运行他们的脚本时

$ python3 convert.py ../colorful-colorization/models/colorization_deploy_v2.prototxt --caffemodel ../colorful-colorization/models/colorization_release_v2.caffemodel --code-output-path ./out-code/mynet.py

我得到以下错误

^{pr2}$

在github和stackoverflow中浏览之后,我找不到其他人有类似的问题。有人知道问题出在哪里吗?在


Tags: py模型脚本convertheremodelscodepython3