Leaffliction is a deep learning project aimed at identifying diseases in leaves through computer vision techniques. The dataset is from PlantVillage. It leverages image processing, augmentation, and Convolutional Neural Networks using Python libraries such as FastAI, OpenCV, and PyTorch.
- Data Preprocessing: Includes image augmentation and transformation for dataset enhancement.
- Model Training: Utilizes FastAI with a VGG19 model for training on augmented datasets.
- Disease Classification: Employs classification techniques to identify various leaf diseases.
- Image Analysis Tools: Features tools for image analysis and visualization.
pip install -r requirements.txt
To train the model, use the following command with the path to your training dataset:
python train.py /path/to/dataset
For disease prediction on new leaf images, use:
python predict.py /path/to/image_or_directory
To augment images in your dataset, execute:
python Augmentation.py /path/to/images
For applying various transformations to your images:
python Transformation.py /path/to/image_or_directory
To visualize the distribution of classes in your dataset:
python data_visualization.py /path/to/dataset