Skip to content

Commit 5030c5a

Browse files
authored
Fix multiple output ssd parser (#274)
* Fix multiple output ssd parser * Bump version * Adapt workflows to ubuntu-20.04 brownout * Upd clang-format version * Upd clang ver in pre-commit config
1 parent b29f6e0 commit 5030c5a

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.github/workflows/pre_commit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
Code-Quality-Checks:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- name: CHECKOUT REPOSITORY
2121
uses: actions/checkout@v4
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
node-version: 22
3030
- name: Install clang-format
31-
run: sudo apt-get install -y clang-format-10
31+
run: sudo apt-get install -y clang-format-13
3232
- name: Install dependencies
3333
run: pip install 'src/python/.[full]'
3434
- name: Run pre-commit checks

.github/workflows/test_precommit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
strategy:
127127
fail-fast: false
128128
matrix:
129-
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
129+
os: [ubuntu-22.04, ubuntu-24.04]
130130
python-version: [3.9, "3.10", "3.11"]
131131
exclude:
132132
- os: ubuntu-24.04

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ repos:
4545
rev: v0.5.1
4646
hooks:
4747
- id: clang-format
48-
args: [--style=file, --version=10]
48+
args: [--style=file, --version=13]

src/python/model_api/models/ssd.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ def __call__(self, outputs) -> DetectionResult:
8787
bboxes = np.array(outputs[self.bboxes_layer][0])
8888
scores = np.array(outputs[self.scores_layer][0])
8989
labels = np.array(outputs[self.labels_layer][0])
90-
return DetectionResult(bboxes, scores, labels)
90+
91+
return DetectionResult(
92+
bboxes=bboxes,
93+
labels=labels,
94+
scores=scores,
95+
)
9196

9297

9398
class BoxesLabelsParser:

src/python/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99

1010
[project]
1111
name = "openvino_model_api"
12-
version = "0.3.0.1"
12+
version = "0.3.0.2"
1313
requires-python = ">=3.9"
1414
authors = [
1515
{name = "Intel(R) Corporation"},

0 commit comments

Comments
 (0)