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

Yolov5 model not validating after training

I am trying to run a custom object detection model using yolov5. Did the following steps; %cd yolov5 %pip install -qr requirements.txt # install dependencies import torch import os from IPython.display import Image, clear_output # to display…
3
votes
2 answers

ModuleNotFoundError : No module named 'models'

I'm using YOLOv5, clone from its official github repo. During the training I got the following error: Traceback (most recent call last): File "C:\Users\nived\Untitled Folder 1\train.py", line 40, in import models ModuleNotFoundError:…
NIVEDITHA J
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

YOLOv5 get boxes, scores, classes, nums

im trying to bind the Object Tracking with Deep Sort in my Project and i need to get the boxes, scores, classes, nums. Loading Pretrained Yolov5 model: model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True) model.eval() Getting…
Arthi
  • 73
  • 8
3
votes
2 answers

How to use yolov5 api with flask offline?

I was able to run the Flask app with yolov5 on a PC with an internet connection. I followed the steps mentioned in yolov5 docs and used this file: yolov5/utils/flask_rest_api/restapi.py, But I need to achieve the same offline(On a particular PC).…
rs_punia
  • 421
  • 2
  • 6
  • 17
3
votes
1 answer

torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block

I installed YoloV5 on my jetson nano. I wanted to execute my object detection code when this error appeared: python3.8/site-packages/torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block. To fix the problem I tried to put in…
3
votes
3 answers

How to load custom model in pytorch

I'm trying to load my pretrained model (yolov5n) and test it with the following code in PyTorch: import os import torch model = torch.load(os.getcwd()+'/weights/last.pt') # Images imgs = ['https://example.com/img.jpg'] # Inference results =…
Mohny
  • 49
  • 1
  • 2
  • 7
3
votes
3 answers

Exporting Yolov5 bboxes to Pascal format

There have been already some similar style questions asked before (1, 2) However, none have mentioned the new Yolov5 style annotations. Is there a simple function that takes in a normalized Yolov5 bounding box like:- test = [0.436523 0.535156…
neel g
  • 1,138
  • 1
  • 11
  • 25
3
votes
1 answer

'Paging file too small for this operation to complete' Error when attempting to train YOLOv5 object detection model

I have ~50000 images and annotation files for training a YOLOv5 object detection model. I've trained a model no problem using just CPU on another computer, but it takes too long, so I need GPU training. My problem is, when I try to train with a GPU…
mark_1985
  • 146
  • 1
  • 2
  • 10
3
votes
1 answer

Why are the two results different in YOLOv5?

I wanted to know the number of vehicles in the picture using yolov5 However, the result of the model was different from detect.py 0. img 1. model_result # Model model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # or yolov5m, yolov5l,…
3
votes
1 answer

Learning Object Detection Detected result showed in discolouration

Breif Description Recently begin to learning Object Detection, Just starting off with PyTorch, YOLOv5. So I thought why not build a small side project to learn? Using it to train to detect Pikachu. The Problem I've successfully trained the model…
CMYang
  • 166
  • 8
3
votes
1 answer

How to do detections in YOLOv5 only in a region of interest?

I want to detect objects only in a specified region and ignore all the other detections outside the ROI.
3
votes
1 answer

How to get bounding box coordinates from YoloV5 inference with a custom model?

I am currently trying to get the bounding box coordinates from my image with my custom model by using my own script and not the detect.py . I would like to get the coordinates needed to draw bounding boxes on the image. Could someone help me…
LSB
  • 33
  • 1
  • 4
3
votes
1 answer

Interpretation of yolov5 output

I am making a face mask detection project and I trained my model using ultralytics/yolov5.I saved the trained model as an onnx file, you can find the model file here model.onnx. Now I want you use this model.onnx with opencv to detect real time face…
3
votes
0 answers

How to tile images on inference with Yolo Object Detection

I've recently trained a custom yolov5 model to recognize animals on safari. Animals on safari are far away most of the time, and so, after resizing images to 640x640, most of the animals are now too small to be detected. I've researched the…
OssenCoder
  • 156
  • 9
3
votes
1 answer

How to use yolov5 model in django

I want to use the yolov5 model in django, but I got trouble. What I want to make is if user upload an image to django server, object detection made by with the yolov5 model, and then the result displayed on the web. The process itself is simple. But…
Chance Park
  • 83
  • 1
  • 9
1
2
3
42 43