Skip to content

Commit 4b73e06

Browse files
authored
Merge branch 'releases/1.4.0' into infra/update-for-release-1.4.0
2 parents a572645 + efed624 commit 4b73e06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/otx/algorithms/detection/adapters/openvino/task.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _async_callback(self, request: Any, callback_args: tuple) -> None:
164164
else:
165165
features = (
166166
copy.deepcopy(prediction["feature_vector"].reshape(-1)),
167-
copy.deepcopy(prediction["saliency_map"][0]),
167+
self.get_saliency_map(prediction, preprocessing_meta),
168168
)
169169

170170
result_handler(id, processed_prediciton, features)

src/otx/cli/utils/importing.py

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
import json
2121
import os
2222

23+
# TODO: To avoid error during importing yapf dynamically. After the bug is fixed, code should be removed.
24+
try:
25+
import yapf # noqa: F401
26+
except ImportError:
27+
pass
28+
2329
# pylint: disable=protected-access
2430

2531
SUPPORTED_BACKBONE_BACKENDS = {

0 commit comments

Comments
 (0)