A python application which performs image segmentation of the Weizmann Horse Dataset using Conditional Random Fields (CRF). A Mini Project requirement for CS 284 course at University of the Philippines Diliman AY 2016-2017 under Sir Prospero Naval.
- pystruct
- OpenCV Computer Vision Library
- Scikit Image
- Scikit Learn
- Python 2.7.12
- Clone and download the repository.
- Train the CRF model.
python -W ignore imagesegmentation.py
- Update the horseModelLogger variable with the generated model file. Run the demo application to visualize segmentation.
python -W ignore imagesegmentationDemo.py WeizmannSingleScale/horses/training/images/image-xxx.png
python -W ignore imagesegmentationDemo.py WeizmannSingleScale/horses/test/images/image-xxx.png
- Measure the pixelwise performance of the model.
python -W ignore imagesegmentationPerf.py