Questions tagged [yolov5]

YOLOv5 is a family of object detection architectures and models pretrained on the COCO dataset.

It is a product of Ultralytics open-source research.

643 questions
0
votes
1 answer

Convert VNCoreMLFeatureValueObservations to VNDetectedObjectObservation

I have exported YOLOV5 model, but the output configuration is in VNCoreMLFeatureValueObservations instead of VNDetectedObjectObservation. Output configuration: [ 4FC4A8B2-A967-4CC7-8A86-E16863258F1B…
ajay_nasa
  • 2,278
  • 2
  • 28
  • 45
-1
votes
0 answers

AttributeError: 'NoneType' object has no attribute 'keys' while training the custom datasets with yolov5

so in my python programming I was doing an object detection problem with the custom dataset, and having an issue on it. When I wrote it jupyter file !cd yolov5 && python train.py --img 320 --batch 16 --epochs 5 --data dataset.yaml --weights…
-1
votes
1 answer

Get the average processing speed in YOLO

When using Yolo (v5 or v8) to process a video, it shows the detection speed per frame, like below (e.g. 80.6 ms). Now, is there a flag to get the average speed across all frames? video 1/1 (563/570) /home/human/yolov5/video.mp4: 384x640 1 human,…
Tina J
  • 4,983
  • 13
  • 59
  • 125
-1
votes
1 answer

size of input images of yolo v5

When training a YOLOv5s model by specifying the image size, the image size should be the actual size of the images in the dataset or the size to which you want to resize before inputting them to the network? I have images that have different sizes…
-1
votes
0 answers

Yolov5 to TensorFlow Lite - output is too high

Tflite My predicted class/class when I test is 221529 in output data but my class is only 4. I wonder where did that high number come from? Input shape: [ 1 640 640 3] Output shape: [ 1 25200 9] so when I deploy it in my android text it…
-1
votes
1 answer

Saving bounding box region as an image in a custom folder

I have a custom trained yolov5 model trained on traffic sign boards. It draws a bounding box around the traffic sign board whenever it recognizes a traffic sign. I want that bounding box to be saved as an image in a custom folder. Do I have to make…
-1
votes
1 answer

Get predicted image from yolov5 in a variable

In both of below approaches, I am getting blank image but yolo is printing the prediction results. import torch import cv2 model = torch.hub.load('ultralytics/yolov5', 'yolov5m') img = cv2.imread("assets/images.jpeg") results = model(img) # im_rgb…
-1
votes
1 answer

How to deal with low gpu utilization

when training YOLOv5, GPU utilization I want to use fully GPU So i checked and correct "number of workers",anything i can do but my GPU did not work fully please help me before crash my computer
-1
votes
1 answer

YOLOv5 Training Shift Bounding box to left

I'm trying to train my YOLOv5 to recognize car That's a simple image in training folder and inside my label i put this bounding box i resize image and bounding box from 1000x750 to 640x640 and i start training my yolov5 with !python train.py…
Tiru
  • 57
  • 1
  • 6
-1
votes
1 answer

how do we extract the xyxy coordinates of the yolov5 detection image and crop it?

import cv2 import numpy as np import torch import pandas import os # Load the trained model model = torch.hub.load('ultralytics/yolov5', 'custom', path='C:/Users/ASUS/Desktop/yolov5-fastapi-main/model/best.pt',force_reload=True) def…
-1
votes
2 answers

how can segmentation fault error be fixed OpenCV python

I am trying to run a simple objection detection on webcam using Yolov5 but I keep getting the error below. zsh: segmentation fault The camera appears to open then shut off immediately and the code exit with the above error. Here is my code def…
e.iluf
  • 1,389
  • 5
  • 27
  • 69
-1
votes
1 answer

Does labelled data need to be marked as verified for YOLOv5

I have a labelled dataset that I haven't exported yet. I can flag each image as verified. But do I need to do this or is it optional? I saw this option sync across several labelling software. I've mostly labelled the dataset but I am scared that the…
-1
votes
2 answers

OpenCV waitKey() throws assertion: Rebuild the library with Windows, GTK+ 2.x or Cocoa support

I have trained a certain model and have the weights (weight.pt) and am able to detect objects from images and videos, but the problem is the webcam is not opening. In google collab to train my model !git clone https://github.com/ultralytics/yolov5…
Rajesh Khan
  • 59
  • 1
  • 4
-1
votes
1 answer

Yolov5 StrongSORT object crop for 1 object id

Well I'm facing some issues about cropping from videos, when cropping is set to True, it does its job, but it exports detected objects from every frame of video (well, it's logical, in every frame it sees new object detections), but I need to export…
-1
votes
1 answer

ValueError: too many values to unpack (expected 2) while trying to load yolov5 model

I am trying to load a trained yolov5 model on a custom dataset using this: # Model model = torch.hub.load('/home/yolov5/runs/train/yolo_sign_det2/weights', 'best') # or yolov5n - yolov5x6, custom but I am running into this error: ValueError …
Vikas Kumar
  • 85
  • 1
  • 11