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

[doc] Documentation fixes

parent 6a1b4d66
No related branches found
No related tags found
1 merge request!12Adds grad-cam support on classifiers
......@@ -285,6 +285,7 @@ def _compute_binary_mask(
the value False everywhere except at the positions inside
the bounding boxes, which will be True.
"""
binary_mask = numpy.zeros_like(saliency_map, dtype=numpy.bool_)
for bbox in gt_bboxes:
binary_mask[
......
......@@ -79,7 +79,7 @@ logger = setup(__name__.split(".")[0], format="%(levelname)s: %(message)s")
@click.option(
"--threshold",
"-t",
help="""The pixel values above ``threshold``% of max value are kept in the
help="""The pixel values above ``threshold`` % of max value are kept in the
original saliency map. Everything else is set to zero. The value proposed
on [SCORECAM-2020]_ is 0.2. Use this value if unsure.""",
show_default=True,
......
......@@ -16,7 +16,7 @@ logger = setup(__name__.split(".")[0], format="%(levelname)s: %(message)s")
def reusable_options(f):
"""Options that can be re-used by top-level scripts (i.e. ``experiment```).
"""Options that can be re-used by top-level scripts (i.e. ``experiment``).
This decorator equips the target function ``f`` with all (reusable)
``train`` script options.
......
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