Questions tagged [yolov4]
244 questions
1
vote
1 answer
Changing darknet weights into tensorflow weights
I used this https://github.com/theAIGuysCode/tensorflow-yolov4-tflite rep to create my own yolov4 detection. The detection with the yolov4.weights and coco.names works just fine on images/videos/webcam.
Next I trained my own weights file with a…

Kabuco
- 33
- 5
1
vote
0 answers
How can I solve file upload issue?
[![I cannot upload the obj.names and obj.data files][1]][1]
Even though my path file is correct, I am not able to upload obj.names and obj.data files.
I tried as /mydrive/yolov4/obj.names.gdoc ./data --> it did not work either

codesfullinmymind
- 43
- 3
1
vote
2 answers
CUDA Error: out of memory (Yolov4 custom model training)
I am trying to train a custom model on weights in the darknet and the algorithm involved is yolov4. After the model is successfully loaded, I am getting a Cuda error: out of memory as shown below.
896 x 896
Create 6 permanent cpu-threads
Try to set…

YAMA
- 11
- 2
1
vote
0 answers
Object detection with gocv can't save result to Image file
I have a trained model for yolo4 for object detection (.weights and .cfg)
and a input image to process. The goal of the software is
to scan the image with the model, draw a box around the
detected object and save it as a image file (e.G. output.jpg,…

TrailSurfer
- 75
- 7
1
vote
0 answers
ValueError: Dimensions must be equal, but are 255 and 108 for '{{node SquaredDifference}}
I am trying to train a YoloV4 model with my own data.
I get the following error when i try to fit the model with a custom loss function:
ValueError: Cannot reshape a tensor with 2945760 elements to shape [2,76,76,3,36] (1247616 elements)
the…

Cindy Zheng
- 23
- 3
1
vote
0 answers
Error in loading YOLOv4 TFlite model in Flutter
I have loaded my custom YOLOv4 TFlite model on Flutter based on this repo by TexMexMax. I already followed all the instructions in the README.md but still got these…

jung_66
- 41
- 4
1
vote
0 answers
How to get confusion matrix of custom trained yolov4-tiny model?
After training a Yolov4-tiny model with custom data how can i get confusion matrix for my trained weights?

Muhammed Erem
- 103
- 1
- 8
1
vote
0 answers
YOLOv4 video detection just loading
Hello im trying to use video detection in YOLOv4 this is my command:
!./darknet detector demo cfg/coco.data cfg/yolov4.cfg /content/custom-yolov4-detector_best.weights /content/test.mp4 -benchmark
But it just keep loading with a white square and…
1
vote
0 answers
TypeError: cannot resolve operator 'Shape' with opsets: ai.onnx v11
I trained a custom YOLO V4 tiny model in darknet format (got .cfg and .weights file respectively). I converted this model into onnx format using python demo_darknet2onnx.py yolov4-csp.cfg yolov4-csp.weights people.jpg 0 from repository…

Sambit Majhi
- 51
- 1
- 2
1
vote
1 answer
Yolo V4 detects twice to one object
I am training darknet/yolov4 for object detection. When I trained the model and look at the demo, yolov4 detects two objects for one object. How can I fix that problem.
[

Armağan
- 21
- 3
1
vote
1 answer
How to improve the accuracy of Yolov4-tiny.tflite in flutter
I have trained the yolov4-tiny file and successfully converted it to tflite. There were no problems during the computer test, but I encountered difficulties in installing it on the phone.
As I put my tflite into the flutter, I had different test…

CYH
- 345
- 1
- 2
- 9
1
vote
0 answers
How do Darknet pre-trained weights on COCO adapt to different output size (different number of classes)?
I've been working with Darknet for few months now, and there is a mystery I still cannot solve. It is actually about Darknet YOLO .weights file, which seem to adapt themselves regardless the number of classes, on which the number of filters in the…

esarf
- 76
- 4
1
vote
1 answer
What's the complete loss function used by yolov4?
I am unable to find the explanation for the loss function of yolov4.

Gaurav Sharma
- 138
- 2
- 9
1
vote
1 answer
Integrate yolo custom object detector in flutter app is not detecting any object
I was traying to integrate my custom YOLO models (I try with YOLOv3 and YOLOv4) to flutter like was show in https://stackoverflow.com/a/62990869/9420938. However when I call Tflite.detectObjectOnFrame() the model is always returning an empty array.…

Jose Riveaux
- 13
- 3
1
vote
1 answer
How to transfer learning or fine tune YOLOv4-darknet with freeze some layers?
I'm a beginner in object detection field.
First, I followed YOLOv4 custom-train from here, I have successfully followed the tutorial. Then I started to think that if I have a new task which is similar to YOLOv4 pre-trained (which using COCO 80…

saesaria
- 46
- 6