Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
UNet_pytorch
Commits
7450c85c
Commit
7450c85c
authored
Nov 16, 2023
by
yongshk
Browse files
Initial commit
parent
619e7abe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
README.md
README.md
+18
-12
No files found.
README.md
View file @
7450c85c
# UNET
_pytorch
# UNET
## 论文
## 论文
`U-Net: Convolutional Networks for Biomedical Image Segmentation`
`U-Net: Convolutional Networks for Biomedical Image Segmentation`
...
@@ -30,6 +30,9 @@ docker run -it --network=host --name=unet --privileged --device=/dev/kfd --devic
...
@@ -30,6 +30,9 @@ docker run -it --network=host --name=unet --privileged --device=/dev/kfd --devic
```
```
DTK驱动:dtk23.04
DTK驱动:dtk23.04
python:python3.7
python:python3.7
apex==0.1+f49ddd4.abi0.dtk2304.torch1.13
torch==1.13.1+git55d300e.abi0.dtk2304
torchvision==0.14.1+git9134838.abi0.dtk2304.torch1.13
```
```
`Tips:以上dtk驱动、python等DCU相关工具版本需要严格一一对应`
`Tips:以上dtk驱动、python等DCU相关工具版本需要严格一一对应`
...
@@ -50,25 +53,28 @@ bash scripts/download_data.sh
...
@@ -50,25 +53,28 @@ bash scripts/download_data.sh
```
```
── data
── data
│ ├── imgs
│ ├── imgs
│ ├──────fff9b3a5373f_
0
1.jpg
│ ├──────fff9b3a5373f_1
5
.jpg
│ ├──────fff9b3a5373f_
02
.jpg
│ ├──────fff9b3a5373f_
16
.jpg
│ └── masks
│ └── masks
│ ├────── fff9b3a5373f_
0
1.gif
│ ├────── fff9b3a5373f_1
5
.gif
│ ├────── fff9b3a5373f_
02
.gif
│ ├────── fff9b3a5373f_
16
.gif
```
```
## 训练
## 训练
### 单机单卡
```
python train.py
```
### 单机多卡
### 单机多卡
```
```
python -m torch.distributed.launch --nproc_per_node 4 train_ddp.py
python -m torch.distributed.launch --nproc_per_node 4 train_ddp.py
```
```
### 单机单卡
```
python train.py
```
## 推理
## 推理
[
模型下载路径
](
https://github.com/milesial/Pytorch-UNet/releases/tag/v3.0
)
```
```
python predict.py -i image.jpg -o output.jpg
python predict.py
-m model_path
-i image.jpg -o output.jpg
```
```
## result
## result


...
@@ -83,10 +89,10 @@ python predict.py -i image.jpg -o output.jpg
...
@@ -83,10 +89,10 @@ python predict.py -i image.jpg -o output.jpg
## 应用场景
## 应用场景
### 算法类别
### 算法类别
`
视觉、
图像分割`
`图像分割`
### 热点应用行业
### 热点应用行业
`医
学图像分析`
、
`卫星图像分析`
、
`自然图像分割`
、
`工业检测
`
`医
疗
`
## 源码仓库及问题反馈
## 源码仓库及问题反馈
-
https://developer.hpccube.com/codes/modelzoo/unet-pytorch
-
https://developer.hpccube.com/codes/modelzoo/unet-pytorch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment