rise module

datumaro.components.algorithms.rise.flatmatvec(mat)[source]
datumaro.components.algorithms.rise.expand(array, axis=None)[source]
class datumaro.components.algorithms.rise.RISE(model, max_samples=None, mask_width=7, mask_height=7, prob=0.5, iou_thresh=0.9, nms_thresh=0.0, det_conf_thresh=0.0, batch_size=1)[source]

Bases: object

Implements RISE: Randomized Input Sampling for Explanation of Black-box Models algorithm See explanations at: https://arxiv.org/pdf/1806.07421.pdf

__init__(model, max_samples=None, mask_width=7, mask_height=7, prob=0.5, iou_thresh=0.9, nms_thresh=0.0, det_conf_thresh=0.0, batch_size=1)[source]
static split_outputs(annotations)[source]
normalize_hmaps(heatmaps, counts)[source]
apply(image, progressive=False)[source]