Skip to content

Commit

Permalink
fix isort
Browse files Browse the repository at this point in the history
  • Loading branch information
negvet committed Jun 11, 2024
1 parent b9d80b8 commit fb5b85f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion openvino_xai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"""


from .api.api import insert_xai
from .common.parameters import Method, Task
from .explainer.explainer import Explainer
from .api.api import insert_xai

__all__ = ["Explainer", "insert_xai", "Method", "Task"]
5 changes: 2 additions & 3 deletions openvino_xai/api/api.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import openvino.runtime as ov

from openvino_xai import Task
from openvino_xai.common.utils import IdentityPreprocessFN, has_xai, logger
from openvino_xai.inserter.parameters import InsertionParameters

import openvino.runtime as ov

from openvino_xai.methods.factory import WhiteBoxMethodFactory


Expand Down
4 changes: 1 addition & 3 deletions openvino_xai/inserter/inserter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import openvino.runtime as ov
from openvino.preprocess import PrePostProcessor

from openvino_xai.common.utils import (
SALIENCY_MAP_OUTPUT_NAME,
)
from openvino_xai.common.utils import SALIENCY_MAP_OUTPUT_NAME


def insert_xai_branch_into_model(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/common/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import openvino.runtime as ov

from openvino_xai.api.api import insert_xai
from openvino_xai.common.parameters import Task
from openvino_xai.common.utils import has_xai, retrieve_otx_model
from openvino_xai.api.api import insert_xai
from tests.integration.test_classification import DEFAULT_CLS_MODEL

DARA_DIR = Path(".data")
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/explanation/test_explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import openvino.runtime as ov
import pytest

from openvino_xai.api.api import insert_xai
from openvino_xai.common.parameters import Task
from openvino_xai.common.utils import retrieve_otx_model
from openvino_xai.explainer.explainer import Explainer
Expand All @@ -16,7 +17,6 @@
TargetExplainGroup,
)
from openvino_xai.explainer.utils import get_postprocess_fn, get_preprocess_fn
from openvino_xai.api.api import insert_xai
from openvino_xai.inserter.parameters import ClassificationInsertionParameters
from tests.unit.explanation.test_explanation_utils import VOC_NAMES

Expand Down

0 comments on commit fb5b85f

Please sign in to comment.