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

How to convert YOLOv5 PyTorch model to OpenCV DNN compatible format

Could anybody please help me to convert YOLOv5 PyTorch model to ONNX or TensorFlow format to be able to use it with OpenCV C++ inference? I used this tutorial to train the model with colab:…
al072
  • 79
  • 2
  • 14
2
votes
1 answer

YoloV5 Custom retraining

I trained my custom data set in the yoloV5s model and I got 80% accuracy on my inference. Now I need to increase the accuracy by adding more images and labels. My question here is, I already trained 10,000+ labels to reach 80% it took 7 hours for…
123bmc
  • 27
  • 4
2
votes
0 answers

Fiftyone Data conversion method to YOLO v5

I tried to convert YOLO v5 format to fiftyone format from this site. The original code is below. import fiftyone as fo name = "my-dataset2" dataset_dir = "/content/drive/MyDrive/yolo/yolov5/training/data" # Create the dataset dataset =…
2
votes
0 answers

Extracted contours are not properly aligning with the image

We are using the below image and we tried extracting the border coordinates using contours of opencv def apply_contours(image,img): contours, hierarchy = cv2.findContours(img, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) # print(f"Total number of…
2
votes
1 answer

YOLOv5 object detection along with timestamp

I am new to programming and have recently been trying to learn object detection using YOLOv5. I can perform the detection of a custom object, but I am struggling to record the frames in which the objects were detected. My goal is to compare the…
2
votes
2 answers

convert yolov5 model to ONNX and run on c++ interface

I have yolo model as yolov5s.yaml and i have saved my weights file as best.pt . Now want to convert yolo model to ONNX and run on c++ interface . I have gone through this https://github.com/ultralytics/yolov5/issues/251 but not able to do .Any help…
k_p
  • 283
  • 6
  • 17
2
votes
1 answer

YoloV5s How to output FPS from inference time

New to Yolo and python, I'm using the PyTorch detect.py script from https://github.com/ultralytics/yolov5/blob/master/detect.py and I want to output the FPS. When I run my model I get the inference time of the detection per frame. (I'm…
David
  • 75
  • 1
  • 7
2
votes
2 answers

YoloV5 killed at first epoch

I'm using a virtual machine on Windows 10 with this config: Memory 7.8 GiB Processor Intel® Core™ i5-6600K CPU @ 3.50GHz × 3 Graphics llvmpipe (LLVM 11.0.0, 256 bits) Disk Capcity 80.5 GB OS Ubuntu 20.10 64 Bit Virtualization Oracle I installed…
Peter
  • 1,844
  • 2
  • 31
  • 55
2
votes
2 answers

Does yolov5 pytorch use a different labeling format?

I am doing object detection in yolo v5 in an dataset annotated for older version .But in tutorials I found that we have to choose yolov5 pytorch format .Is there any difference ,will the older annotated data work??
Bigyan Subedi
  • 99
  • 2
  • 9
2
votes
3 answers

Training yolov5 causes a CUDNN_STATUS_NOT_INITIALIZED error

I'm following this guide without changing anything. I'm using an aws server with deep learning ami: Deep Learning AMI (Ubuntu 18.04) Version 40.0 I've tried to change my custom dataset to the coco dataset and to a small subset of the custom…
Netanel
  • 459
  • 1
  • 5
  • 17
2
votes
0 answers

how can i use data agumentation option in yolov5?

I want to feed images rotated at 90,30,45 degrees in yolo v5.But I only find one hyperparameter to tune in hyp.scratch.yaml file. degrees:0.0 Can I do something like this?? degrees:0.1,0.2,0.3
Bigyan Subedi
  • 99
  • 2
  • 9
2
votes
1 answer

How to resolve an error in Yolov5 train,py in yaml

I am trying to run yolov5 in Google colab GPU free version !pip install PyYAML==5.3 I am getting an error Model Summary: 407 layers, 8.84875e+07 parameters, 8.84875e+07 gradients Optimizer groups: 134 .bias, 142 conv.weight, 131 other …
parag
  • 51
  • 4
2
votes
3 answers

Realtime yolov5 detection with Desktop screen as input

I have a script that grabs an application's screenshot and displays it. it works quite nicely on my machine like a video with around 60FPS. import os os.getcwd() from PIL import ImageGrab import numpy as np import cv2 import pyautogui import…
gaut
  • 5,771
  • 1
  • 14
  • 45
2
votes
1 answer

"yolov5x.pt is not compatible with models/yolov5x.yaml. Specify --weights '' or specify a --cfg compatible with yolov5x.pt."

I want to detect 9 objects all of which are clothes. So I wanted to use yolov5. I wanted to train using the pretrained yolov5x.pt weights. I changed the number of categories in the yolov5x.yaml and clothing_data.yaml to 9. When I try to train the…
2
votes
0 answers

Yolo high mAP but fairly low confidence

I am currently working on a project which makes use of YOLOv5. I have trained my model for 100 epochs on a 5000+ dataset of images and got a good mAP of 0.95. My question came up when I tried to detect objects using the detect.py with the trained…
User89
  • 93
  • 1
  • 8