问题1:使用conda安装opencv
不要升级conda版本,也暂时不要添加国内源,conda install -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch opencv
即可。
问题2:运行convert.py出现
Traceback (most recent call last): File "convert.py", line 262, in <module> _main(parser.parse_args()) File "convert.py", line 83, in _main unique_config_file = unique_config_sections(config_path) File "convert.py", line 53, in unique_config_sections output_stream.write(line) TypeError: unicode argument expected, got 'str'
在convert.py中将output_stream = io.StringIO()改为output_stream = io.BytesIO()。
问题3:运行模型出现
could not create a dilated convolution forward descriptor, in file tensorflow/core/kernels/mkl_conv_ops.cc:1111
TensorFlow 版本问题,使用conda install tensorflow=1.12
即可解决。