Questions tagged [yolov4]

244 questions
0
votes
1 answer

BeagleBone AI OpenCL

I have a project to run yolov4 on BeagleBone AI. To run this CNN I needed to install Darknet using following guide: https://iblog.isowa.io/2020/04/29/darknet-in-opencl-on-beagleboard-ai/ . I suggest that installation held good. The key is that with…
0
votes
0 answers

darknet_images.py doesn't detect any objects. Darknet YOLOv4

So I'm running the default darknet_images.py script in pycharm (the one from Alexey's github repo) and when I give the img path, the img shows but the bounding boxes don't. I tried to solve the problem but couldn't find a solution. I found that my…
RaresTamaian
  • 13
  • 1
  • 4
0
votes
0 answers

yolov4 does not work properly with google cloud platform

Yolov4 works fine on the local computer. I ran it on ubuntu using google cloud platform, but Object recognition is not possible. All environments required for ubuntu have been built. I am using yolo-v4 using only numpy and opencv. When I run it on…
ygh
  • 1
0
votes
1 answer

Using Darknet YOLOv4 in python to detect objects from an image opens and closes the image and doesn't print detected objects

So I'm using the Darknet Framework with YoloV4. This is my yolo_image.py code: import darknet import cv2 # darknet helper function to run detection on image def darknet_helper(img, width, height): darknet_image = darknet.make_image(width,…
RaresTamaian
  • 13
  • 1
  • 4
0
votes
1 answer

Custom YoloV4 Detection Time

I have trained a custom YoloV4, single class object detector using AlexeyAB's darknet. The best weight files of my model result in the following performance I obtained this evaluation using the command, darknet.exe detector map data/obj.data…
varungupta
  • 155
  • 4
  • 10
0
votes
1 answer

Safety hat and vest detection with Yolo v4

I am training a Yolo v4 object detection model that detects the wearing of safety hats and vest on construction sites, I want to show as a result if the person is wearing the hat and vest or not, The bounding box of the person must show "person…
0
votes
0 answers

What is bad.list file in YOLO v4

after training YOLOV4, a file "bad.list" is made and containing the name of multiple images. What is the significance of this file and does it affect the trainig results and how can I fix this problem cause the images in bad.list are correctly…
SSSSSSSSS
  • 1
  • 3
0
votes
2 answers

Problem in conversion of .pb to tflite int8 for Coral Devboard (coral.ai)

I have done the training of model for object detection using yolov4 darkenet Alexyab and then converted the weight file generated to tensorflow lite using this repository https://github.com/hunglc007/tensorflow-yolov4-tflite and I was able to…
0
votes
0 answers

Image labelling, How to annotate a picture which don't have an object but i should have its xml file as i explained in the question

I find a dataset which some of the pictures is not annotated but it has like this format in xml. But this another picture has an annotated object which look like this: Can any one tell me How and by which tools i can annotated a picture which…
0
votes
0 answers

AttributeError: module 'cv2' has no attribute 'dnn'

I am trying to detect objects in a picture. I am using my trained weights and configuration file. The code runs completely fine on my laptop but it shows AttributeError: module 'cv2' has no attribute 'dnn' when I run it on my Raspberry Pi 4B. I have…
0
votes
2 answers

How to train YoloV4 for custom object detection on grayscale images?

I am working with images of text which have diagrams in it. My images are basically black and white I do not see why I want colors in my images. I got some decent results with default settings but I want to test on grayscale Images too. I am using…
Deshwal
  • 3,436
  • 4
  • 35
  • 94
0
votes
0 answers

Error when run !make and !rm darknet on google colab

I am training a model using yolov4 and I use google colab for training. When I run %cd /content/drive/MyDrive/Colab Notebooks/Test_self_train_yolo_v4/darknet !rm darknet !make I got errors: /content/drive/MyDrive/Colab…
Hai Luu
  • 43
  • 6
0
votes
1 answer

YOLO: Wrong annotation: class_id = 6. But class_id should be [from 0 to 0]

I'm trying to train YOLO for object detection based on 8 classes by using Darknet. However, while training I receive the error Wrong annotation: class_id = 4. But class_id should be [from 0 to 0], file: data/obj/images/IMG_8943.txt IMG_8943.txt is…
Sunshine
  • 181
  • 1
  • 3
  • 15
0
votes
2 answers

How can I edit or remove the bounding box label text in YOLO (V4)?

I want to edit the bounding box label to show only the probability of detection and not the class label, How shall I do this? I found a file called image.c in darknet/src which I think is where my edits need to be made. But there are multiple…
0
votes
1 answer

Is it possible to run two YOLO (yolov4) object detection models in a single application?

I understand that it would be much simpler to just train YOLOv4 accordingly but: I have limited computational resources and was hoping I could combine pre-trained models I found online, saving my time, or train a model and combine it with other…
varungupta
  • 155
  • 4
  • 10