YOLOv4 | Port of YOLOv4 to C # TensorFlow | Machine Learning library

 by   losttech C# Version: Current License: MIT

kandi X-RAY | YOLOv4 Summary

kandi X-RAY | YOLOv4 Summary

YOLOv4 is a C# library typically used in Artificial Intelligence, Machine Learning, Tensorflow applications. YOLOv4 has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

*NOTICE: This is a port of YOLOv4 Implemented in Tensorflow 1.15.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              YOLOv4 has a low active ecosystem.
              It has 6 star(s) with 2 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              YOLOv4 has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of YOLOv4 is current.

            kandi-Quality Quality

              YOLOv4 has 0 bugs and 0 code smells.

            kandi-Security Security

              YOLOv4 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              YOLOv4 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              YOLOv4 is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              YOLOv4 releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of YOLOv4
            Get all kandi verified functions for this library.

            YOLOv4 Key Features

            No Key Features are available at this moment for YOLOv4.

            YOLOv4 Examples and Code Snippets

            No Code Snippets are available at this moment for YOLOv4.

            Community Discussions

            QUESTION

            How to Continue Training from the last acquired best weights?
            Asked 2022-Apr-03 at 06:36

            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:36

            According 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;

            Source https://stackoverflow.com/questions/71691835

            QUESTION

            Determine if certain parts of an RGB image are colored or grayscale using numpy
            Asked 2022-Jan-14 at 06:35

            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:06

            How 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.

            Source https://stackoverflow.com/questions/70608915

            QUESTION

            OpenVINO MULTI:MYRIAD with sequential inference is inefficiency and usually shows "XLink_sem_wait:94" and "XLinkResetRemote:257" logs
            Asked 2022-Jan-13 at 02:25

            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:25

            The 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:

            Source https://stackoverflow.com/questions/70639620

            QUESTION

            OpenVINO cannot install OpenCV by executing with PowerShell in Windows 7 OS
            Asked 2022-Jan-12 at 05:21

            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:21

            The 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.

            Source https://stackoverflow.com/questions/70660408

            QUESTION

            OpenVINO YOLOv4 inference device didn't appear after reboot with MYRIAD but could work with CPU
            Asked 2022-Jan-05 at 11:49

            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:49

            This 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.

            Source https://stackoverflow.com/questions/70553690

            QUESTION

            RTX3060 cannot run Pytorch Yolov4 with cuda11.4
            Asked 2021-Dec-15 at 08:32

            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:32

            Solved by reinstalling the pytorch in my Conda Env.

            You may try reinstalling the Pytorch or create a new Conda Environment to do it again.

            Source https://stackoverflow.com/questions/68857035

            QUESTION

            Accuracy, precision and recall of a tflite model
            Asked 2021-Dec-02 at 00:51

            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:25

            There 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.

            Source https://stackoverflow.com/questions/70157391

            QUESTION

            Raspberry Pi 4 (8 GB) with YOLOV4/YOLOV4-TINY using Tensorflow-lite?
            Asked 2021-Nov-16 at 00:45

            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:52

            I 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.

            Source https://stackoverflow.com/questions/69935469

            QUESTION

            Is it possible to remove camera frame but still continue detection in command prompt console?
            Asked 2021-Nov-14 at 23:57

            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:57

            Add -dont_show after the command

            Source https://stackoverflow.com/questions/69939734

            QUESTION

            Extra class prediction result shown when testing on AlexeyAB Yolov4 Darknet package on Colab
            Asked 2021-Oct-24 at 22:10

            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:10

            This 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.

            Source https://stackoverflow.com/questions/69688505

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install YOLOv4

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/losttech/YOLOv4.git

          • CLI

            gh repo clone losttech/YOLOv4

          • sshUrl

            git@github.com:losttech/YOLOv4.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link