Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
negvet committed Aug 29, 2024
1 parent 0084daf commit 7e946c3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
12 changes: 5 additions & 7 deletions openvino_xai/methods/black_box/aise/base.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import collections
import math
from openvino_xai.common.utils import IdentityPreprocessFN
from openvino_xai.methods.black_box.base import BlackBoxXAIMethod

from abc import ABC, abstractmethod
from typing import Callable, Dict, List, Mapping, Tuple

import numpy as np
import openvino.runtime as ov
from scipy.optimize import direct


import collections
from abc import ABC, abstractmethod
from typing import Callable, Dict, List, Mapping, Tuple
from openvino_xai.common.utils import IdentityPreprocessFN
from openvino_xai.methods.black_box.base import BlackBoxXAIMethod


class AISEBase(BlackBoxXAIMethod, ABC):
Expand Down
19 changes: 11 additions & 8 deletions openvino_xai/methods/black_box/aise/classification.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from openvino_xai.common.utils import IdentityPreprocessFN, infer_size_from_image, logger, scaling, sigmoid
from openvino_xai.methods.black_box.aise.base import GaussianPerturbationMask
from openvino_xai.methods.black_box.aise.base import AISEBase
from openvino_xai.methods.black_box.base import Preset

import collections
from typing import Callable, Dict, List, Tuple

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


import collections
from typing import Callable, Dict, List, Tuple
from openvino_xai.common.utils import (
IdentityPreprocessFN,
infer_size_from_image,
logger,
scaling,
sigmoid,
)
from openvino_xai.methods.black_box.aise.base import AISEBase, GaussianPerturbationMask
from openvino_xai.methods.black_box.base import Preset


class AISEClassification(AISEBase):
Expand Down
20 changes: 11 additions & 9 deletions openvino_xai/methods/black_box/aise/detection.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from openvino_xai.common.parameters import Task
from openvino_xai.common.utils import IdentityPreprocessFN, infer_size_from_image, logger, scaling
from openvino_xai.methods.black_box.aise.base import GaussianPerturbationMask
from openvino_xai.methods.black_box.aise.base import AISEBase
from openvino_xai.methods.black_box.base import Preset

import collections
from typing import Any, Callable, Dict, List, Tuple

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


import collections
from typing import Any, Callable, Dict, List, Tuple
from openvino_xai.common.parameters import Task
from openvino_xai.common.utils import (
IdentityPreprocessFN,
infer_size_from_image,
logger,
scaling,
)
from openvino_xai.methods.black_box.aise.base import AISEBase, GaussianPerturbationMask
from openvino_xai.methods.black_box.base import Preset


class AISEDetection(AISEBase):
Expand Down

0 comments on commit 7e946c3

Please sign in to comment.