Open tchaton opened 1 year ago
How big are the differences? I would assume this comes from a different version of libjpeg (or libjpeg-turbo) being used by both machines. This is sort of expected: the jpeg specs are loose enough that two valid decoders will lead to small differences in decoded outputs.
Perhaps you can check what torchvision is linked against with ldd
/ otool -L
?
Hey @NicolasHug. Thanks for answering me :)
If this is expected, then all good ! I was just using the logic to assert the tensors would be the same before and after serialisation. This worked on Linux but not on Mac.
I will check it and come back to you.
It reminds me that we've been observing similar failures on our CI for a while... https://github.com/pytorch/vision/actions/runs/6418750616/job/17429710345
What is confusing is that from the logs, both macos and linux jobs are linked against libjpeg-turbo 8.0... Perhaps the differences are on libjpeg-turbo's side?
🐛 Describe the bug
I am really confused. I am running this code on linux based machine and my M1 Mac. I am getting different results.
I verified the result from torch.frombuffer is the same on both machine. However,
decode_jpeg
isn't.Versions