Coder Social home page Coder Social logo

ppo's Introduction

ppo

alt text

Usage

The easiest way to run this code is in a docker container. The only requirements are Docker and nvidia-docker.

Option 1 - Basic Usage

Clone the repo:

git clone https://github.com/jastern33/ppo.git
cd ppo

Build the docker image (takes awhile):

cd docker
docker build -t deep-learning-pytorch -f Dockerfile . --rm

Run a docker container based on that image:

cd ..
nvidia-docker run -it --name ppo --rm -v $(pwd):/code deep-learning-pytorch

Then run the following command in the docker container for a basic demo:

python3 ppo

To see additional options run:

python3 ppo --help

(hint: look here ^ to see how to try a new dataset!)

Option 2 - To run the Jupyter Notebook demo:

If you want to run the jupyter notebook, it requires a couple of modifications.

Clone the repo:

git clone https://github.com/jastern33/ppo
cd ppo

Build the docker image (takes awhile):

cd docker
docker build -t deep-learning-pytorch -f Dockerfile . --rm

Run a docker container based on that image (notice the addition of the -p flag for port forwarding):

cd ..
nvidia-docker run -it --name ppo --rm -p 8890:8890 -v $(pwd):/code deep-learning-pytorch

In the docker container, run:

jupyter notebook --ip 0.0.0.0 --port 8890 --no-browser --allow-root

Then copy the url that it gives you, and paste it into a browser:

http://127.0.0.1:8890/?token=<really_long_token>

Now you can access and run the Jupyter Notebook (which is running inside the container) as if it were running on your own machine.

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.