Table of Contents
We have developed an underwater trash plastic detection project using YOLOv5 and YOLOv8 by training custom datasets. This project includes two models: one based on YOLOv5 for object detection and another using YOLOv8 for instance segmentation.
- YOLOv5
- YOLOv8
We utilized Google Colab with GPU support to run our YOLOv5 model.
- Python
- Clone the repository
!git clone https://github.com/ultralytics/yolov5.git
- Install required dependencies
!pip install -r requirements.txt
- Run the YOLOv5 object detection model
!python detect.py --weights bestpla.pt --source path/to/folder/orImage
- Install ultralytics
!pip install ultralytics
- Install required dependencies
!pip install -r requirements.txt
- Run the YOLOv5 object detection model
!yolo predict model='runs/segment/yolov8n-seg/weights/best.pt' source='detection source file' name='folder_name'
This project serves to detect underwater garbage, including items like plastic bags. It can contribute to ocean cleanup efforts and environmental monitoring. To run the project, consider Google Colab.
The images above depict the output of our underwater trash plastic detection models. The model successfully identifies and outlines plastic waste items, such as plastic bags, cups, metal_can and cups, contributing to efforts to clean up our oceans.
Distributed under the MIT License. See LICENSE
for more information.
Thanks to Ultralytics for their awesome framework!