Skip to content
Snippets Groups Projects
Commit 777f9017 authored by Daniel CARRON's avatar Daniel CARRON :b:
Browse files

[saliency.view] Properly get image from sample data

parent ba1abb3b
No related branches found
No related tags found
2 merge requests!58Make classification sample data into a dict and use tv_tensors,!46Create common library
......@@ -199,7 +199,7 @@ def run(
# not the case.
name = str(sample[1]["name"][0])
label = int(sample[1]["target"].item())
data = sample[0][0]
data = sample[0]["image"][0]
if label != target_label:
# no visualisation was generated
......
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