You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AssertionError: Tensor-likes are not equal!
Mismatched elements: 165091589 / 186624000 (88.5%)
Greatest absolute difference: 48 at index (6, 0, 189, 236)
Greatest relative difference: inf at index (0, 2, 8, 4)
Looking at the decoded frames, they look very similar but the colors are a bit different. So it seems to be a color issue, not an indexing or seeking issue. Example frames (cpu left, gpu right):
Note that it's unlikely to be related or caused by #413, because I'm observing the exact same differences when reverting that commit.
Thanks again @pjs102793 for the initial report. Do you have any intuition on what might be causing those differences on this specific video? From what I understand, you didn't notice major difference either on other videos, right?
The text was updated successfully, but these errors were encountered:
Yes, the videos I have, encoded in H.264 with YUV420p, don’t seem to have any issues. I even tested with the Big Buck Bunny video, and it worked fine. The issue appears to occur only with testsrc2. I’m not entirely certain, but it could possibly be related to testsrc2 having its colorspace marked as unknown.
Additionally, when I compared the values between torchaudio on GPU and torchcodec on CPU, the differences were minimal. However, the difference between torchaudio on GPU and torchcodec on GPU was comparable to the difference between torchcodec on CPU and GPU. This suggests that under certain conditions, it’s possible that torchcodec on GPU might produce slightly different colors.
From @pjs102793's #424 (comment)
to generate sample video:
ffmpeg -f lavfi -i testsrc2=size=1920x1080:rate=30 -t 1 testsrc2.mp4
On main b0de666
Repro:
We're getting pretty high atol differences:
Looking at the decoded frames, they look very similar but the colors are a bit different. So it seems to be a color issue, not an indexing or seeking issue. Example frames (cpu left, gpu right):
Note that it's unlikely to be related or caused by #413, because I'm observing the exact same differences when reverting that commit.
Thanks again @pjs102793 for the initial report. Do you have any intuition on what might be causing those differences on this specific video? From what I understand, you didn't notice major difference either on other videos, right?
The text was updated successfully, but these errors were encountered: