FileNotFoundError: [Errno 2] No such file or directory: '/opt/caffe/build/tools/caffe': '/opt/caffe/build/tools/caffe'

FileNotFoundError: [Errno 2] No such file or directory: '/opt/caffe/build/tools/caffe': '/opt/caffe/build/tools/caffe'

我通过 apt install 命令在我的 Ubuntu v18 虚拟机上安装了 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'

caffe 的 Ubuntu 软件包在 /usr/bin 中安装 caffe 可执行文件。您想要的特定文件在 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