FloraNet-CNN is a project aimed at accurately classifying plant species using Convolutional Neural Networks (CNNs). This application is particularly useful for agricultural and environmental purposes, helping to identify black nightshade, cotton, tomato, and velvetleaf plants.
-
Clone the repository:
git clone https://github.com/your-username/plant-species-detection.git cd plant-species-detection
-
Set up the environment:
- If using Colab, mount Google Drive:
from google.colab import drive drive.mount('/content/drive')
- Install required libraries:
pip install tensorflow matplotlib
- If using Colab, mount Google Drive:
The dataset used in this project is stored in Google Drive and consists of images categorized into the following folders:
- black_nightsade
- cotton
- tomato
- velvet_leaf
The dataset path is: /content/drive/MyDrive/early-crop-weed-master/early-crop-weed-master
-
Data preprocessing: Load and preprocess the dataset.
-
Model architecture: Define the CNN model using TensorFlow and Keras.
-
Training: Compile and train the model on the dataset.
-
Performance metrics: Evaluate the model's accuracy and loss on the training and validation sets.
-
Visualization: Plot training history (accuracy/loss curves).
- Inference: Load test images and make predictions using the trained model.
- Achieved accuracy of
XX%
on the training set andYY%
on the validation set afterZZ
epochs. - Displayed predictions for test images with confidence scores.
This project is licensed under the MIT License.