Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
negvet committed Aug 19, 2024
1 parent c08c5c4 commit c02021f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvino_xai/methods/black_box/aise.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from abc import ABC, abstractmethod
from typing import Callable, Dict, List, Mapping, Tuple


import numpy as np
import openvino.runtime as ov
from openvino.runtime.utils.data_helpers.wrappers import OVDict
from scipy.optimize import Bounds, direct

from openvino_xai.common.parameters import Task
Expand Down Expand Up @@ -280,7 +280,7 @@ class AISEDetection(AISEBase):
AISE for detection models.
postprocess_fn expected to return three containers: boxes (format: [x1, y1, x2, y2]), scores, labels. Without batch dim.
:param model: OpenVINO model.
:type model: ov.Model
:param postprocess_fn: Post-processing function that extract scores from IR model output.
Expand Down
1 change: 1 addition & 0 deletions tests/unit/methods/black_box/test_black_box_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def postprocess_det_fn(x) -> np.ndarray:
# return x["boxes"][:, :4], x["boxes"][:, 4], x["labels"]
return x["boxes"][0][:, :4], x["boxes"][0][:, 4], x["labels"][0]


class TestAISEClassification(InputSampling):
@pytest.mark.parametrize("target_indices", [[0], [0, 1]])
def test_run(self, target_indices, fxt_data_root: Path):
Expand Down

0 comments on commit c02021f

Please sign in to comment.