Giter VIP home page Giter VIP logo

deeplytough-compose's Introduction

How to run with DeeplyTough with docker-compose

Docker

  1. Install Docker Engine 19 or later
  2. Install Docker Compose
  3. Install NVIDIA Container toolkit, including essential package nvidia-docker2
  4. Add your user to docker group
usermod -aG docker $USER

Use pacman and AUR if installing for Arch linux.

Test your installation by

docker run --rm --gpus all nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 nvidia-smi

You should see all your GPUs in nvidia-smi.

You can build container youself or download it from GitHub Docker Registry

Installing source code

git clone https://github.com/BenevolentAI/DeeplyTough

Build container locally

docker-compose build

Download datasets

mkdir -p datasets
export STRUCTURE_DATA_DIR=$(pwd)/datasets
./DeeplyTough/datasets_downloader.sh 

Wait some time for downloading....

Create data volumes

Create results folder

mkdir -p results

If you need any of results from repository, just copy them to this folder. If you need custom network models, create networks folder and uncomment the corresponding volume in YAML file.

Run interactive version

Execute any commands interactively.

docker-compose run --rm deeplytough
source activate deeplytough
python <your command>

Run batch version

docker-compose -f docker-compose-batch.yml run --rm deeplytough

Edit command in YAML file for you needs.

Run as a service

You can run program in background, and it will restart automatically if failed.

Start execution

docker-compose -f docker-compose-batch.yml up -d

View logs

docker-compose logs

Stop execution

docker-compose -f docker-compose-batch.yml down

Running already build container from GitHub Docker Registry

If you do not want to build container by yourself, you can use container from GitHub Docker Registry.

  1. (Optional) Install docker-credential-secretservice to store your passwords securely.
  2. Obtain a GitHub token https://github.com/settings/tokens/new with read:packages permission
  3. Save your token to file token.txt
  4. Login to registry by command:
cat token.txt | docker login https://docker.pkg.github.com -u <your username> --password-stdin
  1. Run batch version with container from repository:
docker-compose -f docker-compose-repo.yml run --rm deeplytough

deeplytough-compose's People

Contributors

thyroxine avatar

Stargazers

 avatar

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.