Skip to content

Commit

Permalink
Upgrade oracles for cvat 2.25
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Jan 14, 2025
1 parent 523a279 commit 358718e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/examples/cvat/exchange-oracle/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/examples/cvat/exchange-oracle/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sqlalchemy-utils = "^0.41.1"
alembic = "^1.11.1"
httpx = "^0.24.1"
pytest = "^7.2.2"
cvat-sdk = "^2.23.1"
cvat-sdk = "2.25.0"
sqlalchemy = "^2.0.16"
apscheduler = "^3.10.1"
xmltodict = "^0.13.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/examples/cvat/exchange-oracle/src/cvat/api_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def update_quality_control_settings(
iou_threshold: float = Config.cvat_config.iou_threshold,
oks_sigma: float | None = None,
point_size_base: str | None = None,
match_empty_frames: bool | None = None,
empty_is_annotated: bool | None = None,
) -> None:
logger = logging.getLogger("app")

Expand All @@ -750,8 +750,8 @@ def update_quality_control_settings(
if point_size_base is not None:
params["point_size_base"] = point_size_base

if match_empty_frames is not None:
params["match_empty_frames"] = match_empty_frames
if empty_is_annotated is not None:
params["empty_is_annotated"] = empty_is_annotated

with get_api_client() as api_client:
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _setup_quality_settings(self, task_id: int, **overrides) -> None:

values = {
"target_metric_threshold": self.manifest.validation.min_quality,
"match_empty_frames": True,
"empty_is_annotated": True,
}
values.update(**overrides)
cvat_api.update_quality_control_settings(settings.id, **values)
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/cvat/recording-oracle/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/examples/cvat/recording-oracle/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ datumaro = {git = "https://github.com/cvat-ai/datumaro.git", rev = "ff83c00c2c1b
human-protocol-sdk = ">=3.0.8,<3.1.0"
hexbytes = ">=1.2.0" # required for to_0x_hex() function
starlette = ">=0.40.0" # avoid the vulnerability with multipart/form-data
cvat-sdk = "^2.23.1"
cvat-sdk = "2.25.0"
cryptography = "<44.0.0" # human-protocol-sdk -> pgpy dep requires cryptography < 45

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 358718e

Please sign in to comment.