Implemented by Pytorch, it can also be a tutorial of semantic segmentation.
If you like it, please star me. 😄
There are some datasets from kaggle and other websites.
- UNet
- UNet++
- Attention UNet
R2U-NetAttention R2U-NetNFNPlusXNet
- Pytorch 1.4.0
- Torchvision 0.5.0
- Python 3.7
- Some other libraries (find what you miss when running the code :-P)
- After downloading datasets, generate the
train.json
andval.json
for each dataset with the following format:
[
{
"image_path": "/home/tangwenqi/workspace/data/small_g4/coco_train/JPEGImages/20180550-PASM.jpg",
"mask_path": "/home/tangwenqi/workspace/data/small_g4/coco_train/Labels/20180550-PASM.png"
},
{
"image_path": "/home/tangwenqi/workspace/data/small_g4/coco_train/JPEGImages/20180620-PASM.jpg",
"mask_path": "/home/tangwenqi/workspace/data/small_g4/coco_train/Labels/20180620-PASM.png"
},
]
- For each dataset, modify its absolute path in corresponding class.
run train.py
with some required and optional parameters, for more details please look train.py
.