Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
Code-Quality-Checks:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: CHECKOUT REPOSITORY
uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
with:
node-version: 22
- name: Install clang-format
run: sudo apt-get install -y clang-format-10
run: sudo apt-get install -y clang-format-13
- name: Install dependencies
run: pip install 'src/python/.[full]'
- name: Run pre-commit checks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-22.04, ubuntu-24.04]
python-version: [3.9, "3.10", "3.11"]
exclude:
- os: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ repos:
rev: v0.5.1
hooks:
- id: clang-format
args: [--style=file, --version=10]
args: [--style=file, --version=13]
7 changes: 6 additions & 1 deletion src/python/model_api/models/ssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ def __call__(self, outputs) -> DetectionResult:
bboxes = np.array(outputs[self.bboxes_layer][0])
scores = np.array(outputs[self.scores_layer][0])
labels = np.array(outputs[self.labels_layer][0])
return DetectionResult(bboxes, scores, labels)

return DetectionResult(
bboxes=bboxes,
labels=labels,
scores=scores,
)


class BoxesLabelsParser:
Expand Down
2 changes: 1 addition & 1 deletion src/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "openvino_model_api"
version = "0.3.0.1"
version = "0.3.0.2"
requires-python = ">=3.9"
authors = [
{name = "Intel(R) Corporation"},
Expand Down