Downloads · 30 days
0
Harinvnukala/MyUnattendedLuggage
MyUnattendedLuggage is a machine learning model from Harinvnukala. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project aims to detect unattended luggage in airports and other public places. The project is implemented using YOLOv8 object and MiDaS for depth estimation.
Downloads · 30 days
0
Access
Public
Updated Oct 11, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py6.2 KB · 63%
From the Hugging Face model README
This project aims to detect unattended luggage in airports and other public places. The project is implemented using YOLOv8 object and MiDaS for depth estimation.
pip install -r requirements.txt
Run the main.py file to start the application. Make sure to modify the main.py file to give it a path to a video to process.
You can do this by modifiying the following line:
video_path = "path/to/video.mp4"
This model is a custom YOLO and DeepSORT tracker model for object tracking and unattended luggage detection.
yolov8x_custom_weights.pt: YOLOv8 custom weights.midas_weights.pth: Weights for the MiDaS depth estimation model.You can use this model by loading the weights and running the provided script.
import torch
from ultralytics import YOLO
from deep_sort_realtime.deepsort_tracker import DeepSort
# Load the model
model = YOLO('yolov8x_custom_weights.pt')