-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparison of some models on CPU vs VPU (neurochip) vs GPU #5079
Comments
@AlexeyAB Hello, So currently EfficientNetB0-Yolo is the fastest model on VPU? |
@WongKinYiu Hi, Yes, it seems VPU (Intel Myriad X) is highly optimized for Grouped-convolutional and may be SE-blocks. I will test it more. Maybe with new Google-Coral-TPU-edge in general, the performance ratio will be the same as with Intel Myriad X. So maybe it makes sense to train GhostNet ghostnet.cfg.txt and |
@AlexeyAB Thanks, ghostnet now training 40k/800k iterations. |
@WongKinYiu Do you train ghostnet with CutMix+Mosaic+Label-smoothing? Also did we get improvement for any network with DropBlock? |
This is a fantastic resource, if at all possible, it'd be great to also see results for "batch=4" or similar. |
@AlexeyAB No, just ghostnet.cfg.txt your provided before. |
@WongKinYiu I also added https://github.com/AlexeyAB/darknet/blob/master/cfg/efficientnet-lite3.cfg that you can try to train with |
@AlexeyAB thanks, i am seeing the code of new commits. |
@AlexeyAB i set |
Hi @AlexeyAB |
@ShaneHsieh I added this information, so CPU uses FP32, VPU uses FP16, GPU uses FP32/16 (Tensor Cores). These devices use the lowest possible precision of floating point values with increasing speed and without loss of accuracy. |
Thank. |
what does the opencv-DLIE mean? |
OpenCV-DLIE (deep learning Inference Engine), supported by OpenVINO Toolkit. |
Yes, you can use opencv dnn module to run the models. But due to mish activation function and eliminate grid sensitivity not yet supported by opencv dnn module, you can not run yolov4 in this time. |
Does it support alexeyAB's version ?, I now only find the tensorflow's yolo version that OpenVINO support. |
for your reference opencv/opencv#16436 |
will you please give me a tutorial of how to deploy the cfg file to xml which OpenVINO supports? I see the question on the site |
Darknet is supported already. https://github.com/opencv/opencv/wiki/Deep-Learning-in-OpenCV |
@andeyeluguo For using Yolo with OpenVINO (on CPU, GPU, VPU, ...) you should
YOLOv4 will be supported for OpenCV+OpenVINO soon: opencv/opencv#17148 I added Yolo v2 to OpenCV 2.5 years ago: opencv/opencv#9705 |
Can these models also be run on NCS 2 using the OpenCV DNN module with IE backend? |
Current version of YOLOv4 is for Real-time on GPU. Later we will release YOLOv4-VPU for real-time >= 30 FPS on VPU. There are two ways to run YOLOv4 on MyriadX:
Right now, you can try to use a slightly simpler version of YOLOv4, which is 0.5% worse on VPU Intel MyriadX by using C++ with OpenVINO:
use
// actually should be 1.05, 1.1 and 1.2 for correspond [yolo] layers istead of 1.1
double x = (col + output_blob[box_index + 0 * side_square]*1.1 + (1 - 1.1)/2) / side * resized_im_w;
double y = (row + output_blob[box_index + 1 * side_square]*1.1 + (1 - 1.1)/2) / side * resized_im_h; |
I just tested |
OpenCV 4.4.0-pre compiled by self. OpenVino 2020.R3, Myriad. Input 416x416
|
YOLOv4-tiny released: #6067 |
Hi, Who has efficientnet-lite3.weights file, can you share it with me? |
batch=1 (sync-mode)
Accuracy and FPS:
The text was updated successfully, but these errors were encountered: