This repository shows how to perform semantic segmentation with pytorch and tensorflow. It uses the dataset of the Kaggle Data Science Bowl 2018.
-
Install normal packages:
pip install --user -r requirements.txt
-
Install Tensorflow or Pytorch
-
Download and prepare data:
python data.py
-
Start jupyter notebook and use
segment_tf
orsegment_pytorch
In order to use the notebooks with different data create the folders images
and masks
and put the images and labels inside with the following naming convention:
- image:
images/{idx}.png
- mask:
masks/{idx}_mask.png