Giter VIP home page Giter VIP logo

Comments (3)

lhmRyan avatar lhmRyan commented on July 29, 2024

I suggest you compiling the code using the "make all" command, that should work.

from deep-supervised-hashing-dsh.

Lischip avatar Lischip commented on July 29, 2024

Thank you for replying so fast! I used 'make -j4' at the previous attempts to compile it, but when using 'make all' it results in the same error. I am able to compile the original caffe with both the 'make -j4' and 'make all' commands.

The steps I take on my ubuntu 16.04 LTS system are renaming the Makefile.config.example to Makefile.config and editing it to fit my system. Then I create a build folder and use 'cmake ..' and 'make all' within the build folder.

When the 'cmake ..' command is in progress it only throws the error it cannot detect CUDA, and continues building without it.

Thanks for your time and patience!

from deep-supervised-hashing-dsh.

lhmRyan avatar lhmRyan commented on July 29, 2024

@Lischip Hi, I've tested my code on an ubuntu 16.04 server, it works just fine for me. Here's how I compiled the code:

Step 1: git clone the code
Step 2: cd to the directory
Step 3: rename Makefile.config.example to Makefile.config, and add the path of libhdf5 as:

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

Step 4: uncomment "USE_CUDNN", note that this version of the code does not support cudnn v5, so I used cudnn v4, and added the path to "Makefile.config" accordingly.
Step 5: make all -j8

I didn't use cmake, so I think that cmake might be the cause of your problem. You could try to compile the code by simply using "make all".

Another solution could be to implement the forward_gpu and backward_gpu functions for the hashing_loss_layer. But the above solution could be easier.

from deep-supervised-hashing-dsh.

Related Issues (14)

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.