Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release 1.4.0] XAI: Return saliency maps for Mask RCNN IR async infer #2395

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/otx/algorithms/detection/adapters/openvino/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _async_callback(self, request: Any, callback_args: tuple) -> None:
else:
features = (
copy.deepcopy(prediction["feature_vector"].reshape(-1)),
copy.deepcopy(prediction["saliency_map"][0]),
self.get_saliency_map(prediction, preprocessing_meta),
)

result_handler(id, processed_prediciton, features)
Expand Down
6 changes: 6 additions & 0 deletions src/otx/cli/utils/importing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
import json
import os

# TODO: To avoid error during importing yapf dynamically. After the bug is fixed, code should be removed.
try:
import yapf # noqa: F401
except ImportError:
pass

# pylint: disable=protected-access

SUPPORTED_BACKBONE_BACKENDS = {
Expand Down