Class | IoU |
---|---|
Background | 0.970 |
Vertical | 0.757 |
Horizontal | 0.786 |
Python >= 3.6 ,Recommend to use Anaconda
matplotlib==3.2.2
numpy==1.19.2
Pillow==8.2.0
pytorch-gpu==1.10.2
torchvision==0.4.2
tensorboard==2.6.0
future==0.18.2
tqdm==4.59.0
scikit-image==0.17.2
torchio==0.18.76
To install for Ubuntu,
$ conda install -r requirements.txt
unet-multiclass-pytorch/
- checkpoints/
- data/
- model/
- runs/
- Unet/
- utils/
- video/
- params.json
- README.md
- requirements.txt
- train.py
- video_pre.py
in which:
checkpoints/
store the best models when trainingdata/
contains training data and masksmodel/
contains the trained modelruns/
contains Tensorboard summary filesUnet/
contains U-Net structureutils/
contains model parts and model related functionsvideo/
contains the video that video_pre.py needsparameters.json
define all the parameters of the training and predictionREADME.md
contains tutorialrequirements.txt
contains the necessary packagestrain.py
is the main script for model trainingvideo_pre.py
is the main script for video prediction
Parameter | Value |
---|---|
epoch | 20 |
batch_size | 2 |
learning_rate | 0.1 |
folder | ./data/2classify |
- Terminal
python train.py -e 20 -b 2 -l 0.1 -folder ./data/2classify
- JSON file (recommend)
Mode | Explanation |
---|---|
train | training parameters |
prediction | prediction parameters |
change_label | change colors of labels |
[1] https://github.com/wpddmcmc
[2] https://github.com/France1/unet-multiclass-pytorch
MIT © HYM