-
Notifications
You must be signed in to change notification settings - Fork 161
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
VideoReader bug when decoding last frames on CUDA #135
Comments
Oh, sorry. I forgot to add text of the error. The error in
It's also can be helpful that decord version=0.4.0 to 0.4.2 just freezes in same test. The error in
|
Dear @innerlee & @zhreshold, |
@ahkarami sorry I can't reproduce the error on cpu. @hexfaker I tried the gist but it fails to compile due to missing
This is probably due to the retrying logic not suitable for async gpu decoding, I will dig into it and will update it here later |
also has this erorr. It happens when I use torch DataLoader and inside torch Dataset invoke VideoReader |
Fixed in #140, let me know if the error persists after this PR |
Hello.
I found potentially buggy decoding behavior on CUDA. It seems that when calling VideoReader.get_batch() with indices from the end of the video multiple times sometimes decord fails to do it properly. I created a gist with dockerfile and minimal code to reproduce the issue (
test_video_get_batch_last_frames_gpu
function). It fails not every time, but in 90% cases on one of the machines I tested and in 50% cases on another.Both have nvidia driver 455 and 1080Ti GPU. I also tested other older versions (up to 0.4.0) and cuda 11.1, and it reproduces everywhere.
Also, I accidentally found that one of your tests is also failing in the setup I provided, so I put it in my gist too (
test_bytes_io
function)The text was updated successfully, but these errors were encountered: