Downloads · 30 days
10
6% of all-time downloads
Abdullah231/yolov8s-seg-indoor-navigation
yolov8s-seg-indoor-navigation is a object detection model from Abdullah231. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as agpl-3.0.
This repository provides an Ultralytics YOLOv8s-Seg instance segmentation model trained to detect and segment humans and chairs in indoor environments. The model is intended as a perception component for an AI-powered…
Downloads · 30 days
10
6% of all-time downloads
All-time downloads
175
Public
Repo size
54.9 MB
Likes
0
Public
Click a slice to open those files.
.pt54.9 MB · 100%
From the Hugging Face model README
This repository provides an Ultralytics YOLOv8s-Seg instance segmentation model trained to detect and segment humans and chairs in indoor environments. The model is intended as a perception component for an AI-powered smart indoor navigation system for blind and visually impaired users, where accurate understanding of object boundaries can support safer navigation and more reliable accessibility cues.
The repository includes a reproducible inference pipeline for images and videos, and an optional Hugging Face Spaces-ready Gradio demo. For videos, an online tracker is used to maintain chair identities across frames and to compute a real-time “best available chair” recommendation based on confidence, distance proxy, and temporal stability.
Indoor navigation in cluttered spaces benefits from more than bounding boxes: navigation and accessibility cues often require object extent and free-space reasoning. Chairs are a common indoor affordance (sitting and resting), but selecting a usable chair requires consistent identification over time and a notion of proximity and stability. This model targets these requirements by combining segmentation with tracking and a chair scoring mechanism.
YOLOv8s-Seg performs object detection and segmentation in a single forward pass. The “s” variant provides a favorable trade-off between real-time throughput and accuracy, which is relevant for assistive indoor applications.
Segmentation is preferred over pure detection for indoor assistive navigation because:
This model is not a complete navigation system. It does not provide global localization, mapping, path planning, depth sensing, or haptic/audio feedback.
python -m pip install --upgrade pip
pip install -r requirements.txt
from inference import run_image
run_image(
model_path="yolov8s-seg.pt",
source="path/to/image.jpg",
save_dir="runs/image_demo",
conf=0.25,
)
from inference import run_video
run_video(
model_path="yolov8s-seg.pt",
source="path/to/video.mp4",
save_path="runs/video_demo.mp4",
conf=0.25,
track=True,
)
python inference.py --model yolov8s-seg.pt --source path/to/image.jpg --save-dir runs/img
python inference.py --model yolov8s-seg.pt --source path/to/video.mp4 --save-path runs/out.mp4 --track
For video input, the repository uses a lightweight online tracker to maintain consistent chair IDs across frames. Each chair track receives a score composed of:
The system outputs the current best available chair (highest score) per frame and overlays it on the visualization.
LICENSE)If you use this repository in academic work, cite Ultralytics YOLOv8 and include your thesis/project citation as appropriate.
@software{ultralytics_yolov8,
title = {Ultralytics YOLOv8},
author = {Jocher, Glenn and Ultralytics},
year = {2023},
url = {https://github.com/ultralytics/ultralytics}
}