dmlc / gluon-cv

Gluon CV Toolkit
http://gluon-cv.mxnet.io
Apache License 2.0
5.82k stars 1.21k forks source link

Decord's documentation notebook reports misleading Decord vs OpenCV performance #1776

Closed ahmadsharif1 closed 5 months ago

ahmadsharif1 commented 9 months ago

Navigate to this webpage:

https://cv.gluon.ai/build/examples_action_recognition/decord_loader.html

I see this:

Out:

Decord takes 3.5792 seconds. OpenCV takes 0.0002 seconds.

We can see that Decord is 2x faster than OpenCV VideoCapture. We also compare with Pyav container and demonstrate 2x speed up as well.

Probably OpenCV is not actually doing any decoding in the loop, so the comparison is unfair. Still, it appears to be misleading to the user who is reading the website.

Screenshot 2024-01-02 at 12 26 33 PM

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.