The google colab file link for yolov8 segmentation and tracking is provided below, you can check the implementation in Google Colab, and its a single click implementation ,you just need to select the Run Time as GPU, and click on Run All.
- Clone the repository
git clone https://github.com/MuhammadMoinFaisal/YOLOv8_Segmentation_DeepSORT_Object_Tracking.git
- Goto the cloned folder.
cd YOLOv8_Segmentation_DeepSORT_Object_Tracking
- Install the Dependencies
pip install -e '.[dev]'
- Setting the Directory.
cd ultralytics/yolo/v8/segment
- Downloading the DeepSORT Files From The Google Drive
https://drive.google.com/drive/folders/1kna8eWGrSfzaR6DtNJ8_GchGgPMv3VC8?usp=sharing
-
After downloading the DeepSORT Zip file from the drive, unzip it go into the subfolders and place the deep_sort_pytorch folder into the ultralytics/yolo/v8/segment folder
-
Downloading a Sample Videos from the Google Drive
-
Demo Video 1
gdown "https://drive.google.com/uc?id=19P9Cf9UiJ9gU9KHnAfud6hrFOgobETTX"
- Demo Video 2
gdown "https://drive.google.com/uc?id=1rjBn8Fl1E_9d0EMVtL24S9aNQOJAveR5&confirm=t"
- Demo Video 3
gdown "https://drive.google.com/uc?id=1aL0XIoOQlHf9FBvUx3FMfmPbmRu0-rF-&confirm=t"
-
Run the code with mentioned command below.
-
For yolov8 segmentation + Tracking
python predict.py model=yolov8x-seg.pt source="test1.mp4"
- Video Tutorial Link
YouTube Link