Giter Site home page Giter Site logo

deceptrax123 / spurious-correlation-mitigation-in-yolov5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

Autoencoder based approach for the mitigation of spurious correlations on YOLOv5 detections

Home Page: https://arxiv.org/abs/2406.18901

global-wheat-detection research transfer-learning autoencoder inpainting spurious-correlations weighted-box-fusion

spurious-correlation-mitigation-in-yolov5's Introduction

Mitigation of Spurious Correlations

Official source code for the paper titled Autoencoder based approach for the mitigation of spurious correlations. The following steps indicate the methodology briefly.

Abstract

Deep neural networks (DNNs) have exhibited remarkable performance across various tasks, yet their susceptibility to spurious correlations poses a significant challenge for out-of-distribution (OOD) generalization. Spurious correlations refer to erroneous associations in data that do not reflect true underlying relationships but are instead artifacts of dataset characteristics or biases. These correlations can lead DNNs to learn patterns that are not robust across diverse datasets or real-world scenarios, hampering their ability to generalize beyond training data. In this paper, we propose an autoencoder-based approach to analyze the nature of spurious correlations that exist in the Global Wheat Head Detection (GWHD) 2021 dataset. We then use inpainting followed by Weighted Boxes Fusion (WBF) to achieve a 2% increase in the Average Domain Accuracy (ADA) over the YOLOv5 baseline and consistently show that our approach has the ability to suppress some of the spurious correlations in the GWHD 2021 dataset. The key advantage of our approach is that it is more suitable in scenarios where there is limited scope to adapt or fine-tune the trained model in unseen test environments.

Brief Methodology

  1. Training a YOLOv5 Model from scratch on the Global Wheat Head Dataset,2021.
  2. Identification of spurious correlations or Out-Of-Distribution(OOD) samples (i) Test Set Images clasifying sunlight as Wheat Heads due to similar spectral characteristics (ii) Missclassifications on blurred images
  3. Mitigating Techniques (i). Image Inpainting use Navier Stokes (ii). Image Enhancement using Autoencoder
  4. Weighted Bounding Box Fusion on the predictions of the obtained datasets after Instance Level Mitigation

Folder Description

Name Description
yolov5 Scripts to train the Ultralytics YOLOv5 from scratch
Box-fusion Scripts for Weighted Bounding Box Fusion of different combinations
image-inpainting Scripts for Image Inpainting Algorithms
autoencoder-mitigation Models and Scripts for Autoencoder implemented in PyTorch

spurious-correlation-mitigation-in-yolov5's People

Contributors

deceptrax123 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.