dmlc / decord

An efficient video loader for deep learning with smart shuffling that's super easy to digest
Apache License 2.0
1.86k stars 160 forks source link

[BUG] Inconsistent frame access with VideoReader #241

Open ptoews opened 1 year ago

ptoews commented 1 year ago

When using the VideoReader I get different frames for the same index. For example:

import decord

vr = decord.VideoReader("some_video.mkv")

print(vr[0] == vr[0])

This prints False. How is this possible?

zhaodongsun commented 1 year ago

You should first try to get numpy arrays and then compare them. They are equivalent in this way below.

np.all(vr[0].asnumpy()==vr[0].asnumpy())