Giter Site home page Giter Site logo

farinheight / real-time-anomaly-segmentation-for-road-scenes Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 76.51 MB

Project for the Advanced Machine Learning course 23/24 - Politecnico di Torino

Jupyter Notebook 10.73% Python 89.27%
anomaly-segmentation bisenet enet erfnet real-time-semantic-segmentation semantic-segmentation real-time-anomaly-segmentation

real-time-anomaly-segmentation-for-road-scenes's Introduction

Real-Time Anomaly Segmentation for Road Scenes

This repository contains the code of the Real-Time Anomaly Segmentation for Road Scenes project of the Advanced Machine Learning course 23/24 - Politecnico di Torino

This repository was built on the following repository base: erfnet_pytorch.
A brief overview of the project is available at s326619_s330509_project4.pdf.

Sample Results

Example of Anomaly scores calculated by an ERFNet model using the MaxLogit inference method.

Original Images

Tractor Phone Box

Ground Truth Anomaly

Tractor Ground Truth Anomaly Phone Box Truth Anomaly

Anomaly Scores

Tractor Anomaly Scores Phone Box Anomaly Scores

Packages

For instructions, please refer to the README in each folder:

  • train contains tools for training the networks for semantic segmentation.
  • eval contains tools for evaluating/visualizing the networks' output and performing anomaly segmentation.
  • imagenet contains scripts and model for pretraining ERFNet's encoder in Imagenet.
  • trained_models contains some trained models used in the papers (almost all the models are available in the Releases section).

Datasets

  • The Cityscapes dataset: Download the "leftImg8bit" for the RGB images and the "gtFine" for the labels. Please note that for training you should use the "_labelTrainIds" and not the "_labelIds", you can download the cityscapes scripts and use the conversor to generate trainIds from labelIds
  • For testing the anomaly segmentation models: All testing images are provided here.

Networks

The repo provides the following pre-trained networks that can be used to perform anomaly segmentation:

  • Erfnet trained on 19 classes of the Cityscapes dataset using a Cross-Entropy loss, Logit Norm + Cross Entropy, Logit Norm + Focal Loss, IsoMax+ + Cross Entropy and IsoMax+ + Focal Loss
  • BiSeNetV1 trained on 20 classes (19 + void class) of the Cityscapes dataset
  • Enet trained on 20 classes (19 + void class) of the Cityscapes dataset

Notebook

The AML_Project.ipynb can be opened on Colab to run all the evaluation commands.

Authors

License

Please refer to the following repo and license for the use and modification of the material contained in the linked repository and modified in this repo.

real-time-anomaly-segmentation-for-road-scenes's People

Contributors

farinheight avatar liu-yonghu avatar shyam671 avatar vitabile avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.