Project 3 part 2"Mask / No mask", trained with Darknet and Yolov4.cfg
Video output from test-video1 with standard darknet rectangles:
Video output from test-video1.mp4:
Video output from test-video1 with standard darknet rectangles:
Video output from test-video1.mp4:
https://www.youtube.com/watch?v=42iEsn5D5JI&feature=youtu.be
Task 2: Train the object detector using Yolo v4 [30 Marks]
You should repeat the above experiment
using the Yolo v4 architecture and model.
HINT:
1. You need to change Step 6 along with
the above changes. You can use the following link as a reference for
training the model using Yolo v4 architecture and pre-trained model.
I wrote a notebook with the basic pipeline for train a yolov4 cnn with Darknet in Google colab, this are the steps:
1.- I
created a folder in Google drive to upload the test files.
2.- Mount a
google drive and check its files.
10.- Object detection with the test images. ...OOPS!
Unsuccesfully I tried to install a version of OpenCV newer than 4.1.2 in Google Colab, I didn't get the trick.
I know that OpenCV 4.3.0 supports "activation: swish" that is almost like "activation: mish", I also tried that here after I modified "yolov4_testingb.cfg".
OpenCV 4.4.0 supports "activation: mish" in function 'ReadDarknetFromCfgStream', Then I run the tests yolov4 with OpenCV 4.4.0 in my own system, here are the outputs.
I found that yolov4 takes longer to train, but is faster and more precise than yolov3.
10.- Object detection with the test images.
No hay comentarios:
Publicar un comentario