Code Monkey home page Code Monkey logo

pytorch-docker's Introduction

Pytorch Docker

This repository provides a dockerized pythorch environment with cuda support for neural network training.

Install

Install docker

https://docs.docker.com/engine/install/ubuntu/

Run post-installation steps

https://docs.docker.com/engine/install/linux-postinstall/

You should be able to run docker run hello-world without using sudo. If sudo is still required, run sudo newgrp docker and restart your computer.

Install Nvidia drivers

Install Nvidia Driver Version: 525.125.06 or higher.

Install Nvidia container toolkit

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker

Compile container

./compile.sh

Run livox_ros container

Run the container: ./run.sh In case of an error like this: docker: Error response from daemon: Unknown runtime specified nvidia.

Run the following commands

sudo apt install -y nvidia-docker2
sudo systemctl daemon-reload
sudo systemctl restart docker

In VSCode install Dev Container and Docker

The repository /data folder is not synced to github, but it is attached to the container at /home/appuser/data, the same goes with src.

Test the docker

Navigate to src folder and run the provided python script. python test-gpu.py The result should look similar to this:

Is GPU available:  True
Number of GPU:  1
Device number:  0
Cuda device:  <torch.cuda.device object at 0x7f83317c9820>
Name of the GPU:  NVIDIA GeForce GTX 1080

Let's go!

pytorch-docker's People

Contributors

palffybalazs 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.