Skip to content

ocimk/autodeeplab

Repository files navigation

Vehicle background removal using DeepLab Image Semantic Segmentation Network

For this demo, we used deeplab package available here. The description of the Semantic Segmentation is detailed here Rethinking Atrous Convolution for Semantic Image Segmentation.

Dependencies

  • Python 3.x
  • Numpy
  • Tensorflow 1.9.0
  • OpenCV 3.4.1
  • deeplab_v3

Downloads

Images

Place all images with jpeg extension inside images folder. If the folder does not exist, create it. You need to modify the folder path in CreateTfRecord.ipynb.

Deeplab

Place deeplab package available here inside ./deeplab_v3. If the folder does not exist, create it.

ResNet Model

Place the checkpoints folder inside ./deeplab_v3/resnet. If the folder does not exist, create it. checkpoints folder should contain files with .graph and .ckpt extensions.

Pre-trained model.

Place the checkpoints folder inside ./deeplab_v3/tboard_logs. If the folder does not exist, create it.

Evaluation

Create TfRecords

Run the jupyter notebook CreateTfRecord.ipynb to convert all of the jpeg images to one file with TfRecords extension that is a standard format for tensorflow.

Test the model on your data

Run the jupyter notebook deeplab_background_removal.ipynb to evaluate the pretrained model on the image dataset.

Results

  • Example of processed images without any transfer learning

Results1

Results2

Results3

Results4

Results5

Results6

Results7

Results8

Results9

Results10

Results11

Results12

Results13

Results14

Results15

Results16

Results17

Results18

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published