forked from libjxl/bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_dumps.sh
More file actions
executable file
·37 lines (29 loc) · 1.98 KB
/
update_dumps.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -x
# Create a new virtual environment.
python3 -m venv .venv
# Activate the virtual environment.
source .venv/bin/activate
# Ensure the virtual environment is deactivated on exit.
trap deactivate EXIT
# Install the needed packages in the virtual environment.
pip install pypng numpy apng
# Test case corpus path
CORPUS=$1
# Results path
DUMP_PATH=$2
# Run conformance tests on all decoders
# djxl
python3 ./third_party/conformance/scripts/conformance.py --decoder "./third_party/libjxl/build/tools/djxl" --corpus $CORPUS --results=$DUMP_PATH/dump_djxl.json --lax
# djxl via png
python3 ./third_party/conformance/scripts/conformance.py --decoder "python3 scripts/wrap_png.py --decoder './third_party/libjxl/build/tools/djxl %s %s --bits_per_sample 16'" --corpus $CORPUS --results=$DUMP_PATH/dump_djxl_via_png.json --lax
# jxl-rs
python3 ./third_party/conformance/scripts/conformance.py --decoder "python3 scripts/wrap_jxl-rs.py --decoder ' third_party/jxl-rs/target/release/jxl_cli %s %s --icc-out %s'" --corpus $CORPUS --results=$DUMP_PATH/dump_jxl-rs.json --lax
# jxl-rs via png
python3 ./third_party/conformance/scripts/conformance.py --decoder "python3 scripts/wrap_png.py --decoder ' third_party/jxl-rs/target/release/jxl_cli %s %s '" --corpus $CORPUS --results=$DUMP_PATH/dump_jxl-rs_via_png.json --lax
# jxl-oxide
python3 ./third_party/conformance/scripts/conformance.py --decoder "python3 scripts/wrap_jxl_oxide.py --decoder 'jxl-oxide %s --icc-output %s -o %s -f npy'" --corpus $CORPUS --results=$DUMP_PATH/dump_jxl-oxide.json --lax
# jxlatte
python3 ./third_party/conformance/scripts/conformance.py --decoder "python3 scripts/wrap_png.py --decoder 'java -jar ./third_party/jxlatte/build/java/jxlatte.jar %s %s --png-depth=16'" --corpus $CORPUS --results=$DUMP_PATH/dump_jxlatte.json --lax
# j40
python3 ./third_party/conformance/scripts/conformance.py --decoder "python3 scripts/wrap_png.py --decoder './third_party/j40/dj40 %s %s'" --corpus $CORPUS --results=$DUMP_PATH/dump_j40.json --lax