Questions tagged [yolov4]
244 questions
19
votes
3 answers
(-5:Bad argument) in function 'rectangle' - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
As I detect my tflite file, the problem happened.
The command I wrote.
python detect.py --weights ./checkpoints/yolov4-tiny-tf.tflite --size 416 --model yolov4 --image D:\yolov4\training\tensorflow-yolov4-tflite-master\data\rice.jpg --framework…

CYH
- 345
- 1
- 2
- 9
4
votes
4 answers
How to load custom yolo v-7 trained model
How do I load a custom yolo v-7 model.
This is how I know to load a yolo v-5 model :
model = torch.hub.load('ultralytics/yolov5', 'custom', path='yolov5/runs/train/exp15/weights/last.pt', force_reload=True)
I saw videos online and they suggested to…

pavan
- 102
- 2
- 11
2
votes
0 answers
How to fill out the bounding boxes with a gaussian blur while streaming yolov4?
i am new to yolov4 and I have the following problem. I trained my yolov4 tiny network to detect faces and it runs on a jetson nano. I am using the following code to run the detection over my zed camera:
./darknet detector demo data/obj.data…

JAYJUS100
- 21
- 1
2
votes
0 answers
Need yolov4 parser for deepstream application
Need yolov4 Parser/tlt parser , and im using below SSD deepstream app . i need to tweek the SSD parser , could anyone provide the python parser for YoloV4 and tlt TLT…

Sri Harsha
- 63
- 1
- 9
2
votes
2 answers
YOLOv4 detection in OpenCV.js causing Uncaught exception
I'm trying to get YOLOv4 detection to work using OpenCV.js.
It looks like I've successfully gotten the net read using
const net = cv.readNetFromDarknet(files.config, files.weights);
And I'm using getBlobFromImage from the tutorial to get the…

Nathan
- 73,987
- 14
- 40
- 69
2
votes
1 answer
Changing YoloV4 darknet_video.py into multiprocessing instead of multi_threading
I wish to change the darknet_video.py from https://github.com/AlexeyAB/darknet/blob/master/darknet_video.py into a multi-processing program instead of multi-threading to avoid Python GIL and achieve actual parallelism
However, converting to a…

Superman2341
- 21
- 2
2
votes
1 answer
I want to save Each detection of Yolo or tensorflow is stored in an array variable for further use
I want to store each detection value and combine it into an array to save it to excel.
I want to apped sa_mask to add all detection values to save_mask variable, but I tried apped and got only the last detected value. It doesn't store all…

nutter kab
- 21
- 1
2
votes
2 answers
(cuDNN Error: CUDNN_STATUS_BAD_PARAM: Permission denied) - YOLOV4 object detection
I am trying to detecting objects using yolov4. Anyway, when i run this command:
./darknet detector demo cfg/coco.data cfg/yolov4-csp.cfg yolov4-csp.weights -ext_output videoplayback.mp4
I am taking this:
CUDA-version: 10020 (10020), cuDNN: 8.2.1,…

aysekonus
- 21
- 5
2
votes
2 answers
How to convert XML Files into Text files (YOLOV3 Format) for object detection
How we convert XML annotation folder into text or YOLOv3 Format for detection??? I used this code for conversion but it only take one xml image and convert into .txt ..but i want to convert my full folder at once time. You have Any easy solution to…

Dua khan
- 21
- 2
2
votes
1 answer
Can someone explain the output of forward() in DNN module?
when I learn YOLO using opencv, and I use 1 class.
outs = net.forward(output_layers)
if I print the output is as follows:
[9.31552518e-03 7.26305973e-03 2.51572542e-02 1.67992767e-02 1.28286320e-06 0.00000000e+00]
I understand that index 0 to…

KEMAL TAUFIK FIKRI -
- 39
- 6
2
votes
0 answers
How to make confusion matrix in YOLOv4 using mAP's output?
We have found the mean average precisions. In the map, there are TP, FP, FN values but not TN. So, we are trying to find the TN values from which we can measure our confusion matrix. How can we measure the confusion matrix from the already measured…

SI Bot
- 21
- 1
2
votes
1 answer
OpenCV DNN YOLO V4 with CUDA in Python is 5x Faster than the same code in C++
I'm trying to compare the performance of the following code:
frames = ...
for i in range(2000):
frame = frames[i % 4]
model.detect(frame, .2, .4)
and its counterpart in C++:
frames = ...
for(int i = 0; i < 2000; ++i) {
const cv::Mat &…

Duloren
- 2,395
- 1
- 25
- 36
2
votes
0 answers
K fold cross validation in yolo v4 with darknet
I am new to the field of deep learning. I need to test a trained model with darknet neural network, using yolo v4.
During the training I performed the division of the dataset into 80% training test and 20% test set.
I would like to know if there was…

Federico Frari
- 31
- 3
2
votes
1 answer
OpenCV YoloV4-tiny weights and .cfg file?
Where to find the .cfg file for YoloV4-tiny model.
https://github.com/AlexeyAB/darknet/releases
Here I can see the .cfg for normal YoloV4 and .wights file for both YoloV4 and YoloV4-tiny,
but no .cfg file for YoloV4-tiny.
Also, for normal YoloV4…

Vishal Kumar
- 65
- 3
- 7
2
votes
2 answers
Raspberry Pi 4 (8 GB) with YOLOV4/YOLOV4-TINY using Tensorflow-lite?
What is the best way to run YOLOV4/YOLOV4-TINY on RPI 4 using Tensorflow-lite for object detection? I want to detect/count the no. of people in the room using this followed by detection of items like chair, banana e.t.c?
As far as I know these…

Vishal Kumar
- 65
- 3
- 7