Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Borda/kaggle_image-classify
Various Kaggle image classification challenges solutions
https://github.com/Borda/kaggle_image-classify
colab dataset image-classification kaggle-competition lightning-flash notebooks plant-pathology pytorch-lightning
Last synced: 3 months ago
JSON representation
Various Kaggle image classification challenges solutions
- Host: GitHub
- URL: https://github.com/Borda/kaggle_image-classify
- Owner: Borda
- License: mit
- Created: 2021-04-02T18:22:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T17:38:48.000Z (8 months ago)
- Last Synced: 2024-05-14T14:31:09.176Z (6 months ago)
- Topics: colab, dataset, image-classification, kaggle-competition, lightning-flash, notebooks, plant-pathology, pytorch-lightning
- Language: Jupyter Notebook
- Homepage: https://borda.github.io/kaggle_plant-pathology
- Size: 11.1 MB
- Stars: 40
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Kaggle: Image classification challenges
![CI complete testing](https://github.com/Borda/kaggle_image-classify/workflows/CI%20complete%20testing/badge.svg?branch=main&event=push)
[![Code formatting](https://github.com/Borda/kaggle_image-classify/actions/workflows/code-format.yml/badge.svg?branch=main&event=push)](https://github.com/Borda/kaggle_image-classify/actions/workflows/code-format.yml)
[![codecov](https://codecov.io/gh/Borda/kaggle_image-classify/branch/main/graph/badge.svg?token=5t1Aj5BIyS)](https://codecov.io/gh/Borda/kaggle_image-classify)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Borda/kaggle_image-classify/main.svg)](https://results.pre-commit.ci/latest/github/Borda/kaggle_image-classify/main)## Experimentation
### install this tooling
A simple way how to use this basic functions:
```bash
! pip install https://github.com/Borda/kaggle_image-classify/archive/main.zip
```## Kaggle: [Herbarium 2022](https://www.kaggle.com/competitions/herbarium-2022-fgvc9)
The Herbarium 2022: Flora of North America dataset comprises 1.05 M images of 15,501 vascular plants, which constitute more than 90% of the taxa documented in North America. The provided dataset is constrained to include only vascular land plants (lycophytes, ferns, gymnosperms, and flowering plants) and it has a long-tail distribution. The number of images per taxon is as few as seven and as many as 100 images. Although more images are available.
![Sample images](./assets/herbarium_sample-imgs.jpg)
### run notebooks in Kaggle
- [🌿Herbarium: EDA 🔎 & baseline Flash⚡EfficientNet](https://www.kaggle.com/code/jirkaborovec/herbarium-eda-baseline-flash-efficientnet)
- [🌿Herbarium: Lightning⚡Flash (inference)](https://www.kaggle.com/code/jirkaborovec/herbarium-lightning-flash-inference)### run notebooks in Colab
- [🌿Herbarium with Lit⚡Flash & EfficientNet](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/Herbarium-with-Flash-EfficientNet.ipynb)
### some results
Training progress with EffNet-b3 with training for 10 epochs:
![Training process](./assets/herbarium_training-metrics.png)
## Kaggle: [Plant Pathology 2021 - FGVC8](https://www.kaggle.com/c/plant-pathology-2021-fgvc8)
Foliar (leaf) diseases pose a major threat to the overall productivity and quality of apple orchards.
The current process for disease diagnosis in apple orchards is based on manual scouting by humans, which is time-consuming and expensive.The main objective of the competition is to develop machine learning-based models to accurately classify a given leaf image from the test dataset to a particular disease category, and to identify an individual disease from multiple disease symptoms on a single leaf image.
![Sample images](./assets/plants_sample-images.jpg)
### run notebooks in Kaggle
- [Plant Pathology with Flash](https://www.kaggle.com/jirkaborovec/plant-pathology-with-pytorch-lightning-flash)
- [Plant Pathology with Lightning âš¡](https://www.kaggle.com/jirkaborovec/plant-pathology-with-lightning)
- [Plant Pathology with Lightning \[predictions\]](https://www.kaggle.com/jirkaborovec/plant-pathology-with-lightning-predictions)### run notebooks in Colab
- [Plant pathology with Lightning](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/Plant-Pathology-with-Lightning.ipynb)
- [Plant pathology with Lightning - StandAlone](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/Plant-Pathology-with-Lightning_standalone.ipynb) (without this package)
- [Plant pathology with Flash](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/Plant-Pathology-with-Flash.ipynb)I would recommend uploading the dataset to you personal gDrive and then in notebooks connect the gDrive which saves you lost of time with re-uploading dataset when ever your Colab is reset... :\]
### some results
Training progress with ResNet50 with training for 10 epochs > over 96% validation accuracy:
![Training process](./assets/plants_training-metrics.png)
### More reading
- [Practical Lighting Tips to Rank on Kaggle Image Challenges](https://devblog.pytorchlightning.ai/practical-tips-to-rank-on-kaggle-image-challenges-with-lightning-242e2e533429)
## Kaggle: [iMet Collection 2021 x AIC - FGVC8](https://www.kaggle.com/c/imet-2021-fgvc8)
The online cataloguing information is generated by subject matter experts and includes a wide range of data. These include, but are not limited to: multiple object classifications, artist, title, period, date, medium, culture, size, provenance, geographic location, and other related museum objects within The Met’s collection.
Adding fine-grained attributes to aid in the visual understanding of the museum objects will enable the ability to search for visually related objects.![Sample images](./assets/imet_sample-imgs.png)
### run notebooks in Kaggle
- [iMet Collection with Lightning âš¡](https://www.kaggle.com/jirkaborovec/imet-with-lightning)
### run notebooks in Colab
- [iMet Collection with Lightning with ResNet50](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/iMet-with-Lightning.ipynb)
- [iMet Collection with Lightning and VisionTransformers from TIMM](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/iMet-with-Lightning-and-ViT.ipynb)I would recommend uploading the dataset to you personal gDrive and then in notebooks connect the gDrive which saves you lost of time with re-uploading dataset when ever your Colab is reset... :\]
### some results
Training progress with ResNet50 with training for 35 epochs and subset labels with ore then 100 samples:
![training on 100 samples per class](./assets/imet_training-cls-spl-100.png)
## Kaggle: [Cassava Leaf Disease Classification](https://www.kaggle.com/c/cassava-leaf-disease-classification/overview)
The task is to classify each cassava image into five categories indicating - plant with a certain kind of disease or healthy leaf.
Organizers introduced a dataset of 21,367 labeled images collected during a regular survey in Uganda. Most images were crowd-sourced from farmers taking photos of their gardens, and annotated by experts at the National Crops Resources Research Institute (NaCRRI) in collaboration with the AI lab at Makerere University, Kampala.
![Sample images](./assets/cassava_images.jpg)
### run notebooks in Colab
- [Cassava with Lightning](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/Cassava_with_Lightning.ipynb)
- [Cassava with Flash](https://colab.research.google.com/github/Borda/kaggle_image-classify/blob/main/notebooks/Cassava_with_Flash.ipynb)I would recommend uploading the dataset to you personal gDrive and then in notebooks connect the gDrive which saves you lost of time with re-uploading dataset when ever your Colab is reset... :\]
### some results
Training progress with ResNet50 with training for 10 epochs:
![Training process](./assets/cassava_metrics.png)