Machine Learning with docker (42) Programming PyTorch for Deep Learning By Ian Pointer

Programming PyTorch for Deep Learning By Ian Pointer lrg-4.jpg

https://www.oreilly.com/library/view/programming-pytorch-for/9781492045342/

informal? https://github.com/falloutdurham/pytorchupandrunning

OS


$ docker run -p 8888:8888 -it kaizenjapan/pytorch /bin/bash

docker/anaconda


 # jupyter notebook --ip=0.0.0.0 --allow-root

In the browser localhost:8888 Open with Enter the id.

torch1.png torch2.png torch3.png torch4.png torch5.png

Procedure to build

OS


$ docker run -p 8888:8888 -it continuumio/anaconda3 /bin/bash

ubuntu/anaconda


# apt update; apt -y upgrade
# apt install vim git sudo apt-utils
# pip install --upgrade pip
# git clone https://github.com/falloutdurham/pytorchupandrunning.git
# conda install pytorch torchvision -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - pytorch
    - torchvision


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-4.7.12               |           py37_0         3.0 MB
    cudatoolkit-10.1.243       |       h6bb024c_0       347.4 MB
    ninja-1.9.0                |   py37hfd86e86_0         1.2 MB
    pytorch-1.3.0              |py3.7_cuda10.1.243_cudnn7.6.3_0       463.7 MB  pytorch
    torchvision-0.4.1          |       py37_cu101        10.9 MB  pytorch
    ------------------------------------------------------------
                                           Total:       826.3 MB

The following NEW packages will be INSTALLED:

  cudatoolkit        pkgs/main/linux-64::cudatoolkit-10.1.243-h6bb024c_0
  ninja              pkgs/main/linux-64::ninja-1.9.0-py37hfd86e86_0
  pytorch            pytorch/linux-64::pytorch-1.3.0-py3.7_cuda10.1.243_cudnn7.6.3_0
  torchvision        pytorch/linux-64::torchvision-0.4.1-py37_cu101

The following packages will be UPDATED:

  conda                                       4.7.10-py37_0 --> 4.7.12-py37_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
torchvision-0.4.1    | 10.9 MB   | ############################################################### | 100% 
pytorch-1.3.0        | 463.7 MB  | ############################################################### | 100% 
conda-4.7.12         | 3.0 MB    | ########################################################################### | 100% 
ninja-1.9.0          | 1.2 MB    | ########################################################################### | 100% 
cudatoolkit-10.1.243 | 347.4 MB  | ########################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

Save to hub

Reference

GET STARTED pytorch https://pytorch.org/get-started/locally/

I want to use Pytorch in a virtual environment https://qiita.com/nozomi254/items/b536883b1b46ae20aeae

Document history

ver. 0.01 First draft 20191105 ver. 0.02 Addition of images, etc. 20191106

Recommended Posts

Machine Learning with docker (42) Programming PyTorch for Deep Learning By Ian Pointer
Machine learning Minesweeper with PyTorch
Amplify images for machine learning with python
[Shakyo] Encounter with Python for machine learning
Machine learning with Pytorch on Google Colab
Recommended study order for machine learning / deep learning beginners
[Python] Collect images with Icrawler for machine learning [1000 images]
[For beginners of artificial intelligence] Machine learning / Deep Learning Programming Learning path and reference books
Machine Learning with docker (40) with anaconda (40) "Hands-On Data Science and Python Machine Learning" By Frank Kane
Python learning memo for machine learning by Chainer from Chapter 2
Preparing to start "Python machine learning programming" (for macOS)
Classify anime faces by sequel / deep learning with Keras
Rebuilding an environment for machine learning with Miniconda (Windows version)
"Learn while making! Development deep learning by PyTorch" on Colaboratory.
For those who want to start machine learning with TensorFlow2
Python learning memo for machine learning by Chainer Chapter 7 Regression analysis
Feature Engineering for Machine Learning Beginning with Part 3 Google Colaboratory-Scaling
Machine learning learned with Pokemon
Data set for machine learning
Japanese preprocessing for machine learning
Try deep learning with TensorFlow
Deep Learning Gaiden ~ GPU Programming ~
Machine learning with Python! Preparation
Deep Kernel Learning with Pyro
Try Deep Learning with FPGA
Deep learning for compound formation?
Python Machine Learning Programming> Keywords
Beginning with Python machine learning
4 [/] Four Arithmetic by Machine Learning
Try machine learning with Kaggle
Generate Pokemon with Deep Learning
Chapter 7 [Neural Network Deep Learning] P252 ~ 275 (first half) [Learn by moving with Python! New machine learning textbook]
Have Hisako's guitar replaced with her own guitar by machine learning -Execution-
Python learning memo for machine learning by Chainer Chapter 8 Introduction to Numpy
I tried to make deep learning scalable with Spark × Keras × Docker
Python learning memo for machine learning by Chainer Chapter 10 Introduction to Cupy
I searched for a similar card of Hearthstone with Deep Learning
I tried deep reinforcement learning (Double DQN) for tic-tac-toe with ChainerRL
Multi Layer Perceptron for Deep Learning (Deep Learning with Python; MPS Yokohama Deep Learning Series)
Python learning memo for machine learning by Chainer Chapter 9 Introduction to scikit-learn
Create an arbitrary machine learning environment with GCP + Docker + Jupyter Lab
Introduction to Deep Learning for the first time (Chainer) Japanese character recognition Chapter 2 [Model generation by machine learning]
[PyTorch] TRANSFER LEARNING FOR COMPUTER VISION
Try Deep Learning with FPGA-Select Cucumbers
Cat breed identification with deep learning
Make ASCII art with deep learning
[PyTorch Tutorial ⑤] Learning PyTorch with Examples (Part 2)
Tips for running Go with docker
I tried machine learning with liblinear
Machine learning with python (1) Overall classification
Try deep learning with TensorFlow Part 2
Machine learning summary by Python beginners
Solve three-dimensional PDEs with deep learning.
Try machine learning with scikit-learn SVM
<For beginners> python library <For machine learning>
Organize machine learning and deep learning platforms
Deep learning learned by implementation 1 (regression)
Machine learning meeting information for HRTech
Check squat forms with deep learning
[PyTorch Tutorial ⑤] Learning PyTorch with Examples (Part 1)
Categorize news articles with deep learning