Questions tagged [yolov4]

244 questions
1
vote
1 answer

YoloV4 to TFLite model giving completely wrong predictions

I trained my yolov4 model on custom dataset, and it is giving me around 90-100% accuracy, great! But I want to convert the weights to TFlite because I need to do some detection task on edge device. But after I converted it to first TF weights and…
dev1ce
  • 1,419
  • 1
  • 19
  • 39
1
vote
1 answer

Run issue with Deepstream 5.1 and YOLOv4

Complete information of setup. • Hardware Platform (Jetson / GPU) : GPU • CUDA : 11.1 • DeepStream Version : 5.1 • JetPack Version (valid for Jetson only): None • TensorRT Version : 7.2.3.4 • NVIDIA GPU Driver Version (valid for GPU only) : 460.84 I…
1
vote
0 answers

problem using pycocotools for Scaled Yolo v4 in pytorch : numpy version dilemma

my setting is python 3.9 numpy 1.21.0 cuda 10.2 right now i'm having a problem receiving two error messages. one is : ERROR: pycocotools unable to run: 'numpy.float64' object cannot be interpreted as an integer second is : ERROR: pycocotools unable…
1
vote
2 answers

How to get MAP score of the Yolov4 Model?

I have a set of Images and Yolo Annotation files(in txt format) for the validation. How to properly use -map argument (something like below) to get the mAP score of the validation dataset using the darknet framework…
Sandeep M
  • 53
  • 1
  • 7
1
vote
1 answer

How to find mAP and f1 score in yolov4-416 custom model converted from Yolov4 to TensorFlow Lite model

My Model is the Yolov4 Darknet model. I used the "-map" function to compute the metrics there, -map function belongs to the darknet. However, when converting my model to tensorflow lite, I want to recompute these metrics on the tensorflow model in…
1
vote
1 answer

Yolov4 Custom Training - Couldn't open file: data/obj.data

The darknet training command darknet.exe detector train data/obj.data yolo-obj.cfg yolov4.conv.137 produces the error: Couldn't open file: data/obj.data on my Windows 10 device. I have followed the instructions in the AlexeyAB README file under "How…
AK_KA
  • 73
  • 1
  • 10
1
vote
1 answer

YOLOv4 custom function doesnt detect video while running on GPU

im using YOLOv4 custom function from the AI guys's repo. Everything works flawlessly, including convert weights file to pb file, run detection on both image and videos, then this error shows up on both pc and colab: When i use only CPU, detection…
1
vote
0 answers

YOLOv4 on tensorRT INVALID_ARGUMENT: Cannot find binding of given name: nmsed_classes

I have an issue while trying to run my code based on yolov4.engine that I generated from my onnx file, and I get this error: [E] [TRT] INVALID_ARGUMENT: Cannot find binding of given name: num_detections [E] [TRT] INVALID_ARGUMENT: Cannot find…
1
vote
3 answers

Text Detection with YOLO on Challenging Images

I have images that look as follows: My goal is to detect and recognize the number 31197394. I have already fine-tuned a deep neural network on text recognition. It can successfully identify the correct number, if it is provided it in the following…
spadel
  • 998
  • 2
  • 16
  • 40
1
vote
0 answers

How can I see the graph of my training results in yolov4 if my colab stopped running when it finished in train?

I have train with yolov4 using Google Colab. But, when it finished, my Colab stopped running and I cannot see the charts of my training results. Is there any ways to see the graphs? Thanks. I follow this code for training:…
1
vote
1 answer

Which one is the correct YOLOv4 total loss function formula?

I couldn't find the total loss function in the main YOLOv4 paper. However, I found two differing formulas from two different papers (difference is highlighted/marked in the images below). Which formula is the correct default total loss formula for…
1
vote
1 answer

YOLOv4 darknet weights

So I am training YOLOv4 using this command !darknet/darknet detector train darknet/data/obj.data darknet/cfg/yolov4-obj.cfg yolov4.conv.137 -dont_show -map and saving the weight files in my drive. Checking the drive I notice only best.weights and…
S-B
  • 11
  • 2
1
vote
3 answers

absl.flags._exceptions.UnparsedFlagAccessError: Trying to access flag --tiny before flags were parsed

trying to build a webapp using yolov4,converted the yolov4 weights to tensorflow weights.Using tensorflow==2.3.0rc0 using 2 files helper2.py and app.py Please explain me what changes do i need to make in this code to run it properly helper2.py…
Varun Singh
  • 63
  • 1
  • 3
  • 13
1
vote
0 answers

How to add sub label to an image to perform object recognition using YOLO?

Please help . I have images of a car, Trucks, bikes. I want to train a YOLO or object detection model on it which can output the car_owner, truck_owner, car_model, truck_model, truck_km, car_km etc. But What I know is we can label the images for…
1
vote
0 answers

Yolov4 weights conversion to tflite failure

I am using Google Colabs to convert Yolov4 darknet weights to tflite version. I used this blog to train my own yolo detector and I got to acceptable accuracy for my detections. Then I tried every repository on github 1,2,3 to covert my custom…