Coder Social home page Coder Social logo

burlap_caffe's Introduction

burlap_caffe

Caffe Dependencies

To make sure you have all the dependencies for Caffe, we recommend cloning the Caffe Github repo and compiling it (with CUDA) by following their installation instructions.

Additionally, make sure CUDA is added to the LD_LIBRARY_PATH. If CUDA was installed with apt-get (on a 64-bit machine), you can simply add this to your .bashrc

export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/cuda/lib64:$LD_LIBRARY_PATH

And then running

source ~/.bashrc

JavaCPP Caffe with cuDNN

We are using Bytedeco's Java bindings for Caffe, the dependencies of which are all handled through maven, and should download and run smoothly. But, this repository compiles Caffe without cuDNN, which makes the GPU training much slower. To compile with cuDNN, first clone the JavaCPP presets repo:

git clone https://github.com/bytedeco/javacpp-presets

By default, this library does not compile caffe with cuDNN, so we have to change the cppbuild.sh script. Replace the javacpp-presets/caffe/cppbuild.sh with the file provided in the instalation_files directory. Now run these commands from the javacpp-presets directory to compile JavaCPP caffe and install it to maven:

./cppbuild.sh install caffe
mvn clean install --projects caffe

Now this library should be linked with maven.

Example Code

We provide two sets of example code within the project.

The first, AtariDQN, is the same architecture as DeepMind's DQN with the same hyper-parameters as specified in their [nature paper] (http://www.nature.com/nature/journal/v518/n7540/full/nature14236.html).

To run this code, you will need to ALE. To install ALE, follow the instructions on our burlap_ale repository. If you want to replicate Deep-Mind's results, be sure to use our fork of ALE, and set TERMINATE_ON_END_LIFE to true in AtariDQN.

NOTE: You may need to increase the Java max memory size to run this example. To do so, add -Xmx8192m as a Java VM argument (this sets the max memory to 8GB).

The second, GridWorldDQN, is a simple DQN implementation for a built-in BURLAP domain.

burlap_caffe's People

Watchers

 avatar

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.