Movatterモバイル変換
[0]
ホーム
URL:
画像なし
夜間モード
Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Deep Learning JP
PPTX, PDF
1,790 views
[DLHacks]pytorch - segmentation を TPU で実行してみた / pytorch - lightning で書き換えてみた
2019/08/19Deep Learning JP: http://deeplearning.jp/hacks/
Technology
◦
Related topics:
Deep Learning
•
Read more
2
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 23
2
/ 23
Most read
3
/ 23
4
/ 23
5
/ 23
6
/ 23
7
/ 23
8
/ 23
9
/ 23
10
/ 23
11
/ 23
12
/ 23
13
/ 23
14
/ 23
15
/ 23
16
/ 23
17
/ 23
18
/ 23
19
/ 23
20
/ 23
21
/ 23
22
/ 23
23
/ 23
Recommended
PDF
最新リリース:Optuna V3の全て - 2022/12/10 Optuna Meetup #2
by
Preferred Networks
PDF
時系列予測にTransformerを使うのは有効か?
by
Fumihiko Takahashi
PDF
KCFの紹介
by
Hitoshi Nishimura
PDF
Transformer 動向調査 in 画像認識
by
Kazuki Maeno
PDF
[DL輪読会]Relational inductive biases, deep learning, and graph networks
by
Deep Learning JP
PPTX
【DL輪読会】言語以外でのTransformerのまとめ (ViT, Perceiver, Frozen Pretrained Transformer etc)
by
Deep Learning JP
PDF
最近強化学習の良記事がたくさん出てきたので勉強しながらまとめた
by
Katsuya Ito
ODP
Attention-Guided GANについて
by
yohei okawa
PPTX
モデル高速化百選
by
Yusuke Uchida
PPTX
[DL輪読会]Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images
by
Deep Learning JP
PDF
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
by
joisino
PPTX
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
by
Masayuki Tanaka
PPTX
論文紹介: "MolGAN: An implicit generative model for small molecular graphs"
by
Ryohei Suzuki
PDF
BlackBox モデルの説明性・解釈性技術の実装
by
Deep Learning Lab(ディープラーニング・ラボ)
PPTX
You Only Look One-level Featureの解説と見せかけた物体検出のよもやま話
by
Yusuke Uchida
PPTX
勾配ブースティングの基礎と最新の動向 (MIRU2020 Tutorial)
by
RyuichiKanoh
PDF
Pythonではじめるロケーションデータ解析
by
Hiroaki Sengoku
PDF
深層学習フレームワークにおけるIntel CPU/富岳向け最適化法
by
MITSUNARI Shigeo
PPTX
【DL輪読会】時系列予測 Transfomers の精度向上手法
by
Deep Learning JP
PDF
PyData.Tokyo Meetup #21 講演資料「Optuna ハイパーパラメータ最適化フレームワーク」太田 健
by
Preferred Networks
PDF
Pythonによる機械学習入門 ~Deep Learningに挑戦~
by
Yasutomo Kawanishi
PPTX
東京大学2020年度深層学習(Deep learning基礎講座) 第9回「深層学習と自然言語処理」
by
Hitomi Yanaka
PDF
PCAの最終形態GPLVMの解説
by
弘毅 露崎
PPTX
Transformerを雰囲気で理解する
by
AtsukiYamaguchi1
PPTX
[DL輪読会]NVAE: A Deep Hierarchical Variational Autoencoder
by
Deep Learning JP
PPTX
【DL輪読会】The Forward-Forward Algorithm: Some Preliminary
by
Deep Learning JP
PPTX
画像処理AIを用いた異常検知
by
Hideo Terada
PDF
TensorFlow Liteを使った組み込みディープラーニング開発
by
Makoto Koike
PPTX
【DL輪読会】AdaptDiffuser: Diffusion Models as Adaptive Self-evolving Planners
by
Deep Learning JP
PPTX
【DL輪読会】事前学習用データセットについて
by
Deep Learning JP
More Related Content
PDF
最新リリース:Optuna V3の全て - 2022/12/10 Optuna Meetup #2
by
Preferred Networks
PDF
時系列予測にTransformerを使うのは有効か?
by
Fumihiko Takahashi
PDF
KCFの紹介
by
Hitoshi Nishimura
PDF
Transformer 動向調査 in 画像認識
by
Kazuki Maeno
PDF
[DL輪読会]Relational inductive biases, deep learning, and graph networks
by
Deep Learning JP
PPTX
【DL輪読会】言語以外でのTransformerのまとめ (ViT, Perceiver, Frozen Pretrained Transformer etc)
by
Deep Learning JP
PDF
最近強化学習の良記事がたくさん出てきたので勉強しながらまとめた
by
Katsuya Ito
ODP
Attention-Guided GANについて
by
yohei okawa
最新リリース:Optuna V3の全て - 2022/12/10 Optuna Meetup #2
by
Preferred Networks
時系列予測にTransformerを使うのは有効か?
by
Fumihiko Takahashi
KCFの紹介
by
Hitoshi Nishimura
Transformer 動向調査 in 画像認識
by
Kazuki Maeno
[DL輪読会]Relational inductive biases, deep learning, and graph networks
by
Deep Learning JP
【DL輪読会】言語以外でのTransformerのまとめ (ViT, Perceiver, Frozen Pretrained Transformer etc)
by
Deep Learning JP
最近強化学習の良記事がたくさん出てきたので勉強しながらまとめた
by
Katsuya Ito
Attention-Guided GANについて
by
yohei okawa
What's hot
PPTX
モデル高速化百選
by
Yusuke Uchida
PPTX
[DL輪読会]Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images
by
Deep Learning JP
PDF
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
by
joisino
PPTX
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
by
Masayuki Tanaka
PPTX
論文紹介: "MolGAN: An implicit generative model for small molecular graphs"
by
Ryohei Suzuki
PDF
BlackBox モデルの説明性・解釈性技術の実装
by
Deep Learning Lab(ディープラーニング・ラボ)
PPTX
You Only Look One-level Featureの解説と見せかけた物体検出のよもやま話
by
Yusuke Uchida
PPTX
勾配ブースティングの基礎と最新の動向 (MIRU2020 Tutorial)
by
RyuichiKanoh
PDF
Pythonではじめるロケーションデータ解析
by
Hiroaki Sengoku
PDF
深層学習フレームワークにおけるIntel CPU/富岳向け最適化法
by
MITSUNARI Shigeo
PPTX
【DL輪読会】時系列予測 Transfomers の精度向上手法
by
Deep Learning JP
PDF
PyData.Tokyo Meetup #21 講演資料「Optuna ハイパーパラメータ最適化フレームワーク」太田 健
by
Preferred Networks
PDF
Pythonによる機械学習入門 ~Deep Learningに挑戦~
by
Yasutomo Kawanishi
PPTX
東京大学2020年度深層学習(Deep learning基礎講座) 第9回「深層学習と自然言語処理」
by
Hitomi Yanaka
PDF
PCAの最終形態GPLVMの解説
by
弘毅 露崎
PPTX
Transformerを雰囲気で理解する
by
AtsukiYamaguchi1
PPTX
[DL輪読会]NVAE: A Deep Hierarchical Variational Autoencoder
by
Deep Learning JP
PPTX
【DL輪読会】The Forward-Forward Algorithm: Some Preliminary
by
Deep Learning JP
PPTX
画像処理AIを用いた異常検知
by
Hideo Terada
PDF
TensorFlow Liteを使った組み込みディープラーニング開発
by
Makoto Koike
モデル高速化百選
by
Yusuke Uchida
[DL輪読会]Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images
by
Deep Learning JP
Word Tour: One-dimensional Word Embeddings via the Traveling Salesman Problem...
by
joisino
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
by
Masayuki Tanaka
論文紹介: "MolGAN: An implicit generative model for small molecular graphs"
by
Ryohei Suzuki
BlackBox モデルの説明性・解釈性技術の実装
by
Deep Learning Lab(ディープラーニング・ラボ)
You Only Look One-level Featureの解説と見せかけた物体検出のよもやま話
by
Yusuke Uchida
勾配ブースティングの基礎と最新の動向 (MIRU2020 Tutorial)
by
RyuichiKanoh
Pythonではじめるロケーションデータ解析
by
Hiroaki Sengoku
深層学習フレームワークにおけるIntel CPU/富岳向け最適化法
by
MITSUNARI Shigeo
【DL輪読会】時系列予測 Transfomers の精度向上手法
by
Deep Learning JP
PyData.Tokyo Meetup #21 講演資料「Optuna ハイパーパラメータ最適化フレームワーク」太田 健
by
Preferred Networks
Pythonによる機械学習入門 ~Deep Learningに挑戦~
by
Yasutomo Kawanishi
東京大学2020年度深層学習(Deep learning基礎講座) 第9回「深層学習と自然言語処理」
by
Hitomi Yanaka
PCAの最終形態GPLVMの解説
by
弘毅 露崎
Transformerを雰囲気で理解する
by
AtsukiYamaguchi1
[DL輪読会]NVAE: A Deep Hierarchical Variational Autoencoder
by
Deep Learning JP
【DL輪読会】The Forward-Forward Algorithm: Some Preliminary
by
Deep Learning JP
画像処理AIを用いた異常検知
by
Hideo Terada
TensorFlow Liteを使った組み込みディープラーニング開発
by
Makoto Koike
More from Deep Learning JP
PPTX
【DL輪読会】AdaptDiffuser: Diffusion Models as Adaptive Self-evolving Planners
by
Deep Learning JP
PPTX
【DL輪読会】事前学習用データセットについて
by
Deep Learning JP
PPTX
【DL輪読会】 "Learning to render novel views from wide-baseline stereo pairs." CVP...
by
Deep Learning JP
PPTX
【DL輪読会】Zero-Shot Dual-Lens Super-Resolution
by
Deep Learning JP
PPTX
【DL輪読会】BloombergGPT: A Large Language Model for Finance arxiv
by
Deep Learning JP
PPTX
【DL輪読会】マルチモーダル LLM
by
Deep Learning JP
PDF
【 DL輪読会】ToolLLM: Facilitating Large Language Models to Master 16000+ Real-wo...
by
Deep Learning JP
PPTX
【DL輪読会】AnyLoc: Towards Universal Visual Place Recognition
by
Deep Learning JP
PDF
【DL輪読会】Can Neural Network Memorization Be Localized?
by
Deep Learning JP
PPTX
【DL輪読会】Hopfield network 関連研究について
by
Deep Learning JP
PPTX
【DL輪読会】SimPer: Simple self-supervised learning of periodic targets( ICLR 2023 )
by
Deep Learning JP
PDF
【DL輪読会】RLCD: Reinforcement Learning from Contrast Distillation for Language M...
by
Deep Learning JP
PDF
【DL輪読会】"Secrets of RLHF in Large Language Models Part I: PPO"
by
Deep Learning JP
PPTX
【DL輪読会】"Language Instructed Reinforcement Learning for Human-AI Coordination "
by
Deep Learning JP
PPTX
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
by
Deep Learning JP
PDF
【DL輪読会】"Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware"
by
Deep Learning JP
PPTX
【DL輪読会】Parameter is Not All You Need:Starting from Non-Parametric Networks fo...
by
Deep Learning JP
PDF
【DL輪読会】Drag Your GAN: Interactive Point-based Manipulation on the Generative ...
by
Deep Learning JP
PDF
【DL輪読会】Self-Supervised Learning from Images with a Joint-Embedding Predictive...
by
Deep Learning JP
PPTX
【DL輪読会】Towards Understanding Ensemble, Knowledge Distillation and Self-Distil...
by
Deep Learning JP
【DL輪読会】AdaptDiffuser: Diffusion Models as Adaptive Self-evolving Planners
by
Deep Learning JP
【DL輪読会】事前学習用データセットについて
by
Deep Learning JP
【DL輪読会】 "Learning to render novel views from wide-baseline stereo pairs." CVP...
by
Deep Learning JP
【DL輪読会】Zero-Shot Dual-Lens Super-Resolution
by
Deep Learning JP
【DL輪読会】BloombergGPT: A Large Language Model for Finance arxiv
by
Deep Learning JP
【DL輪読会】マルチモーダル LLM
by
Deep Learning JP
【 DL輪読会】ToolLLM: Facilitating Large Language Models to Master 16000+ Real-wo...
by
Deep Learning JP
【DL輪読会】AnyLoc: Towards Universal Visual Place Recognition
by
Deep Learning JP
【DL輪読会】Can Neural Network Memorization Be Localized?
by
Deep Learning JP
【DL輪読会】Hopfield network 関連研究について
by
Deep Learning JP
【DL輪読会】SimPer: Simple self-supervised learning of periodic targets( ICLR 2023 )
by
Deep Learning JP
【DL輪読会】RLCD: Reinforcement Learning from Contrast Distillation for Language M...
by
Deep Learning JP
【DL輪読会】"Secrets of RLHF in Large Language Models Part I: PPO"
by
Deep Learning JP
【DL輪読会】"Language Instructed Reinforcement Learning for Human-AI Coordination "
by
Deep Learning JP
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
by
Deep Learning JP
【DL輪読会】"Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware"
by
Deep Learning JP
【DL輪読会】Parameter is Not All You Need:Starting from Non-Parametric Networks fo...
by
Deep Learning JP
【DL輪読会】Drag Your GAN: Interactive Point-based Manipulation on the Generative ...
by
Deep Learning JP
【DL輪読会】Self-Supervised Learning from Images with a Joint-Embedding Predictive...
by
Deep Learning JP
【DL輪読会】Towards Understanding Ensemble, Knowledge Distillation and Self-Distil...
by
Deep Learning JP
[DLHacks]pytorch - segmentation を TPU で実行してみた / pytorch - lightning で書き換えてみた
1.
pytorch-segmentationをTPUで実行してみた/pytorch-lightningで書き換えてみた東京大学大学院 情報理工学系研究科電子情報学専攻 坂井・入江研
D1谷合 廣紀
2.
今日の内容• セマンティックセグメンテーションを題材に• PyTorchでTPUを使ってみる•
pytorch-lightningで学習コードを書き直す
3.
pytorch-segmentation• https://github.com/nyoki-mtl/pytorch-segmentation• PyTorchで書いたセマンティックセグメンテーション用のコード•
Deeplab V3+, MobileNet V2, Unetなどが使える
4.
TPUで実行してみた
5.
TPUとは• Googleが開発したディープラーニング用のプロセッサ• Google
ColaboratoryやGoogle Cloud Platformで使える• フレームワークとしえはKeras/Tensorflowが対応
6.
PyTorchからもTPUを使ってみたい• 去年10月くらいにPyTorchも今後TPUに対応していくことが発表された• https://cloud.google.com/blog/products/ai-machine-learning/introducing-pytorch-across-google-cloud•
https://github.com/pytorch/xla で開発が進められている• XLA(Accelerated Linear Algebra)はTensorflow用のコンパイラ• XLAでコンパイルした中間言語はTPUで実行可能
7.
pytorch/xla• githubのページに行くとチュートリアルがある• 実行してみよう!
8.
環境• Google Cloud
Platformで実験• インスタンス• TPU v3x8 (第三世代のTPUが8台)• n1-standard-16 (vCPU x16, Memory 60GB)
9.
TPUの起動 (コマンド例)$ gcloud
compute tpus create tpu-node1 --zone=us-central1-a --network=default --range=10.0.101.0 --version=pytorch-0.1 --accelerator-type=v3-8Pytorch用のソフトウェア
10.
CPUの起動 (コマンド例)$ gcloud
compute instances create master-vm --zone=us-central1-a --machine-type=n1-standard-16 --image=debian-9-torch-xla-v20190817 --image-project=ml-images --boot-disk-size=100GB --boot-disk-type=pd-ssdPytorch用のイメージ
11.
MNIST実行$ gcloud compute
ssh master-vm(vm)$ export XRT_TPU_CONFIG="tpu_worker;0;10.0.101.2:8470“(vm)$ conda activate pytorch-0.1(pytorch-0.1)$ cd /usr/share/torch-xla-0.1/pytorch/xla(pytorch-0.1)$ python test/test_train_mnist.py
12.
pytorch-segmentationを書き換える• もとのコードhttps://github.com/nyoki-mtl/pytorch-segmentation/blob/master/src/train.py• TPU用のコードhttps://github.com/nyoki-mtl/pytorch-segmentation/blob/tpu/src/train_tpu.py•
UNetでcityscapesを学習させてみる
13.
ライブラリ• TPU用の環境変数• torch-xlaのインポート
14.
TPUの設定• 使用するデバイスの設定• max_devices:
TPUをいくつ使うか指定でき、Noneなら全部使う
15.
モデルの並列化• Train• Valid
16.
Train loop
17.
所感• 思ったより簡単にTPU実行可能なコードに書き換えることができた• まだできていない部分も多い•
Dilated convが実行できなかったので、deeplab v3+は動かせなかった• model.eval()をするとBatchNormの挙動がおかしくなっているように感じた• 学習に時間がかかる• NVIDIA TITAN Vで3分の学習がTPU v3x8で20分ほどかかった• TPUの強みを活かせていない or 別のところにボトルネックがあるかも
18.
pytorch-lightningに書き換えてみた
19.
pytorch-lightningとは• PyTorchのラッパーで効率的に実験コードを書くことができるライブラリ• Tensorflowにおけるkerasのような立ち位置•
最近、Pytorch公式のエコシステムのひとつに
20.
pytorch-lightningの書き方• pl.LightningModuleを継承したモデルを書いて
21.
pytorch-lightningの書き方• Trainerで学習を回すだけ
22.
pytorch-segmentationを書き換える• もとのコード• https://github.com/nyoki-mtl/pytorch-segmentation/blob/master/src/train.py•
Pytorch-lightningのコード• https://github.com/nyoki-mtl/pytorch-segmentation/blob/pytorch-lightning/src/pl_model.py• https://github.com/nyoki-mtl/pytorch-segmentation/blob/pytorch-lightning/src/pl_train.py• Deeplabv3+でcityscapesを学習させてみる
23.
所感• コードがきれいにまとまって可読性が向上した• 機能が多い•
簡単にマルチGPUや混合精度演算を実行できる• Tensorboardでログを出力できる• 簡潔に書ける一方でカスタマイズ性も高い
Download
[8]
ページ先頭
©2009-2025
Movatter.jp