Giter Club home page Giter Club logo

docker_gpu_env's Introduction

リポジトリについて

データ分析をする際に必要なライブラリが用意されたPythonによる環境を提供しています。 コンテナ内はGPUにも対応しています。 WSL2(Ubuntu20.04), Docker, gitを利用しています。

GPUはGTX 1650で確認済みです。

ディレクトリ

  • notebook/.....ここに.ipynbファイルやデータなどを追加します。

ライブラリの追加

ライブラリを永続的にインストールする場合、libraries/Dockerfileにインストールするライブラリを追加してください。

# python libraries
RUN pip install -U pip && \
        pip install fastprogress japanize-matplotlib \
        new library here

リポジトリのダウンロード

git clone https://github.com/jinwatanabe/Docker_gpu_env.git

Docker_gpu_envというフォルダがクローンされるので以降はそのフォルダで作業をします。

起動方法

  1. docker-compose build
  2. docker-compose up

Webブラウザを開きlocalhostにアクセスする。

bandicam 2021-05-28 21-30-20-860

作業の後にはdocker-compose downをしてください。

GPUの設定

以下の記事を参考に設定を行う。

認識しているかの確認は以下のコマンドで行う。

$ docker exec -it jupyter bash
$ nvidia-smi

また、/notebook/gpu_test.pyでPyTorchのGPU確認が行える

docker_gpu_env's People

Contributors

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