【发布时间】:2018-08-04 14:13:52
【问题描述】:
我通过 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'
【问题讨论】:
-
dpkg-query -L caffe-cpu会告诉您安装的包apt将其文件放在哪里。见askubuntu.com/questions/32507/…
标签: python linux ubuntu caffe pycaffe