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
3 answers

Obtaining detected object names using YOLOv8

We are trying to get the detected object names using Python and YOLOv8 with the following code. import cv2 from ultralytics import YOLO def main(): cap = cv2.VideoCapture(0) cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1280) …
Ganessa
  • 782
  • 2
  • 7
  • 24
0
votes
0 answers

How do I calculate the distance between the boudning boxes given in xyxy when doing object detection?

I'm currently trying to calculate the distance between two bounding boxes. XYXY values are coming from the yolov8 detection. Input: image = 1080 * 1940 w = 1080 h = 1940 rectangle 1: [ 461.94, 523.78, 1009.9, 928.79] rectangle 2: [1494.5, …
Yun
  • 23
  • 6
0
votes
1 answer

YOLOV8 hardware requirements and also laptop shutting down

I have a laptop with following configurations Processor : AMD Ryzen 7 4800H with Radeon Graphics 2.90 GHz Installed RAM : 16.0 GB (15.4 GB usable) Windows Edition : Windows 11 Home Single Language Version : 22H2 OS : 22621.1555 …
0
votes
1 answer

How can I deploy Ultralytics YOLOv8 on Microsoft Azure?

There are very simple quickstart guides on how to deploy Ultralytics YOLOv8 on GCP and AWS: Google Cloud Deep Learning VM: https://github.com/ultralytics/yolov5/wiki/GCP-Quickstart Amazon Deep Learning AMI:…
0
votes
1 answer

error trying to train a model using ultralytics yolo 8 model

I am trying to train Yolo 8 using a sample data set as explained here: https://learnopencv.com/train-yolov8-on-custom-dataset/#The-Pothole-Detection-Dataset-to-Train-YOLOv8 The yaml file that used is as follow: path:…
mans
  • 17,104
  • 45
  • 172
  • 321
0
votes
0 answers

Labeling intertwined images with polygons

I am developing an instance segmentation model with the Yolov8 model. While labeling the photos, I often hesitate about how the model will be affected. Can you help me with this by looking at the examples below Example: For example, in this photo,…
0
votes
1 answer

Annotating different but similar classes as same when building an pre-trained Object Detection model

Foreknowledge: I'm building a project with yolov8. I need to detect sheep and goats in images. Pre-trained models don't have goat class. Question: Goats and sheep look very similar. In most cases, even I have difficulty distinguishing them. Would…
Ali Eren
  • 35
  • 1
  • 7
0
votes
0 answers

Print or log operations not working in loop with generator (stream=True in Yolov8)

I'm running a yolov8 model(with TensorRT) on multiple streams I'm trying to get people count on realtime so I'm running the following script from ultralytics import YOLO import cv2 model = YOLO("yolov8x_6batch.engine") results =…
0
votes
0 answers

Yolo v8 error >>> %Run test_loyo8.py Process ended with exit code -4

I can't solve this problem please help me Process ended with exit code -4. I can't solve this problem please help me
0
votes
1 answer

How to Convert COCO Json to YOLOv8 segmentation format

def convert_coco_to_yolov8(coco_file): with open(coco_file) as f: coco = json.load(f) images = coco['images'] annotations = coco['annotations'] categories = {cat['id']: cat['name'] for cat in coco['categories']} os.makedirs('labels',…
0
votes
2 answers

How do I work with the result of model.predict in yolov8

I have my webcam set up to be the input for my model.predict() function and want to trigger some code if the function detects a certain object. The model.predict() function does not seem to ever terminate when using a webcam however, making this not…
Lookdatway
  • 17
  • 1
  • 5
0
votes
0 answers

I switched from yolov5 to yolov8 and cant find specific documentation on printing coordinates

Yolo v5 let me use results.xyxy[0].tolist() and let me use the results [x1, x2, y1, y2, confidence, object]. However, switching to yolov8 no longer lets me do this and gives me this error: *AttributeError: 'Results' object has no attribute 'xyxy'*.…
0
votes
2 answers

Unable to use my gpu for training data on yolov8 :says to cuda run out of memory

Device: Rtx 3050ti laptop gpu, i7 12 gen cpu with 16 gb ram usig this to run the code yolo task=detect mode=train epochs=10 data=data_custom.yaml model=yolov8l.pt device=0 and getting the same error everytime torch.cuda.OutOfMemoryError: CUDA out…
-1
votes
0 answers

I am trying to implement my YOLOv8 model into my own website

I am trying to implement my YOLOv8 model into my own website using my own weights. I have gotten the weights I am planning to use. I am trying to create a live prediction, where the website displays a live video (for example: a phone camera) and…
-1
votes
0 answers

Can you please help me to crop the detected text from yolov8m.onnx model on drug packaging images?

I have trained a yolov8m model that detect the name of the drugs from their packaging images, and I exported the model into yolov8m.onnx in my pc. Now, I want to load this model and use the model to detect the name of drug on unseen images, after…
1 2 3
10
11