Questions tagged [yolov4]

244 questions
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
1 answer

How can I calculate metrics like mAP, F1 score and confusion matrix for Yolov4 for object detection?

I'm really new to this field of computer vision. I have used this repo https://github.com/theAIGuysCode/yolov4-custom-functions. system: Win 10 name:…
Shaik
  • 11
  • 1
1
vote
0 answers

The size of byte buffer and the shape do not match. I'm having a error while implementing a tensorflow.lite model in android

I'm creating my first ML Android App. But I got this error java.lang.IllegalArgumentException: The size of byte buffer and the shape do not match. This is the code that I run on android studio. predictBtn.setOnClickListener(new…
1
vote
1 answer

YOLOv4 custom model: is final.weights or last.weights better?

I'm training a custom YOLOv4 model using darknet, and at the end of training it produces two files: last.weights and final.weights. What is the difference between them, and which one should I use? From the naming I'd guess final.weights is the best…
Nathan
  • 73,987
  • 14
  • 40
  • 69
1
vote
0 answers

YOLOv4 model detection issue on RTSP

We're using a Yolo4 (Pytorch) model to detect different barricades and cordons around some workplaces, the use case being any missing cordons/barricades at any point in time. We're running our models on RTSP streams with full camera zoom. However…
Prana
  • 693
  • 1
  • 7
  • 16
1
vote
0 answers

Yolov4 Training Time

Is anyone aware of how long the training took to achieve the mAP and FPS of YoloV4 on the MS COCO dataset as referenced in https://github.com/AlexeyAB/darknet and the corresponding paper: https://arxiv.org/abs/2004.10934. Trying to estimate training…
1
vote
1 answer

How to resolve YOLOv4 Error: "Could not locate cudnn_ops_infer64_8.dll please make sure it is in your library path"?

Trying to install darknet and use YOLOv4 for detection of objects. Issue of cudnn_ops_infer64_8.dll unable to locate. However the file is in the library. I have downloaded Zlib and entered it into the PATH environment. Followed the instructions…
Rutger
  • 21
  • 3
1
vote
1 answer

How to log YOLOV4 Darknet into Tensorboard?

I am using Colab: https://colab.research.google.com/drive/1_GdoqCJWXsChrOiY8sZMr_zbr_fH-0Fg?usp=sharing to train YOLOV4 custom detector. The repo used in the Colab is: https://github.com/AlexeyAB/darknet I want the training results (Loss, mAP) to be…
1
vote
0 answers

How can I change the pre-trained file of the Yolov4 algorithm?

I want to train my custom dataset using the yolov4 algorithm. The difference between my data and the coco dataset is that my objects label's are as follows: label annotation: We always use…
fatiman
  • 11
  • 2
1
vote
0 answers

Problem with Train Custom Detector YOLOv4-Roboflow-PyTorch.ipynb

I was trying the yoloV4 pytorch model from the https://models.roboflow.com/object-detection/yolov4-pytorch I watched the tutorials and the comment section but it is still not working properly. This is the code %cd .. #start training #-b batch size…
1
vote
1 answer

Do you understand why the Outputs of my YOLOV4 model has this shape?

I have a question. I trained a YOLOV4 model for face detection and when i tried to look at the output on Neutron i found that the Bounding Box shape is [1,1,1] and Feature has the shape of [1,1,4] is there something wrong that i did ? Thank…
Reda Ctl
  • 11
  • 1
1
vote
0 answers

Is there any method to convert a quantization aware pytorch model to .tflite?

I have trained yolov4-tiny on pytorch with quantization aware training. My model layers look…
1
vote
0 answers

How to generate confusion matrix using test results?

I obtained test results(bbox size, location) via code below, !./darknet detector map data/data.obj cfg/yolov4-obj.cfg backup/yolov4_last.weights -ext_output result.txt and want to generate confusion matrix with it. How can i make…
jongyeonb
  • 11
  • 2
1
vote
0 answers

Makefile:179: recipe for target 'obj/demo.o' failed make: *** [obj/demo.o] Error 1

When I run !make command in yolov4, I face the issue: chmod +x *.sh gcc -Iinclude/ -I3rdparty/stb/include -DOPENCV `pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv` -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors…
1
vote
0 answers

How would you train YoloV3 or YoloV4 on images of size 8280X6208

I am trying to train Yolo on 8k images but resizing images to 416 by 416 loses a lot of information. Is there a way to grid search on the images before passing it as training and then putting them back together after inference ?
Zee Jan
  • 39
  • 4
1 2
3
16 17