Skip to content

liorvov/semantic_seg_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Semantic segmentation using deep learning

The project dealt with the implementation of semantic segmentation of images using deep learning . The goal of the project was to implement a neural network that performs the segmentation, to write Python code that performs the task and to improve performance by changing hyperparameters or other things (such as adding a spatial LSTM layer as we did).

image

After trials and improvements, the networks chosen for examination and optimization were Resnet50, EfficientNetB4 and EfficientNetV2. After passing through the network, the output (before classification) was scanned with zig-zag scan, and entered a spatial LSTM layer, which utilizes spatial relationships between neighboring pixels for the purpose of improving accuracy.

image

We received that the addition of the LSTM layer in each network created a significant improvement in the test accuracy percentage. We received a 1.5% improvement of the accuracy percentage on the test set in each network. In addition, the most successful network was ResNet50 neural network, with an accuracy of 93.04% on the test set after the LSTM layer. Adding the extended LSTM layer turned out to be successful, and can be used to improve the accuracy in segmentation tasks with purpose of improving the overall accuracy on all labels.

image

What inside?

We have 2 folders:

  • python: all python files, including main.py.
  • plots: all plots, for 3 examined networks, including accuracy & loss curves, confusion matrixes segmented images and aditional analysys.

How to run?

  1. In the beginning of main.py, chnage the necessary variables according to desired settings. Including: Choise of NN - ResNet50, EfficientNetv2, EfficientNetB4 Cohise if train the model, if test it, or both.
  2. Run the main.py file code using python.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages