Skip to content

Fungi image classification using transfer learning with ResNet and ViT models

Notifications You must be signed in to change notification settings

balkarjun/FungiCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FungiCV: Microscopic Fungi Image Classification

Collage of Microscropic Fungi Images

In this notebook I use the FastAI library to classify microscopic fungi images from the DeFungi dataset. This was done using transfer learning on ResNet and Vision Transformer (ViT) models. Achieved an overall accuracy of ~93% compared to ~85% from the original paper.
Kaggle Notebook

About the Dataset

DeFungi is a dataset containing 9000+ microscopic fungi images. The images are from superficial fungal infections (estimated to affect around 1 billion people worldwide) caused by yeasts, moulds or dermatophyte fungi.

The images are labelled into five classes (representing five fungi types), and cropped to the region of interest.

Source: Dataset, Paper

Usage

To run the fungicv.ipynb notebook, you will need the fastai library.

pip install fastai

Then, download the dataset and place it in a folder named data. Alternatively, you can change the image path to your liking by modifying it in the notebook.

The collage.py file contains the code I wrote to create the image you see at the start of this README. You will need the pillow library to run this file, which is installed automatically when you install fastai.

About

Fungi image classification using transfer learning with ResNet and ViT models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published