Run yolov4 "for the time being" on windows

This page describes the tutorial of yolo-v4, up to the inference of the famous dog.ipg. os uses windows. Also, because I am not good at English, I may be taking unnecessary steps. If you are interested, please go to https://github.com/AlexeyAB/darknet and go by yourself. dog.jpg ↓↓↓ dog.jpg

at first

It is assumed that basic things such as opencv and visual studio are done. If you haven't done it, check it out, the procedure is the same as up to v3.

Clone from git

Clone by typing the following command at the location where you want to build the darknet.

git clone https://github.com/AlexeyAB/darknet

do cmake

Go to the build in the darknet folder you cloned earlier and do cmake. The code below.

cd build
cmake ..

If cmake doesn't recognize it as a command, start by doing cmake. cmake is easy, so do your best to build it.

Build

There is a second darknet under the build folder, so it's in it

We will build these three using visual studio. I think there is a file with no_gpu, but I haven't touched it so I don't know what will happen. As you can guess from the name, it will switch to cpu (-_-;) I will do it with gpu, so I will do it as gpu.

How to build each .sln

Take darknet.sln as an example. You can do the other two in the same way. If you open darknet.sln with vs, you will see a screen like this. 無題_LI.jpg procedure

After doing the above, if darknet.exe is created under x64, it is successful.

The above is made. At this point, it's almost over.

Try to infer

Execute the following command in the x64 folder.

python darknet.py

This command infers the default dog.jpg. result image.png You will get results like this. I haven't made a correspondence table, so it's only bbox. If you want to do another image, you can do it by editing darknet.py.

After this

I want to let you learn, and I want to do this as well, so I will write if the number of articles does not increase when the learning is completed.

Impressions

It was difficult because there were few articles in Japanese (; ^ _ ^ A) I want to be able to study properly. I'm not good at English, so it's barely made, so the credibility is tattered (laughs), but if you are interested, please go by yourself from github. I feel like I'm doing a lot of things I don't need. I'm sorry it's hard to read m (_ _ "m)

Recommended Posts

Run yolov4 "for the time being" on windows
Run with CentOS7 + Apache2.4 + Python3.6 for the time being
Until you run a Flask application on Google App Engine for the time being
Python Master RTA for the time being
For the time being, import them into jupyter
Make a histogram for the time being (matplotlib)
Use logger with Python for the time being
I played with Floydhub for the time being
Try using LINE Notify for the time being
virtualenv For the time being, this is all!
I tried Python on Mac for the first time.
Flow memo to move LOCUST for the time being
Molecular dynamics simulation to try for the time being
I tried python on heroku for the first time
I will install Arch Linux for the time being.
Next to Excel, for the time being, jupyter notebook
Kaggle for the first time (kaggle ①)
Run Jupyter on Ubuntu on Windows
Run Openpose on Python (Windows)
F2py on Miniconda for Windows
Kaguru for the first time
Run Jupyter Notebook on windows
Until you can install blender and run it with python for the time being
I want to move selenium for the time being [for mac]
[Introduction to Reinforcement Learning] Reinforcement learning to try moving for the time being
For the time being, try using the docomo chat dialogue API
I want to create a Dockerfile for the time being.
I want to use the Ubuntu desktop environment on Android for the time being (Termux version)
I want to use Ubuntu's desktop environment on Android for the time being (UserLAnd version)
Run Tensorflow natively supported on windows
Run SwitchBot on Windows 10 with Bleak
[For self-learning] Go2 for the first time
See python for the first time
Run XGBoost on Bash on Ubuntu on Windows
Start Django for the first time
pykintone on Windows Subsystem for Linux
Java programmer tried to touch Go language (for the time being)
Understanding the python class Struggle (1) Let's move it for the time being
Challenge image classification by TensorFlow2 + Keras 1-Move for the time being-
Let's touch Google's Vision API from Python for the time being
For the time being, I want to convert files with ffmpeg !!
Try using FireBase Cloud Firestore in Python for the time being
Notes for using OpenCV on Windows10 Python 3.8.3.
Run Radeon GPU on Windows on QEMU / KVM
Randomly play the movie on ChromeCast for a certain period of time
Run servo with Python on ESP32 (Windows)
I tried tensorflow for the first time
Challenge image classification with TensorFlow2 + Keras CNN 1 ~ Move for the time being ~
Programming environment for beginners made on Windows
[Python] [Machine learning] Beginners without any knowledge try machine learning for the time being
[Note] Procedures for installing Ubuntu on Windows 10
I measured the run queue wait time of a process on Linux
MongoDB for the first time in Python
Run py.test on Windows Anaconda and MinGW
Let's try Linux for the first time
I want to use Ubuntu's desktop environment on Android for the time being (Termux version-Japanese input in desktop environment)
For the time being, the one who creates a homepage with Django at the speed of a second and publishes it on Heroku (Windows compatible)
For the time being using FastAPI, I want to display how to use API like that on swagger
Run matplotlib on a Windows Docker container
Rock-paper-scissors with Python Let's run on a Windows local server for beginners
Building an environment for "Tello_Video" on Windows