我通过apt install命令在Ubuntu v18 VM上安装了caffe-cpu。我正在努力弄清安装目录的位置,如果我输入错了,请纠正我,但我相信没有安装目录。我正在尝试执行的NN模型需要使用caffe构建工具的路径。我如何获得这个?我在任何地方都没有看到有关此的任何信息。
INFO 2018-08-04 09:41:40: Setting up mAlexNet trained on PKLot_train, validated on PKLot_val, CNRPark-EXT_val, tested on PKLot_test_CNRPark-EXT_test ...
sh: 1: /opt/caffe/python/draw_net.py: not found
INFO 2018-08-04 09:41:40: Training on PKLot_train while validating on PKLot_val, CNRPark-EXT_val ...
Traceback (most recent call last):
File "main.py", line 99, in <module>
exp.run(plot=False) # run without live plot
File "/home/sarim/Desktop/deep-parking/pyffe/experiment.py", line 42, in decorator
return function(*args, **kwargs)
File "/home/sarim/Desktop/deep-parking/pyffe/experiment.py", line 399, in run
caffe = subprocess.Popen(cmd, stderr=subprocess.PIPE)
File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/caffe/build/tools/caffe': '/opt/caffe/build/tools/caffe'
答案 0 :(得分:0)
用于caffe
的Ubuntu软件包将caffe
可执行文件安装在/usr/bin
中。您想要的特定文件位于caffe-tools-cpu
中,而不是caffe-cpu
中。
来自https://packages.ubuntu.com/bionic/amd64/caffe-tools-cpu/filelist:
/usr/bin/caffe
/usr/bin/classification
/usr/bin/compute_image_mean
/usr/bin/convert_cifar_data
/usr/bin/convert_imageset
/usr/bin/convert_mnist_data
/usr/bin/convert_mnist_siamese_data
/usr/bin/extract_features
/usr/bin/upgrade_net_proto_binary
/usr/bin/upgrade_net_proto_text
/usr/bin/upgrade_solver_proto_text
/usr/share/bash-completion/completions/caffe
/usr/share/doc/caffe-tools-cpu/changelog.Debian.gz
/usr/share/doc/caffe-tools-cpu/copyright
/usr/share/lintian/overrides/caffe-tools-cpu
/usr/share/man/man1/caffe.1.gz