首页 > 解决方案 > 在 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

这是项目的链接: https ://github.com/may0324/DeepCompression-caffe

标签: google-colaboratorycaffe

解决方案


推荐阅读