Coder Social home page Coder Social logo

chamidullinr / fine-grained-visual-recognition Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 138.2 MB

The repository contains supplementary material to my Master's thesis - Fine-grained Visual Recognition with Side Information

Jupyter Notebook 99.83% Python 0.15% Shell 0.02%
fine-grained-visual-categorization machine-learning convolutional-neural-networks visual-transformers pytorch timm huggingface-transformers

fine-grained-visual-recognition's Introduction

Fine-grained Visual Recognition with Side Information

Overview

This repository contains supplementary material to my Master's thesis - Fine-grained Visual Recognition with Side Information.

The thesis presents a method for fine-grained visual snake and fungi species recognition with side information. The proposed method is based on state-of-the-art deep neural networks for classification: Convolutional Neural Networks and Vision Transformers. The performance improvements are achieved by:

  1. adopting loss functions proposed to address the class imbalance;
  2. adjusting predictions by prior probabilities of side information like location and time of observation;
  3. applying a weakly supervised method to localize snakes and fungi in images and crop the images based on the detected regions to enrich the training data.

Content

Cleaned SnakeCLEF Data

SnakeCLEF Additional Data

Detected Bounding Boxes using Saliency-based localization method

Python Scripts and Jupyter Notebooks

Getting Started

Datasets

The snake and fungi datasets, used in this thesis, are publicly available at:

Package Dependencies

The proposed method wes developed using Python=3.8 with PyTorch=1.7.1 machine learning framework. The pre-trained CNN networks were used from PyTorch Image Models library timm=0.4.12, and the pre-trained Vision Transformers were used from Hugging Face Trasformers library transformers=4.12.3. Additionally, the repository requires packages: numpy, pandas, scikit-learn, matplotlib and seaborn.

To install required packages with PyTorch for CPU run:

pip install -r requirements.txt

For PyTorch with GPU run:

pip install -r requirements_gpu.txt

The requirement files do not contain jupyterlab nor any other IDE. To install jupyterlab run

pip install jupyterlab

Authors

Rail Chamidullin - [email protected] - Github account

fine-grained-visual-recognition's People

Contributors

trellixvulnteam avatar

Stargazers

 avatar  avatar

Watchers

 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.