All Questions
Tagged with yolov4 tensorflow
24 questions
1
vote
1
answer
106
views
Only the initial frame is being tracked in YOLOv4 with DeepSORT on Colab
I am currently trying to do object tracking with YOLOv4 and DeepSORT algorithm on Google Colab by utilizing this repository from the AIGuysCode.
Previously, everything was fine and the following ...
0
votes
1
answer
797
views
TensorFlow custom loop training model: multi GPU is slower than a single GPU
I am using:
TensorFlow 2.6
CUDA 11.2
4 GPUs (GeForce RTX 3070)
TensorFlow uses Keras to define the training model, and multiple GPUs can accelerate normally. However, when using a custom loop ...
0
votes
0
answers
197
views
Multi-threading on absl.app.run to run yolov4 and tkinter
I'm working on a tensorflow yolov4 project, but to end it, I need to display the cv2 image into the tkinter interface.
#Import general library
import time
import datetime as dt
#Import tkinter ui ...
1
vote
1
answer
1k
views
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: yolov4-gpu
dependencies:
python==3.7
pip
...
1
vote
0
answers
85
views
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.
...
0
votes
1
answer
781
views
can't open camera by index in Colab
I am using https://github.com/theAIGuysCode/yolov4-custom-functions this repository. I want to crop and save pictures while running on webcam. I'm using Colab. But when I run the following code:
!...
0
votes
1
answer
303
views
yolov4-tiny on Colab. ConverterError: Variable constant folding is failed
I'm trying to convert the tensorflow weights to tensorflow lite. First of all, I converted.tflite from generating TensorFlow SavedModel. I do this in Google colab. Can I execute this code?
%cd /...
1
vote
0
answers
192
views
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://...
0
votes
1
answer
260
views
Convert custom Yolov4 .weight file to Tensorflow
I have trained my custom object using Yolov4 and I have the following file :
yolov4-custom_best.weights
yolov4-custom.cfg
obj.names
'obj.names' has the names of the classes of the custom object.
In ...
0
votes
0
answers
827
views
WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. `model.compile_metrics` will be empty until you train
I am trying to run a yolov4 + DeepSORT object tracker on tensorflow. However, when I attempt to run save_model.py to convert the darknet weights of yolov4 to a tensorflow model, the following warning ...
2
votes
1
answer
712
views
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 ...
1
vote
0
answers
101
views
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 ...
1
vote
1
answer
819
views
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/...
0
votes
0
answers
86
views
Video input works but same input from camera gives false positives
I am using yolov4 to automatically reject items on a conveyor belt which are clumped together. Items which are nicely spaced apart are allowed to pass onto the next operation.
I just trained a new ...
1
vote
0
answers
137
views
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 ...
0
votes
0
answers
156
views
Yolov4 for Non Image Data (sequence data)
New to NN's. I know you can use sequence data in CNN's, but is it possible to pass sequence data into YOLO?
A sample input image has shape (height, width, depth) but a sample sequence (in TF/Keras) ...
0
votes
1
answer
619
views
Cant convert yolov4 tiny to tf model cannot - cannot reshape array of size 607322 into shape (256,384,3,3)
I've a custom yolov4-tiny model that I have trained with the following command
./darknet.exe detector train ./data/device.data ./cfg/yolov4-tiny-device.cfg ./yolov4-tiny.conv.29
but I can't convert ...
0
votes
1
answer
52
views
Unclear purpose of a class derived from Keras' BatchNormalization
I'm reading the code of a Keras implementation of YOLOv4 object detector.
It uses a custom Batch Norm layer, like this:
class BatchNormalization(tf.keras.layers.BatchNormalization):
""&...
1
vote
1
answer
1k
views
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. ...
2
votes
1
answer
676
views
Converting Yolov4 Tiny to tflite. error:cannot reshape array of size 372388 into shape (256,256,3,3)
i'm converting my custom weights file to tflite by using open source from https://github.com/haroonshakeel/tensorflow-yolov4-tflite.
there is no error when i convert Yolov4.weights to tflite but when ...
1
vote
1
answer
393
views
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 ...
1
vote
3
answers
4k
views
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 ...
-2
votes
1
answer
445
views
How to run deep sort using multiple GPUS?
I am following this tutorial. I have two nvidia 1080 Ti graphic card but I can't the code.
I have error in line 8 I also have a laptop with one GPU where this code works fine
I changed the code a ...
1
vote
0
answers
279
views
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 ...