Giter VIP home page Giter VIP logo

Comments (3)

shaoxh avatar shaoxh commented on June 30, 2024

It turns out my cmake version is low. I have upgrade it to 3.14 and cmake .. is ok.
However,when I did "make " command, error still occurred.

CMake Error at cuda_compile_1_generated_absval_layer.cu.o.Release.cmake:279 (message):
Error generating file
/home/godu/Documents/caffe-posenet/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_absval_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:497: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o' failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o] Error 1
CMakeFiles/Makefile2:240: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

from caffe-posenet.

shaoxh avatar shaoxh commented on June 30, 2024

It turns out that caffe in this project is slightly different with the official caffe. So we need to replace some files related to cudnn in caffe-posenet project.
Then I followed instructions of https://github.com/DRAhmadFaraz/PoseNet-Caffe.
Like
Replace ./include/caffe/util/cudnn.hpp with the latest version of cudnn in caffe, the corresponding cudnn.hpp. All files in ./include/caffe/layers that start with cudnn, such as cudnn_conv_layer.hpp. Replaced with the corresponding file of the same name in the latest version of caffe. Replace all files starting with cudnn, such as cudnn_lrn_layer.cu, cudnn_pooling_layer.cpp, cudnn_sigmoid_layer.cu, in ./src/caffe/layer with the corresponding file of the same name in the latest version of caffe.

finally worked!

hope this could help someone else.

from caffe-posenet.

shaoxh avatar shaoxh commented on June 30, 2024

Oh I finally make it.
I have made some mistakes in compiling this projects. So I am going to comment here for anyone in use.

This project have a caffe itself. So the first step is to do "[cmake ..] and [make all] and [make pycaffe] on your own.
I did not realise it until read some issue. So bad, hopefully project owner could write it somewhere in Readme file.

After I finish building this caffe, ~/.bashrc should add a line in order to specify the python this project is going to use. Here is my line.
export PYTHONPATH=$PYTHONPATH:/home/godu/Documents/caffe-posenet/python:$PYTHONPATH

Then you MUST change some lines in create_posenet_lmdb_dataset.py and test_posenet.py as the author mentioned.
Some users confront errors in this step.
You should notice that in the codes of python file, caffe_root ends with a "/".

This is one of my changes in 13 line of test_posenet.py file.

Make sure that caffe is on the python path:

caffe_root = '/home/godu/Documents/caffe-posenet/' # Change to your directory to caffe-posenet
import sys
sys.path.insert(0, caffe_root + 'python')

from caffe-posenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.