From 5c728e7ff1b903dfdcba79f6adc39e40c3a9c2f8 Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 17 Jan 2023 21:10:49 +0000 Subject: [PATCH] Allow edit transposes again, there doesn't seem to be a good reason to prevent it and I'm not sure it can even happen in practice --- transcoder/make_data_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder/make_data_tables.py b/transcoder/make_data_tables.py index bb438b2..a539f5c 100644 --- a/transcoder/make_data_tables.py +++ b/transcoder/make_data_tables.py @@ -39,7 +39,7 @@ class EditDistanceParams: # Smallest substitution value is ~20 from palette.diff_matrices, i.e. # we always prefer to transpose 2 pixels rather than substituting colours. # TODO: is quality really better allowing transposes? - transpose_costs = np.ones((128, 128), dtype=np.float64) * 100000 # 10 + transpose_costs = np.ones((128, 128), dtype=np.float64) # These will be filled in later substitute_costs = np.zeros((128, 128), dtype=np.float64)