Questions tagged [yolov8]

You Only Look Once (YOLO) is a real-time object detection system written in C. Use this tag for questions about YOLO version 8.

You Only Look Once (YOLO) is a real-time object detection system developed for high speed object detection within images.

165 questions
0
votes
0 answers

YOLOv3 vehicles Detection using Polylines to detect the slots area

I would trying to detect vehicles (car, bus, truck, motorcycle, bicycle) using YOLOv3, I used the same task with YOLOv8 and I got a good results what I made is that I draw a polylines for the slots area and choose to detect in this area using YOLOv8…
0
votes
2 answers

Esp32-Cam stream in OpenCV+YOLOv8 is so laggy

I'm using ESP32-Cam WebServer and capture the cam stream in python OpenCV+YOLOv8. It works, but there is significant lag. The delay is approximately 2 seconds after what the camera captures. Here's my code: import cv2 from ultralytics import…
ryanhuang1124
  • 185
  • 1
  • 1
  • 9
0
votes
0 answers

yolov8 export for tensorflow environment with out ultralytics

I am using ultralytics version 8.0.20 5o train yolov8 model. I am done training and testing and I want to export my mode to use it on my server. in my server there is no ultralytics package I only have pytorch and tensorflow installed. when I use…
ilia0017
  • 5
  • 2
0
votes
0 answers

yolo8 bounding box live streams

Have this python code reading alive stream camera and it can detect the forklifts as class. However it won't draw the bounding boxes of the identified object. Any suggestions? I tired many things with no good results. I can't get it to draw boxes…
dwrobins
  • 1
  • 1
0
votes
2 answers

Yolov8 object tracking No module names lap

Actually I was using yolov8 track function and got this error from ultralytics import YOLO model = YOLO('best.pt') results = model.track(source="1.mp4", conf=0.3) pip install lap WARNING: Ignoring invalid distribution -pencv-python…
Unknown
  • 9
  • 3
0
votes
0 answers

Object Detecion and tracking yolov8

Here Everyone I have this code for objection Detecion from ultralytics import YOLO import streamlit as st import cv2 from PIL import Image import tempfile def _display_detected_frames(conf, model, st_frame, image): """ Display the detected…
saas
  • 1
  • 2
0
votes
1 answer

Ultralytics Yolov8 fails to train to detect objects

I am trying to train Yolov8 to detect black dots on human skin. An example of skin and markup is shown below. I've cropped images to 256x256 pixels, selected those crops that have at least one label and got a train, test and validation datasets…
sixtytrees
  • 1,156
  • 1
  • 10
  • 25
0
votes
0 answers

TFLite YOLO8 model validation ValueError: Cannot set tensor: Dimension mismatch. Got 640 but expected 480 for dimension 1 of input 0

I'm trying to validate my YOLOv8 "detector.tflite" by :yolo detect val model=detector.tflite data=data.yaml but I'm getting dimensions error: Traceback (most recent call last): File "/home/matanc/anaconda3/bin/yolo", line 8, in
0
votes
0 answers

why pytorch model gives out of range classes after converting into tflite

I trained yolov8 and then convert into tflite. After converting the tflite model gives me out of range classes. Like I am using only 4 classes but tflite model gives my classes like 21,11,9 etc. Can some one tell me why my model behaves like that…
0
votes
0 answers

The issue of an infinite loop in YOLOv8

from ultralytics import YOLO import RPi.GPIO as GPIO import time # LED pin number (BCM) led = 12 # Set GPIO mode GPIO.setmode(GPIO.BCM) # Set up GPIO for LED GPIO.setup(led, GPIO.OUT) # Create YOLO object model =…
ESP99
  • 1
0
votes
1 answer

Use attributes for labels in yolov8

I am new to this stuff and trying to train a model with yolov8. I have a dataset with 1k images labeled with cvat.ai where I have label named: Bear and that label has attribute male (checkbox false or true). If I export that dataset to yolo1.1…
presentKing
  • 23
  • 1
  • 5
0
votes
0 answers

How to get mAP@ any IoU threshold in Yolov8 model?

I am currently using Yolov8 object detection and I want to get the mAP at any threshold. How did I do it? I normally use model.val() to evaluate the model, but its only give mAP50 and mAP50-95 of all classes and each class. I expect the function…
0
votes
0 answers

Detect objects in yellow zone and red zone with YOLOv8 and OpenCV

I am using YOLOv8 and OpenCV for object detection. I am using a CCTV and I have passed its RTSP URL as the video path for Realtime object detection. What I have done is create two horizontal lines using OpenCV. I want to say that if the object is…
Arnav86
  • 3
  • 3
0
votes
1 answer

How to Calculate IoU for Polygon Segmentation images in YOLOv8 using Python

Please help me to calculate IoU for Polygon Segmentation of images segmented by yolov8 segment module. I have a predicted mask that is segmented by yolov8 and a ground truth mask. The ground truth mask has been obtained after converting json file to…
0
votes
1 answer

Detection of object above line using Yolov8 and OpenCV

So basically I am using YOLOv8 for object detection. I have passed my RTSP URL of CCTV as my video path. So it takes the feed from the CCTV and detects objects in real time. Now what I want to do is create an imaginary line using OpenCV and detect…
Arnav86
  • 3
  • 3