当前位置:网站首页>Installing C3d v1.0
Installing C3d v1.0
2022-07-21 16:36:00 【MallocLu】
Preface
personal caffe Installation tutorial
Files or compressed packages that may be used :
link :https://pan.baidu.com/s/1vIRxSJHRoBnrnsjczISOPg?pwd=7asr
Extraction code :7asr
Copy this content after opening baidu network disk mobile phone App, It is more convenient to operate
All the following commands are in root Execute under authority , If the prompt authority is insufficient , Then add sudo
Main reference tutorial if the website fails , You can see it in the net disk “ Main reference tutorial web page backup ”
This article introduces C3D v1.0, If you want to use C3D v1.1, Then it and caffe The installation process is exactly the same , follow “ personal caffe Installation tutorial ” Go over , And then install it C3D v1.1 that will do
install CUDA&CUDNN
install CUDA 10.2 And the corresponding CUDNN( Reference resources “ Main reference course ”), In order to simplify the operation, the author uses “ Moment pool cloud platform ”:
It's already configured CUDA and cuDNN, You don't have to configure it yourself . Open one 1 element / When the environment is enough
Installation dependency
apt-get update
apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
apt-get install --no-install-recommends libboost-all-dev
apt-get install -y libopenblas-dev liblapack-dev libatlas-base-dev libgflags-dev libgoogle-glog-dev liblmdb-dev git cmake build-essential
# Open the environment profile
vim ~/.bashrc
# Add the following two lines at the end of the open file
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
# Make the environment configuration file effective
source ~/.bashrc
install Opencv
take opencv-3.4.10.zip Copied to the /root Under the table of contents
unzip opencv-3.4.10.zip
Delete opencv-3.4.10.zip( To save space )
Execute the following command
# Enter folder cd opencv-3.4.10 # establish build Folder mkdir build # Get into build Folder cd build # compile cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. make # install make install # Check whether the installation is successful Success will output :3.4.10 pkg-config --modversion opencv
Default Python2
alias python=python2
# Output python Version is 2.? It's success
python -V
install boost
take boost_1_72_0.7z Copied to the /root Under the table of contents
apt-get install p7zip-full
7z x boost_1_72_0.7z
Delete boost_1_72_0.7z( To save space )
Execute the following command
# Enter folder cd boost_1_72_0.7z ./bootstrap.sh --with-libraries=all ./b2 ./b2 install
install C3D
take C3D-master.zip Copied to the /root Under the table of contents
unzip C3D-master.zip
Delete C3D-master.zip( To save space )
Execute the following command
# Enter folder cd C3D-master/C3D-v1.0/python # Install dependency packages for req in $(cat requirements.txt); do pip install $req; done # Return to the previous directory cd .. # Copy file cp Makefile.config.example Makefile.config
Modify file
1) modify Makefile.config
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \ -gencode arch=compute_20,code=sm_21 \ -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode=arch=compute_50,code=sm_50 \ #-gencode=arch=compute_50,code=compute_50 It is amended as follows CUDA_ARCH := #-gencode arch=compute_20,code=sm_20 \ #-gencode arch=compute_20,code=sm_21 \ #-gencode arch=compute_30,code=sm_30 \ #-gencode arch=compute_35,code=sm_35 \ -gencode=arch=compute_50,code=sm_50 \ -gencode=arch=compute_50,code=compute_50 # OPENCV_VERSION := 3 It is amended as follows OPENCV_VERSION := 3 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib It is amended as follows INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
2) modify Makefile
NVCCFLAGS +=-ccbin=$(CXX) -Xcompiler-fPIC $(COMMON_FLAGS) It is amended as follows NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS) LIBRARIES := cudart cublas curand \ pthread \ glog protobuf leveldb snappy \ boost_system \ hdf5_hl hdf5 \ opencv_core opencv_highgui opencv_imgproc It is amended as follows LIBRARIES := cudart cublas curand \ pthread \ glog protobuf leveldb snappy \ boost_system \ hdf5_serial_hl hdf5_serial \ opencv_core opencv_highgui opencv_imgproc
3) modify /src/caffe/test/test_gradient_check_util.hpp
Dtype scale = std::max( std::max(fabs(computed_gradient), fabs(estimated_gradient)), 1.); It is amended as follows Dtype scale = std::max( std::max(fabs(computed_gradient), fabs(estimated_gradient)), Dtype(1.));
compile
make all # There may be an error :recipe for target 'build/examples/mnist/convert_mnist_data.o' failed # Never mind make test make runtest # There may be an error , Never mind # Makefile:285: recipe for target 'runtest' failed # make: *** [runtest] Error 127
C3D test
Will file conv3d_deepnetA_sport1m_iter_1900000 Copied to the C3D-master/C3D-v1.0/examples/c3d_feature_extraction/
sh c3d_sport1m_feature_extraction_frm.sh
There is an error :…/…/build/tools/extract_image_features.bin: error while loading shared libraries: libopencv_core.so.3.4: cannot open shared object file: No such file or directory
solve : stay /etc/ld.so.conf.d/ Create OpenCV.conf, The content is /usr/local/lib, And then execute the command sudo ldconfig
sh c3d_sport1m_feature_extraction_frm.sh
Successful implementation ,E0707 14:27:41.620281 36381 extract_image_features.cpp:121] Successfully extracted 16 features!
Save environment
边栏推荐
- Self increment of version number
- Excuse me, boss, how does Flink achieve real-time data synchronization between MySQL database and elastic search
- JZ76 删除链表中重复的结点
- Dama Chapter 10 (reference data and master data)
- 2.4 circular statements
- Opengauss kernel analysis: query rewriting
- JZ32 从上往下打印二叉树
- Imitate the widget control of VTK, and make the control that draws a rectangle
- pip&conda 搜索包|查看可安装包版本
- Scanning code for vulnerabilities -- those that need to be rectified
猜你喜欢
30 times performance improvement -- implementation of MyTT index library based on dolphin DB
In the future, a new way of tourism, VR traveling without leaving home, embracing poetry and distance
Visual studio easy to use plug-in sharing
Dama Chapter 8 (data integration and interoperability)
Source code, complement and fixed-point number operation
DTOs' 3D engine will replace the game engine monster and realize localization
Lora base station coverage
Dama Chapter 6 (data storage and operation)
Devaxpress treelist enables the selection of parent node column values and all its child nodes
Dama Chapter 11 (data warehouse and business intelligence)
随机推荐
2.4 circular statements
What if the download of Duoyu security browser is blocked? Turn off the method of download blocking
In the future, a new way of tourism, VR traveling without leaving home, embracing poetry and distance
Dama summary (summary of data management)
i2c client驅動
I2C client Drive IIO Device Drive
I2C client driver
专注跨境支付一体化服务 iPayLinks荣获《财资》(The Asset)3A亚洲奖!
. Net core load assembly assemblyloadcontext
Translation of UAV intelligent coverage navigation based on DRL in complex geometric environments
專注跨境支付一體化服務 iPayLinks榮獲《財資》(The Asset)3A亞洲獎!
After graduation, the three people in beidatong dormitory went to foreign enterprises, state-owned enterprises and entrepreneurship respectively. What do they regret after 10 years
How cloud primitives support enterprise IT governance | Alibaba cloud user group
What are the methods to realize timeout in go language
Let me introduce you to the partition automatic management of data warehouse
ORA-1142 signalled during: ALTER DATABASE END BACKUP...
In depth analysis: how chain 2+1 mode plays with investment attraction and drainage
Communication mode of PLC
nodejs md5 加盐值
[example] input text in the input box to output the typewriter effect