kornia / kornia-rs

Low-level Computer Vision library in Rust

Home Page:https://docs.rs/kornia-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Cannot open JPEG image

ternaus opened this issue · comments

  File "/mnt/evo850/workspace/imread_benchmark/imread_benchmark/benchmark.py", line 114, in kornia
    return K.read_image_jpeg(image_path)
FileExistsError: File is not a JPEG: /mnt/evo970/data/Imagenet1k/ILSVRC2015/Data/CLS-LOC/val/ILSVRC2012_val_00000001.JPEG

Image that Kornia-rs cannot open:

ILSVRC2012_val_00000001

Thanks to report, the current implementation expects image paths with the file extension in lower case. I’ll fix that soon