- Tensorflow implementation of Fully Convolutional Networks for Semantic Segmentation (FCNs).
- TensorFlow implementation of U-Net
The implementation is largely based on the reference code provided by the authors of the paper link.
- pydensecrf installation in windows with conda:
conda install -c conda-forge pydensecrf
. For linux, use pip:pip install pydensecrf
. - Check dataset directory in
read_dataset
function of corresponding data reading script, for example, for LIP dataset, check paths inread_LIP_data.py
and modify as necessary.
- To train model simply execute
python FCN.py
orpython UNet.py
- You can add training flag as well:
python FCN.py --mode=train
debug
flag can be set during training to add information regarding activations, gradients, variables etc.
- To test and evaluate results use flag
--mode=test
- After testing and evaluation is complete, final results will be printed in the console, and the corresponding files will be saved in the "logs" directory.
- To visualize results for a random batch of images use flag
--mode=visualize