Skip to content
Snippets Groups Projects
Unverified Commit 787789c6 authored by Michael Paniagua's avatar Michael Paniagua Committed by GitHub
Browse files

Remove broken metric map saving feature

I believe this should have been done by 986af675
parent 07d8e2ca
No related branches found
No related tags found
No related merge requests found
......@@ -267,9 +267,4 @@ def compute_error(metric, img, ref, metric_map_filename=None):
if len(metric_map.shape) == 3:
metric_map = np.mean(metric_map, axis=2)
mean = np.mean(metric_map)
if metric_map_filename:
if not metric_map_filename.suffix.lower() == ".exr":
index_map = np.clip(255.0 * np.squeeze(metric_map), 0, 255)
metric_map = flip.utils.CHWtoHWC(flip.utils.index2color(index_map, flip.utils.get_magma_map()))
exr.write(data=metric_map, filename=str(metric_map_filename))
return mean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment