Closed Boipisigre closed 1 year ago
Hi @Boipisigre, Thanks for reaching out. Would you please share which steps you have taken and what error did you get? Thanks, Tamara
Hi I would like calculate the ssimulacra score between the same picture in png ( original ) with the jxl picture.
Here is a file with the same image in png jxl and avif Scrcpy.tar.gz
when i try to execute ssimulacra2 with this image i have this message.
~/src/ssimulacra2/build/ssimulacra2 Scrcpy.png Scrcpy.jxl /home/pboizot/src/ssimulacra2/src/lib/extras/dec/color_hints.cc:54: No color_space/icc_pathname given, assuming sRGB /home/pboizot/src/ssimulacra2/src/lib/extras/dec/decode.cc:120: JXL_FAILURE: Codecs failed to decode /home/pboizot/src/ssimulacra2/src/lib/extras/codec.cc:49: JXL_FAILURE: Codecs failed to decode /home/pboizot/src/ssimulacra2/src/lib/extras/codec.cc:57: JXL_RETURN_IF_ERROR code=1: SetFromBytes(Span
(encoded), color_hints, io, pool, orig_codec) /home/pboizot/src/ssimulacra2/src/ssimulacra2_main.cc:53: JXL_CHECK: SetFromFile(argv[2], jxl::extras::ColorHints(), &io2) Instruction non permise
Hummm I just understand that the SSimulacra score is calculated between two PNG pictures.
So I converted jxl picture to PNG ;-)
I have my score 👍🏿 I do not read that in readme a small explanation will be good.
Good work
Hi Could you give us the list of codecs we can use?
webp, avif , gif, jxl seem do not work.
Thank
Currently it should work for png, jpeg, ppm (assumed to be sRGB), and pgx. In the future (once https://github.com/libjxl/libjxl/pull/2444 is merged) it will also work for jxl input.
I have the same errors with png
/opt # dssim ./input/parrots.png ./output/parrots.s8.q44.png
0.00865207 ./output/parrots.s8.q44.png
/opt # ssimulacra2 ./input/parrots.png ./output/parrots.s8.q44.png
/opt/ssimulacra2/src/lib/extras/dec/decode.cc:120: JXL_FAILURE: Codecs failed to decode
/opt/ssimulacra2/src/lib/extras/codec.cc:49: JXL_FAILURE: Codecs failed to decode
/opt/ssimulacra2/src/lib/extras/codec.cc:57: JXL_RETURN_IF_ERROR code=1: SetFromBytes(Span<const uint8_t>(encoded), color_hints, io, pool, orig_codec)
Could not load original image: ./input/parrots.png
It turns out I didn't have libpng-dev installed. Sorry. Error message is not intuitive.
Hi I build ssimulcra2 on debian 12 RC, without problem.
But when i try to execute ssimulacra2 give these errors.
I send you the picture in png , avif or jxl . regards