Skip to content

Use pre-trained PSPNet Segmentation Model to generate a mask image consisting of sky pixels marked in white color in the image and other pixels marked in black color

Notifications You must be signed in to change notification settings

Puppet97/SkyPixel_NN

 
 

Repository files navigation

Finding sky pixels in an image using pre-trained PSPNet segmentation model

The model takes input as an image containing some sky area and marks the sky area in white and other areas in black. The training data consists of hundreds of images taken from a fixed perspective at a location and a mask image denoting the sky pixels in white and other areas of the image in black. The model gives an output image which marks the sky area in white and other areas in black. The data is downloaded and stored as:-

├── 1093
│   ├── 1093_mask.png
│   ├── 20140418_215418.jpg
│   ├── 20140419_002403.jpg
│   └── .....
├── 10066
│   ├── 10066_mask.png
│   ├── 20130101_084634.jpg
│   ├── 20130101_091628.jpg
│   └── .....
├── ....
├── SkyPixel.ipynb
├── SkyPixelPredict.ipynb
└── skyPixelModel.h5


The images were trained after scaling down the resolution to 240 * 240 pixels. The predicted mask image will also be in the same resolution.
A sample test on the trained model:-
original image

Generated mask

About

Use pre-trained PSPNet Segmentation Model to generate a mask image consisting of sky pixels marked in white color in the image and other pixels marked in black color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 81.5%
  • Jupyter Notebook 18.5%