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
1
vote
1 answer

translate bounding box anotation from [xmin, ymin, width, height] to YOLOv7

I'm struggling with translating coordinates from [xmin, ymin, width, height] to YOLOv7 representation, could someone help me, please? For example my image is width = 9477px, hight = 23354px, the annotation for [xmin, ymin, width, height] is : [2009…
1
vote
2 answers

how to Load YOLOv7 using torch.hub

how to load yolov7 model using torch.hub for make prediction I directly use torch.hub.load method of yolov5 but it didn't work
Chafik Boulealam
  • 516
  • 5
  • 10
1
vote
1 answer

Precision and Recall in YOLOv5

At the end of every YOLOv5 training epoch, you get an output like this: Class Images Instances P R mAP50 mAP50-95: 100%|██████████| 9/9 [00:04<00:00, 1.93it/s] all 262 175 0.861 …
karu
  • 465
  • 3
  • 12
1
vote
0 answers

how to run two deep learning models for prediction sumultaniously in python using threading/multiprocessing?

I want to use my model for detection on two videos in parallel. i have used multithreading but innference time was very high. Than i used multiprocessing, inference was also high. I want to use my model for detection on two videos in parallel.
1
vote
0 answers

How to convert Polygon format to YOLO forma

POLYGON ((799 1776, 799 2016, 490 2016, 490 1776, 799 1776)) This is the bounding box in POLYGON i want this in YOLO v5 format import logging from pathlib import Path import pandas as pd from shapely.wkt import loads yolo_output_dir =…
1
vote
0 answers

(Fusing Layers Illegal instruction) when running detect.py of yolov5 on Raspberry pi 4

I have cloned the yolov5 repository in my raspberry pi OS git clone https://github.com/ultralytics/yolov5 Updated torch and installed the requirements.txt file However, when I run inference with detect.py python3 detect.py --source data/images…
1
vote
1 answer

How to limit YOLO to a fixed number of predictions?

Let's say I annotated all images in my dataset to have 20 Bounding Boxes. I basically want my predicted bounding boxes to also be only 20. After training however, I get differing amounts of bounding boxes, that aren't 20. I'm trying to detect the…
C.Tale
  • 263
  • 2
  • 13
1
vote
1 answer

prediction of the yolov5 model using its export in tflite

Can someone help me, I have trained a model and exported it as a file for tflite, best-fp16.tflite, but I have not been able to make a correct prediction, I think so, or I have not been able to see anything similar, I have already drawn all the…
1
vote
1 answer

Yolo V7 Custom Weight Works in Colab but not in Local Windows Machine

For my project I'm using Yolo V7 for detecting some balls. I trained it with 8 batch size and 300 epochs the detection was perfect in Google Colab I tried same model in local machine (Gaming Laptop) it didn't detect and I had no errors showed in…
1
vote
1 answer

Bad results using OpenCV with Yolov5 comparing with pure Yolov5

I'm tryting to recognize lego bricks from video cam using opencv. It performs extremely bad comparing with just running detect.py in Yolov5. Thus I made some experiments about just recognizing images, and I found using openCV still performs…
Haotian Ma
  • 13
  • 3
1
vote
1 answer

How do I implement yolov5 to a ros2 subscriber node?

I want to implement a yolov5 algorithm to a ROS2 subscriber. But it claims that yolov5 not found. $ ros2 run yolov5_detect webcam_yolo_sub Traceback (most recent call last): File…
Jun Meng
  • 23
  • 3
1
vote
0 answers

how can I save in an array the values of xmin and xmax in order to plot them later?

this is my code import torch import cv2 import numpy as np import pandas """leemos el modelo""" model = torch.hub.load('ultralytics/yolov5', 'custom',path = r"C:\Users\sandr\PycharmProjects\pythonraton\rat_ia.pt") cap…
1
vote
1 answer

Yolov7 using OpenCV 4.6.0 dnn

I was trying to load yolov7-nms-640.onnx downloaded from YOLOv7 official repo (https://github.com/WongKinYiu/yolov7/) using OpenCV dnn module. But I got an error message OpenCV(4.6.0) Error: Unspecified error (> Node…
Ajesh Mon R
  • 13
  • 1
  • 3
1
vote
0 answers

ultralytics yolov5 rtsp stream Windows 10 : cannot open videoCapture

I am trying yo run inferences with detect.py from ultralytics yolov5 (https://github.com/ultralytics/yolov5). I created a Python environment under Windows 10, with python 3.9 and installed the requirements.txt. I checked opencv installation and have…
1
vote
0 answers

CPU RAM out of memory when using multiple Pytorch models in GPU

I'm interested in running multiple Pytorch models in a single GPU, more precisely YOLOv5-small in a single 3090. However, I have a problem when loading several models as the CPU RAM runs out of memory and I want to run inference in the GPU. First I…
David Serrano
  • 295
  • 1
  • 5
  • 14