The Wayback Machine - https://web.archive.org/web/20230313155938/https://github.com/atakehiro/3D-U-Net-pytorch-model-parallel
Skip to content

atakehiro/3D-U-Net-pytorch-model-parallel

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

3D-U-Net-pytorch-model-parallel

このコードはhttps://github.com/JielongZ/3D-UNet-PyTorch-Implementation (MIT License, Copyright (c) 2019 JielongZ) をModelParallel出来るように改変したものです。

Code is adapted from https://github.com/JielongZ/3D-UNet-PyTorch-Implementation (MIT License, Copyright (c) 2019 JielongZ) for ModelParallel of 2 GPU.

エンコーダ部分をGPU1で計算し、デコーダ部分をGPU2で計算するようになっています。

改変点は以下の2つです。

1.UnetModelクラスで計算するGPUを指定して割り振り

2.EncoderBlockクラスでスキップコネクション先をGPU2に指定

ModelParallelによって、大きなネットワークの学習が可能になりました。

参考:https://qiita.com/takeajioka/items/26439b848f66f43bb1d3

Usage

Main.pyで画像のパスやwindow sizeなどのパラメータを調整して実行

Python Main.py

Environment

Anaconda

Python 3.6

pytorch== 1.1.0_cuda9.0.176_cudnn7.5.1_0

tifffile==2020.2.16

Author

Takehiro Ajioka

E-mail:1790651m@stu.kobe-u.ac.jp

About

PyTorch implementation of 3D U-Net with model parallel in 2GPU for large model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages