You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/user-guide.md
+44-37
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ explanation = explainer(
137
137
)
138
138
139
139
# Save saliency maps
140
-
explanation.save("output_path", "name")
140
+
explanation.save("output_path", "name_")
141
141
```
142
142
143
143
### Specifying `preprocess_fn`
@@ -184,7 +184,7 @@ explanation = explainer(
184
184
)
185
185
186
186
# Save saliency maps
187
-
explanation.save("output_path", "name")
187
+
explanation.save("output_path", "name_")
188
188
```
189
189
190
190
@@ -242,7 +242,7 @@ explanation = explainer(
242
242
)
243
243
244
244
# Save saliency maps
245
-
explanation.save("output_path", "name")
245
+
explanation.save("output_path", "name_")
246
246
```
247
247
248
248
@@ -298,7 +298,7 @@ explanation = explainer(
298
298
)
299
299
300
300
# Save saliency maps
301
-
explanation.save("output_path", "name")
301
+
explanation.save("output_path", "name_")
302
302
303
303
```
304
304
@@ -333,16 +333,16 @@ model_xai = xai.insert_xai(
333
333
334
334
## Saving saliency maps
335
335
336
-
You can easily save saliency maps with flexible naming options, including image name as prefix, so saliency maps from the same image will start the same, target prefix, terget suffix.
336
+
You can easily save saliency maps with flexible naming options by using a `prefix` and `postfix`. The `prefix` allows saliency maps from the same image to have consistent naming.
337
337
338
-
For the name `image_name_target_aeroplane.jpg`:
339
-
- image_name_prefix = `image_name`,
340
-
- target_prefix = `target`,
341
-
- label name = `aeroplane`,
342
-
- target_suffix = ``.
338
+
The format for naming is:
339
+
340
+
`{prefix} + target_id + {postfix}.jpg`
343
341
344
342
Additionally, you can include the confidence score for each class in the saved saliency map's name.
0 commit comments