YOLOv4 | Port of YOLOv4 to C # TensorFlow | Machine Learning library
kandi X-RAY | YOLOv4 Summary
kandi X-RAY | YOLOv4 Summary
*NOTICE: This is a port of YOLOv4 Implemented in Tensorflow 1.15.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of YOLOv4
YOLOv4 Key Features
YOLOv4 Examples and Code Snippets
Community Discussions
Trending Discussions on YOLOv4
QUESTION
Keras implementation of YOLOv4
Is it possible in this Keras implementation of YOLOv4 to somehow continue training from the last saved best weights? Something like the following:
...ANSWER
Answered 2022-Apr-03 at 06:36According to these lines the repository automatically handles the weights on your path; So to load a pre-trained weights (either .h5
checkpoint or .weights
to do transfer learning, and follow training notebooks for the rest;
QUESTION
I am trying to determine if certain parts of an RGB image are colored or grayscale, using python, opencv and numpy libraries. To be more spesific, in an RGB image I determine face locations using neural networks and when that image contains printed photos I would like to find out if the face location in that image is grayscale or colored.
What I tried so far:
...ANSWER
Answered 2022-Jan-10 at 18:06How about finding the max difference in every pixel of the cropped image and then taking the STD of them. With the gray scaled image, that value must be small compared with colored ones.
QUESTION
I have integrated OpenVINO and PyQt5 to do the inference job as shown in the image on Windows 11 with openvino_2021.4.689 version.
I reference this GitHub to finish YOLOv4 inference with NCS2.
The following is my inference engine code.
...ANSWER
Answered 2022-Jan-13 at 02:25The optimum way to use this Multi-plugin with multiple devices is by configuring the individual devices and creating the Multi-Device on top.
For example:
QUESTION
I am trying to install openvino_2021.4.689 version with Windows 7 old computer.
I need to use OpenCV with my project, so I have to use PowerShell to execute ffmpeg-download.psl in opencv folder of openvino_2021.4.689 like this.
If I install my own OpenCV by pip install opencv-python
in Command Prompt rather than install by OpenVINO's ffmpeg-download.psl file, my project with cv2
library will not work successfully.
Specifically, my YOLOv4 frame will not show without any error message, what I use cv2
to draw images cannot work.
But if I click ffmpeg-download.psl with right mouse button and select executed by PowerShell, I will get an error message as shown in the image. (Executed with system administrator.)
...ANSWER
Answered 2022-Jan-12 at 05:21The validated and supported Operating System for Windows by Intel® Distribution of OpenVINO™ Toolkit is Windows 10, 64-bit. Using older Windows version might contribute to unexpected issues.
If only looking on your current encountered error, it might be due to Windows PowerShell compatibility version. As it is mentioned in the ffmpeg-download.psl, which requires PowerShell 4+. While Windows 7 installed with the default version, Windows PowerShell 2.0.
QUESTION
My environment is Windows 11 with openvino_2021.4.752 version.
When I try to run object_detection_demo.py in the demos folder of inference engine, N/A result will be occurred using CPU, and the MYRIAD issue I will mention later will happened with my NCS2.
...ANSWER
Answered 2022-Jan-05 at 11:49This issue (running YOLOv4 model with Object Detection Python Demo on MYRIAD device) is a known bug in OpenVINO 2021.4.752. Our developers are fixing it.
On the other hand, I’ve validated the YOLOv4 model using Object Detection C++ Demo and it is working fine. For now, please use Object Detection C++ Demo as an alternative demo.
QUESTION
Before I am using RTX2070 SUPER to run Pytorch Yolov4 and now my PC is changed to use RTX3060, ASUS KO GeForce RTX™ 3060 OC.
I have deleted the existing cuda11.2 and install again with cuda11.4 and Nvidia Driver 470.57.02
...ANSWER
Answered 2021-Dec-15 at 08:32Solved by reinstalling the pytorch in my Conda Env.
You may try reinstalling the Pytorch or create a new Conda Environment to do it again.
QUESTION
I trained a model with yolov4. The inference is perfect and so are the metrics. I converted the model to tensorflow lite to be able to use it on android. I would like to view the accuracy, precision and recall values of the converted model. How can I do?
...ANSWER
Answered 2021-Nov-30 at 00:25There is no direct API that can be used to measure the accuracy, precision, and recall of the tflite model on Android, but you can always create a TfLite Interpreter instance from the TfLite flatbuffer model, run inference on the testing data, and measure the accuracy/precision/recall on your own.
Here is the link to the official TensorFlow Lite Colab with Java/Android sample code: https://www.tensorflow.org/lite/examples/on_device_training/overview#run_inference_using_trained_weights.
The Java code snippet shows how to create an interpreter instance and run inference on the test data. Once the list of predicted labels is comprised, you can compare it with the list of true labels and come up with precision/recall after computing True/False Positives/Negatives.
QUESTION
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 libraries have MIT license and can be used for educational/commercial purposes, is that correct?
Also, what works better on Rpi 4 with tensorflow lite, is it YOLOv4 or YOLOv4 Tiny or something else?
Thank you.
...ANSWER
Answered 2021-Nov-13 at 00:52I haven't tried by myself, but YOLOV4-TINY has a weight size around 16-24MB, that's similar to MobileNet float. I think that might be a better fit for small devices like RPi4. Could you give it a try and let us know if it works? :)
As far as I know these libraries have MIT license and can be used for educational/commercial purposes, is that correct?
TensorFlow and TensorFlow Lite are under Apache License. You can certainly use it for educational and commercial purposes.
QUESTION
I am working with YOLOv4 for detection through IP Camera. I have a GUI for camera control. So I don't want the camera frame to show the detected objects. However, I want the detected objects and the percentage to be shown in the Command Prompt console. Is it possible to make that? If yes, please suggest the way. Thank You
...ANSWER
Answered 2021-Nov-14 at 23:57Add -dont_show
after the command
QUESTION
I have done the model training for Yolov4 objection detection from AlexeyAB Darknet package on Colab. (from https://github.com/AlexeyAB/darknet) Two classes are defined named "scratch" and "blood". Then run the following commands for testing on a single image:
!./darknet detector test data/obj.data cfg/yolo-obj.cfg backup/yolo-object_last.weights images/meat/test/376.jpg -dont show
and the result is shown below. It's expected that there are only one scratch and blood shown with probabilities in the result. However, it shows so many scratch and blood predictions (the last few lines of this post)! The number of classes (=2), class names, and shoud have been set properly in obj.data and yolo-obj.cfg. Can anyone advice why and how to resolve it?
...ANSWER
Answered 2021-Oct-24 at 22:10This is normal behaviour.
You are "always" going to get a lot of detections. But you can also see that some of your detections are below the 50% confidence score. Which should be discarded.
I think the pipeline already performs Non-maximum suppression (NMS) to remove duplicates and overlapping detections (not sure), but you can additionally set up confidence score threshold as well, to show only above 50% with -thresh 0.5
This will give you final expected results. Still, if you continue to obtain more than you should, well, this is the goal of everyone :)
It's all about hyperparameter tuning and more data to train our models to give our desired outcome.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install YOLOv4
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page