Skip to content

Bvn004/CottonNET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌿 CottonNET

CottonNET is a Convolutional Neural Network (CNN)-based deep learning project built with PyTorch to classify cotton leaf images into four categories:

  • Diseased Cotton Leaf
  • Healthy Cotton Leaf
  • Diseased Cotton Plant
  • Healthy Cotton Plant

The project includes image preprocessing, data augmentation, and both a custom CNN model and a fine-tuned EfficientNet model to achieve high classification accuracy.


🌐 Try It Online

πŸ‘‰ CottonNET – Live Demo on Hugging Face Spaces

Upload a photo of a cotton leaf or plant to instantly get its classification!


🧠 Models Used

πŸ”¨ Custom CNN (from scratch)

  • Built with PyTorch
  • Achieved 82% accuracy

⚑ EfficientNet (Pretrained)

  • Fine-tuned on the same dataset
  • Achieved 96% accuracy

πŸ”„ Data Preprocessing & Augmentation

  • Performed using torchvision.transforms
  • Includes:
    • Resizing and cropping
    • Random horizontal flips
    • Normalization
    • Random rotation

πŸ“Š Model Evaluation

  • Visual and tabular evaluation of training and test performance
  • Metrics used:
    • Accuracy
    • Loss plots

πŸš€ Getting Started

Clone the repository:

git clone https://github.com/Bvn004/CottonNET.git
cd CottonNET

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors