google-colaboratory - 在 google colaboratory 中导入 caffe
问题描述
我正在尝试在 google colab 上运行一个 github 项目,它使用 Caffe 框架。我试过了
!apt install -y caffe-cuda
,!apt install -y caffe-cpu
。我还尝试了 google colab 指令来导入 Caffe:https ://colab.research.google.com/github/Huxwell/caffe-colab/blob/main/caffe_details.ipynb#scrollTo=flm5OFvG_NLZ 。但是当我通过命令运行项目时:
# clone repository and make
$ git clone https://github.com/may0324/DeepCompression-caffe.git
$ cd DeepCompression-caffe
$ make -j 32
# run demo script, this will finetune a pretrained model
$ python examples/mnist/train_compress_lenet.py
它总是有同样的错误,我猜是它没有Caffe的功能。我不知道为什么会导致问题。
sh: 1: ./build/tools/caffe: not found
sh: 1: ./build/tools/caffe: not found
sh: 1: ./build/tools/caffe: not found
sh: 1: ./build/tools/caffe: not found
sh: 1: ./build/tools/caffe: not found
解决方案
推荐阅读
- javascript - 如何在使用 jQuery 的 HTML 表单中使用两个按钮时向烧瓶提交数据
- c++ - string.compare() 函数没有比较正确的字符串
- algorithm - 在给定一些约束的情况下计算所有可能的组合
- csv - 使用 IMPORTDATA() 将 blob (URL) 中的 CSV 导入 Google 表格?
- performance - OpenMP 的效率与优化级别
- redis - 由于权限问题 systemctl 重启失败
- ios - UISplitViewController 在 UITabBarController 内时总是水平紧凑 - iOS 14
- scala - Scala 项目 - 用于访问过去 1、2 或 3 天发布的推文的 API?
- pandas - pandas,只计算最后 n 行
- pandas - 尝试填充纬度/经度列时的所有 NaN 值