Skip to content

Commit

Permalink
fix(XAI): replace separator chars with . for xai_decoder result savin…
Browse files Browse the repository at this point in the history
…g - fixes #169
  • Loading branch information
muellerdo committed Jul 28, 2022
1 parent 8417622 commit 81173d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aucmedi/xai/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def postprocess_output(sample, image, xai_map, n_classes, data_gen,
if data_gen.image_format:
xai_file = sample + "." + data_gen.image_format
else : xai_file = sample
if os.sep in xai_file : xai_file = xai_file.replace(os.sep, ".")
path_xai = os.path.join(out_path, xai_file)
# If preds given, output only argmax class heatmap
if len(xai_map.shape) == 2:
Expand Down

0 comments on commit 81173d3

Please sign in to comment.