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

TypeError: tuple indices must be integers or slices, not tuple, in deepsort

I have been getting this error from the line tracker.update(dets).Exact error is File…
Toufiq
  • 127
  • 9
0
votes
0 answers

How to manually plot confusion matrix with YOLOv8 with Python

I am currently working with Ultralytics - YOLOv8 model. I want to calculate the confusion matrix manually, not using val.py module. Hence, I wrote the code: import os import torch from PIL import Image import matplotlib.pyplot as plt from…
0
votes
0 answers

AttributeError: 'DetectionTrainer' object has no attribute 'epoch' when training model and optimizing weights

Issue Description I encountered an error while trying to train a model using Ultralytics' YOLO implementation. After completing one epoch and optimizing the weights, the execution failed with the following error message: `1 epochs completed in 0.000…
0
votes
1 answer

Could not run 'torchvision::nms' with arguments from the 'CUDA' backend

Code: from ultralytics import YOLO # Load a model model = YOLO("yolov8m.yaml") # build a new model from scratch # Use the model results = model.predict(source="0", show=True, stream=True, classes=0, device='0') model.train(data="conf.yaml",…
0
votes
0 answers

Load pretrained weights but using a modified yaml file for model structure

May I know if it is possible for me to take the original yolov8s.pt weights and train them on a modified yolov8s.yaml file, for example, with an added attention module like CBAM on the structure? Can the weights be transferred instead of starting…
0
votes
0 answers

Load pretrained weights but using a modified model structure yaml file

May I know if it is possible for me to take the original yolov8s.pt weights and train them on a modified yolov8s.yaml file, for example, with an added attention module like CBAM on the structure? Can the weights be transferred instead of starting…
0
votes
0 answers

How to make YOLOv8 output to the input for another program?

I'm new in this field. I'm using YOLOv8 to detect custom objects in realtime. It was implemented successfully. Now, I next want to use the YOLOv8 output for the other inputs. Actually I want to make a program that will talk about the sign language…
0
votes
0 answers

YOLOv8 builtins.AssertionError

I edited the code to a minimal example as per instructions of the first commentator Christoph Rackwitz. I'm learning OpenCV, YOLO and DeepSORT with a code from a tutorial (https://github.com/computervisioneng/object-tracking-yolov8-deep-sort) but…
jvkloc
  • 623
  • 1
  • 5
  • 13
0
votes
0 answers

Error in DeepSORT with Yolov8 in the line " class_name = get_class(track_id)" : Error AttributeError: 'Track' object has no attribute 'class_id'

I need to relate the track_id with the class_name to count the classes but I can't do the relationship as the original code shows, could someone help me? Below is the code snippet with the error. **for track in tracker.tracks: `` if not…
0
votes
0 answers

Yolov8: Can I get alternative box predictions?

I am trying to detect playing cards with yolov8, there are 52 classes, and at times, specially when the cards are in motion, I will predict the wrong card, for example, I could get a result such as: boxes: tensor([[3.9575e+02, 4.4631e+01,…
user1878697
  • 77
  • 1
  • 5
0
votes
0 answers

INaturalist17 JSON annotation format to Darket format for detection

INaturalist17 JSON annotation format to Darket format for detection I have been recently trying to convert the JSON annotation files of the INaturalist17 dataset to Darknet format for doing object detection. Each image should have its own annotation…
0
votes
1 answer

YoloV8 optimization for smartphone

I am using the model YoloV8 with tensorflow.js. I am trying to make realtime image segmentation with cam. I am using this example, which work good on computers but very slow on smartphone. And my need is to optimize it for smartphone. Object…
emilie zawadzki
  • 2,035
  • 1
  • 18
  • 25
0
votes
1 answer

How to troubleshoot IndexError while training YOLOv8 in Python?

getting IndexError: index 1 is out of bounds for dimension 1 with size 1 while training yolo v8 I am trying defect detection with yolov8 and i am expecting a detection of those defect on full scale image Input is 416 * 416 image using Python…
0
votes
0 answers

How to generate same metrics as Yolo from detectron2?

Currently, by default detectron2 gives the following output whereas I want to generate the F1 curve, precision-recall, precision-confidence curve, and confusion matrix among other metrics. Can anyone help me with this or point me in the right…
raj-kapil
  • 177
  • 1
  • 15