Powered by OpenAIRE graph
Found an issue? Give us feedback
addClaim

rezaul-h/CottonVerse: CottonVerse

Authors: RezaulHaque; S M Masfequier Rahman Swapno;

rezaul-h/CottonVerse: CottonVerse

Abstract

Version 1.0.0 โ€” Initial release CottonVerse ๐ŸŒฟ CottonVerse is a multi-model Flask-based web application for image classification tasks in the agricultural and textile domains. It enables interpretable prediction using Grad-CAM and supports four independent models: ๐Ÿƒ Cotton Leaf Disease (CottonLeafNet) ๐ŸŒฟ Cotton Leaf Disease (SAR-CLD-2024) ๐Ÿงต Fabric Texture Percentage (CottonFabricImageBD) ๐Ÿฉธ Fabric Stain Type (FabricSpotDefect) ๐Ÿš€ Features ๐Ÿ“ Drag-and-drop file upload โœ… Prediction probabilities with visual bar chart ๐Ÿ”ฅ Grad-CAM visualization for interpretability ๐Ÿ“ธ Upload preview and CAM download ๐Ÿ–ผ๏ธ Multiple datasets and models supported ๐Ÿง  Powered by LEViT model (via PyTorch + timm) ๐ŸŽจ Responsive, modern, and interactive UI ๐Ÿ“‚ Project Structure cottonverse/ โ”œโ”€โ”€ app.py # Flask app โ”œโ”€โ”€ utils.py # Preprocessing & Grad-CAM logic โ”œโ”€โ”€ models/ # Trained .pth models โ”œโ”€โ”€ static/ โ”‚ โ”œโ”€โ”€ uploads/ # Uploaded images โ”‚ โ””โ”€โ”€ cams/ # Grad-CAM outputs โ”œโ”€โ”€ templates/ # HTML templates โ””โ”€โ”€ requirements.txt # Dependencies โ””โ”€โ”€ README.md โš™๏ธ Installation Clone the repository: git clone https://github.com/rezaul-h/CottonVerse.git cd cottonverse Create and activate a virtual environment: python -m venv venv source venv/bin/activate # or venv\Scripts\activate Install dependencies: pip install -r requirements.txt Run the application: python app.py Open http://127.0.0.1:5000 in your browser ๐ŸŒ ๐Ÿ“Š Models & Datasets | Model Name | Dataset | Classes | |------------|------------------------|---------| | LEViT | CottonLeafNet | 8 | | LEViT | SAR-CLD-2024 | 9 | | LEViT | CottonFabricImageB | 13 | | LEViT | FabricSpotDefect | 12 | All models are trained using the LEViT architecture with PyTorch, saved in .pth format. ๐Ÿงช How to Use Click on a model on the landing page. Upload an image for classification. View prediction probabilities and Grad-CAM. Download the CAM if desired. ๐Ÿ“ฆ Dependencies Flask PyTorch timm torchvision OpenCV matplotlib pytorch-grad-cam ๐Ÿ™ Acknowledgements LEViT model: Facebook AI GradCAM: Jacob Gildenblat (pytorch-grad-cam)

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average