This GitHub repository contains a project that focuses on detecting plastic in rivers using machine learning techniques. The project utilizes the YOLOv8 model for transfer learning to try to achieve accurate and efficient plastic detection.
- Utilizes YOLOv8 model for plastic detection
- Training code for fine-tuning the YOLOv8 model with custom plastic dataset
- Pre-trained weights for YOLOv8m model with plastic detection capability
- Evaluation code to measure the performance of the model on validation datset
- Inference code for detecting plastic in river images or videos( webcam or from local video)
- Dataset for training and testing the mode
To run the model:
- Create a virtual environment using:
python -m venv venv
- Activate the virtual environment:
./venv/scripts/activate
- Install the required packages from requirements.txt:
pip install -r requirements.txt
Training was done in two seperate instances, each of 300 epochs. The details of the second instance is shown below.
The project uses the YOLOv8m model uses the following resources:
- YOLO
- Initial Dataset provided by REVA University
- Annotaions done using Make Sense
- Model prepared using Google Colab