# Caffe **Repository Path**: ml-inory/Caffe ## Basic Information - **Project Name**: Caffe - **Description**: 层很全哦 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2020-02-10 - **Last Updated**: 2023-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Caffe:包含NNIE需要的所有层 ## 安装依赖 ### OpenCV `apt-get install libopencv-dev` 或者git clone 源码编译 ### 其他依赖 `apt-get install -y python3-pip cmake build-essential` `python3 -m pip install --upgrade pip` `apt-get install -y python3-dev python3-numpy` `pip3 install opencv-python numpy cython` `apt-get install -y cmake build-essential libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler` `apt-get install -y --no-install-recommends libboost-all-dev` `apt-get install -y libatlas-base-dev libgflags-dev libgoogle-glog-dev liblmdb-dev` ### 编译Caffe 进入Caffe目录 `mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../install -DCPU_ONLY=ON -Dpython_version=3 .. && make -j8 && make pycaffe && make install && cd ..` `pip3 install -r ./python/requirements.txt` 把`export PYTHONPATH=Caffe build目录/python`添加到~/.bashrc或者/etc/profile下