[Reporting Bug] Expected String but got Blob Torchvision 0.15.2

import torchvision

img = torchvision.io.read_image('<path>.png', torchvision.io.ImageReadMode.RGB)

RuntimeError: isString() INTERNAL ASSERT FAILED as “lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h”:2289, please report a bug to PyTorch. Expected String but got Blob

torchvision.__version__
'0.15.2'
torch.__version__
'2.1.0+cu121'

From this post, installed libpng by running

sudo apt-get install libpng-dev

Thanks for reporting the issue. Could you create an issue on GitHub so that the code owners can track and fix it, please?

Sure. Just created the issue. Thank you.

Great, thank you! :slight_smile: