U-Net for image segmentation, PyTorch implementation.
Based on the shoe dataset [Google Drive] provided by our teacher.
python train.py
python train.py --inference True --checkpoint [*.pt]
The checkpoint files can be found in the state_dict
folder.
python train.py -h
Ronneberger, O., Fischer, P., and Brox, T. 2015. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI). [pdf]
The model was trained from scratch on Tesla V100 32GB*4. Training the model takes 3.6GB of memory and predicting images takes 1.3GB. If you don’t have enough GPU memory, consider using bilinear up-sampling rather than transposed convolution in the model.
MIT