Giter VIP home page Giter VIP logo

Comments (7)

KnightOfTheMoonlight avatar KnightOfTheMoonlight commented on May 28, 2024 1

I have add
# boost set(Boost_NO_SYSTEM_PATHS ON) set(BOOST_ROOT "/harddrives/epsilon/linli/libraries/boost") set(BOOST_INCLUDEDIR "/harddrives/epsilon/linli/libraries/boost/include/boost") set(BOOST_LIBRARYDIR "/harddrives/epsilon/linli/libraries/boost/lib")
before
# ---[ Dependencies include(cmake/Dependencies.cmake)

of ROOT/lib/caffe-action/CMakeLists.txt

to solve this problem.

This problem is because I use personal python and boost library. And cmake can not find the specific ones. The above solution is perfect for pycaffe.

from temporal-segment-networks.

yjxiong avatar yjxiong commented on May 28, 2024

I guess you may have another version of Caffe installed on the machine. And you may either be using the Python interfaces from that version or have had your Python interfaces linked to that version. Please have a look on LD_LIBRARY_PATH or the ldd the _caffe.so under the python/ directory of the bundled Caffe.

from temporal-segment-networks.

KnightOfTheMoonlight avatar KnightOfTheMoonlight commented on May 28, 2024

Yes. I have another version of caffe installed. And the python I used is not the default one in the system path. And I found that I have set the compiled pycaffe for that version in PYTHONPATH.

I have not seen any setting for python path from your README rather than standard caffe. And I did not find _caffe.so file under the python/ path. So I thought it must because the Python interface is not compiled. And I have no idea of how to solve that for TSN. Your interface is not very clear about this.

from temporal-segment-networks.

yjxiong avatar yjxiong commented on May 28, 2024

If the Python wrapper is not compiled, please try to compile it. In general, using a wrapper from another version of codebase won't help.

To compile it, you need to have boost version higher than 1.54. Usually, you can get that with apt-get. Then please go into the build directory of Caffe. Run the cmake .. command and check the output. If the output contains something like

python interface is disabled

this means CMake cannot build the Python interfaces, due to either missing Python libraries in the paths or earlier Boost version. Please make sure the Python interface is compiled before using the provided scripts.

from temporal-segment-networks.

yjxiong avatar yjxiong commented on May 28, 2024

Good to know. And thank you for posting the solutions!

from temporal-segment-networks.

LiangXu123 avatar LiangXu123 commented on May 28, 2024

I have the same quesion and solved by following your solution,thank you!

from temporal-segment-networks.

buaa-luzhi avatar buaa-luzhi commented on May 28, 2024

Hello, @KnightOfTheMoonlight @cc786537662
I have the same question like you! Can you help me.
I have added these commands in ROOT/lib/caffe-action/CMakeLists.txt
Like this....
................
caffe_option(USE_MPI "whether to include MPI parallelization" OFF) #Used to switch on and off MPI

boost set(Boost_NO_SYSTEM_PATHS ON) set(BOOST_ROOT

"/boost root/boost") set(BOOST_INCLUDEDIR
"/boost root/boost/include/boost") set(BOOST_LIBRARYDIR
"/boost root/boost/lib")

---[ Dependencies

include(cmake/Dependencies.cmake)
..........

But, when i compile caffe-action again, this problem stiill exist!

Can you give me some advice, thanks in advance!

from temporal-segment-networks.

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.