Skip to content

Commit f5b39b0

Browse files
committed
correct EOF
1 parent 64680bd commit f5b39b0

File tree

86 files changed

+1139
-1860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1139
-1860
lines changed

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@
2929
"database": "${workspaceFolder:cvat}/db.sqlite3"
3030
}
3131
],
32-
"python.analysis.exclude": [
33-
// VS Code defaults
34-
"**/node_modules",
35-
"**/__pycache__",
36-
".git",
37-
38-
"cvat-cli/build",
39-
"cvat-sdk/build",
40-
],
4132
"python.defaultInterpreterPath": "${workspaceFolder}/.env/",
4233
"python.testing.pytestArgs": [
4334
"--rootdir","${workspaceFolder}/tests/"

CHANGELOG.md

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8787
(<https://github.com/cvat-ai/cvat/pull/8586>)
8888

8989
- Tags in ground truth job couldn't be deleted via `x` button
90-
(<https://github.com/cvat-ai/cvat/pull/8586>)
90+
(<https://github.com/cvat-ai/cvat/pull/8586>)
9191

9292
- Exception 'Canvas is busy' when change frame during drag/resize a track
9393
(<https://github.com/cvat-ai/cvat/pull/8598>)
@@ -377,7 +377,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
377377
### Deprecated
378378

379379
- Client events `upload:annotations`, `lock:object`, `change:attribute`, `change:label`
380-
(<https://github.com/cvat-ai/cvat/pull/8304>)
380+
(<https://github.com/cvat-ai/cvat/pull/8304>)
381381

382382
### Removed
383383

@@ -404,8 +404,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
404404
(<https://github.com/cvat-ai/cvat/pull/8216>)
405405

406406
- Sometimes it is not possible to switch workspace because active control broken after
407-
trying to create a tag with a shortcut
408-
(<https://github.com/cvat-ai/cvat/pull/8334>)
407+
trying to create a tag with a shortcut (<https://github.com/cvat-ai/cvat/pull/8334>)
409408

410409
<a id='changelog-2.16.3'></a>
411410
## \[2.16.3\] - 2024-08-13
@@ -446,14 +445,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
446445
### Fixed
447446

448447
- Copy/paste annotation guide with assets did not work, showing the message
449-
**Asset is already related to another guide**
450-
(<https://github.com/cvat-ai/cvat/pull/7989>)
448+
**Asset is already related to another guide** (<https://github.com/cvat-ai/cvat/pull/7989>)
451449

452450
- Undo can't be done when a shape is rotated
453451
(<https://github.com/cvat-ai/cvat/pull/8129>)
454452

455453
- Exporting a skeleton track in a format defined for shapes raises error
456-
`operands could not be broadcast together with shapes (X, ) (Y, )`
454+
`operands could not be broadcast together with shapes (X, ) (Y, )`
457455
(<https://github.com/cvat-ai/cvat/pull/8179>)
458456

459457
- Delete label modal window does not have cancellation button
@@ -472,11 +470,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
472470
(<https://github.com/cvat-ai/cvat/pull/8206>)
473471

474472
- API call to run automatic annotations fails on a model with attributes
475-
when mapping not provided in the request
476-
(<https://github.com/cvat-ai/cvat/pull/8250>)
473+
when mapping not provided in the request (<https://github.com/cvat-ai/cvat/pull/8250>)
477474

478475
- Fixed a label collision issue where labels with similar prefixes
479-
and numeric suffixes could conflict, causing error on export.
476+
and numeric suffixes could conflict, causing error on export.
480477
(<https://github.com/cvat-ai/cvat/pull/8262>)
481478

482479
<a id='changelog-2.16.1'></a>
@@ -513,9 +510,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
513510
### Added
514511

515512
- Set of features to track background activities: importing/exporting datasets, annotations or backups, creating tasks.
516-
Now you may find these processes on Requests page, it allows a user to understand current status of these activities
517-
and enhances user experience, not losing progress when the browser tab is closed
518-
(<https://github.com/cvat-ai/cvat/pull/7537>)
513+
Now you may find these processes on Requests page, it allows a user to understand current status of these activities
514+
and enhances user experience, not losing progress when the browser tab is closed
515+
(<https://github.com/cvat-ai/cvat/pull/7537>)
519516

520517
- User now may update a job state from the corresponding task page
521518
(<https://github.com/cvat-ai/cvat/pull/8102>)
@@ -526,8 +523,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
526523
### Changed
527524

528525
- "Finish the job" button on annotation view now only sets state to 'completed'.
529-
The job stage keeps unchanged
530-
(<https://github.com/cvat-ai/cvat/pull/8102>)
526+
The job stage keeps unchanged (<https://github.com/cvat-ai/cvat/pull/8102>)
531527

532528
- Log files for individual backend processes are now stored in ephemeral
533529
storage of each backend container rather than in the `cvat_logs` volume
@@ -539,7 +535,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
539535
### Removed
540536

541537
- Renew the job button in annotation menu was removed
542-
(<https://github.com/cvat-ai/cvat/pull/8102>)
538+
(<https://github.com/cvat-ai/cvat/pull/8102>)
543539

544540
### Fixed
545541

@@ -587,12 +583,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
587583
(<https://github.com/cvat-ai/cvat/pull/8039>)
588584

589585
- Exception 'this.el.node.getScreenCTM() is null' occuring in Firefox when
590-
a user resizes window during skeleton dragging/resizing
591-
(<https://github.com/cvat-ai/cvat/pull/8067>)
586+
a user resizes window during skeleton dragging/resizing (<https://github.com/cvat-ai/cvat/pull/8067>)
592587

593588
- Exception 'Edge's nodeFrom M or nodeTo N do not to refer to any node'
594-
occuring when a user resizes window during skeleton dragging/resizing
595-
(<https://github.com/cvat-ai/cvat/pull/8067>)
589+
occuring when a user resizes window during skeleton dragging/resizing (<https://github.com/cvat-ai/cvat/pull/8067>)
596590

597591
- Slightly broken layout when running attributed face detection model
598592
(<https://github.com/cvat-ai/cvat/pull/8072>)
@@ -650,8 +644,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
650644
(<https://github.com/cvat-ai/cvat/pull/7997>)
651645

652646
- When use route `/auth/login-with-token/<token>` without `next` query parameter
653-
the page reloads infinitely
654-
(<https://github.com/cvat-ai/cvat/pull/7999>)
647+
the page reloads infinitely (<https://github.com/cvat-ai/cvat/pull/7999>)
655648

656649
- Fixed kvrocks port naming for istio
657650
(<https://github.com/cvat-ai/cvat/pull/8010>)
@@ -822,7 +815,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
822815
- Opening update CS page sends infinite requests when CS id does not exist
823816
(<https://github.com/cvat-ai/cvat/pull/7828>)
824817

825-
- Uploading files with TUS immediately failed when one of the requests failed
818+
Uploading files with TUS immediately failed when one of the requests failed
826819
(<https://github.com/cvat-ai/cvat/pull/7830>)
827820

828821
- Longer analytics report calculation because of inefficient requests to analytics db
@@ -992,7 +985,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
992985
(<https://github.com/opencv/cvat/pull/7604>)
993986

994987
- 90 deg-rotated video was added with "Prefer Zip Chunks" disabled
995-
was warped, fixed using the static cropImage function.
988+
was warped, fixed using the static cropImage function.
996989
(<https://github.com/opencv/cvat/pull/7583>)
997990

998991
<a id='changelog-2.11.2'></a>
@@ -1030,7 +1023,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10301023
### Added
10311024

10321025
- Single shape annotation mode allowing to easily annotate scenarious where a user
1033-
only needs to draw one object on one image (<https://github.com/opencv/cvat/pull/7486>)
1026+
only needs to draw one object on one image (<https://github.com/opencv/cvat/pull/7486>)
10341027

10351028
### Fixed
10361029

@@ -1158,7 +1151,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11581151
### Changed
11591152

11601153
- When the `ORG_INVITATION_CONFIRM` setting is enabled, organization invitations for existing users are no
1161-
longer accepted automatically. Instead, the invitee can now review the invitation and choose to accept or decline it.
1154+
longer accepted automatically. Instead, the invitee can now review the invitation and choose to accept or decline it.
11621155
(<https://github.com/opencv/cvat/pull/7138>)
11631156

11641157
- \[Compose, Helm\] Updated Clickhouse to version 23.11.*
@@ -1207,11 +1200,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12071200
(<https://github.com/opencv/cvat/pull/7299>)
12081201

12091202
- Error message `Edge's nodeFrom ${dataNodeFrom} or nodeTo ${dataNodeTo} do not to refer to any node`
1210-
when upload a file with some abscent skeleton nodes (<https://github.com/opencv/cvat/pull/7302>)
1203+
when upload a file with some abscent skeleton nodes (<https://github.com/opencv/cvat/pull/7302>)
12111204
- Wrong context menu position in skeleton configurator (Firefox only)
1212-
(<https://github.com/opencv/cvat/pull/7302>)
1205+
(<https://github.com/opencv/cvat/pull/7302>)
12131206
- Fixed console error `(Error: <rect> attribute width: A negative value is not valid`
1214-
appearing when skeleton with all outside elements is created (<https://github.com/opencv/cvat/pull/7302>)
1207+
appearing when skeleton with all outside elements is created (<https://github.com/opencv/cvat/pull/7302>)
12151208

12161209
- Updating cloud storage attached to CVAT using Azure connection string
12171210
(<https://github.com/opencv/cvat/pull/7336>)
@@ -1222,7 +1215,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12221215
### Added
12231216

12241217
- Introduced CVAT actions. Actions allow performing different
1225-
predefined scenarios on annotations automatically (e.g. shape converters)
1218+
predefined scenarios on annotations automatically (e.g. shape converters)
12261219
(<https://github.com/opencv/cvat/pull/7172>)
12271220

12281221
- The UI will now retry requests that were rejected due to rate limiting

components/serverless/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@
66
# From project root directory
77
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
88
```
9-
10-
### Own model for CVAT auto-annotation
11-
https://medium.com/@eng.fadishaar/automating-object-annotation-in-cvat-using-a-custom-yolov5-model-cfd36fb40a97

cvat-canvas/src/typescript/canvasView.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,9 +2877,6 @@ export class CanvasViewImpl implements CanvasView, Listener {
28772877
const shapeView = window.document.getElementById(`cvat_canvas_shape_${clientID}`);
28782878
if (shapeView) shapeView.classList.remove(this.getHighlightClassname());
28792879
});
2880-
const redrawMasks = (highlightedElements.elementsIDs.length !== 0 ||
2881-
this.highlightedElements.elementsIDs.length !== 0);
2882-
28832880
if (highlightedElements.elementsIDs.length) {
28842881
this.highlightedElements = { ...highlightedElements };
28852882
this.canvas.classList.add('cvat-canvas-highlight-enabled');
@@ -2894,11 +2891,9 @@ export class CanvasViewImpl implements CanvasView, Listener {
28942891
};
28952892
this.canvas.classList.remove('cvat-canvas-highlight-enabled');
28962893
}
2897-
if (redrawMasks) {
2898-
const masks = Object.values(this.drawnStates).filter((state) => state.shapeType === 'mask');
2899-
this.deleteObjects(masks);
2900-
this.addObjects(masks);
2901-
}
2894+
const masks = Object.values(this.drawnStates).filter((state) => state.shapeType === 'mask');
2895+
this.deleteObjects(masks);
2896+
this.addObjects(masks);
29022897
if (this.highlightedElements.elementsIDs.length) {
29032898
this.deactivate();
29042899
const clientID = this.highlightedElements.elementsIDs[0];

cvat-canvas/src/typescript/masksHandler.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,6 @@ export class MasksHandlerImpl implements MasksHandler {
404404
rle.push(wrappingBbox.left, wrappingBbox.top, wrappingBbox.right, wrappingBbox.bottom);
405405

406406
this.onDrawDone({
407-
occluded: this.drawData.initialState.occluded,
408-
attributes: { ...this.drawData.initialState.attributes },
409-
color: this.drawData.initialState.color,
410-
objectType: this.drawData.initialState.objectType,
411407
shapeType: this.drawData.shapeType,
412408
points: rle,
413409
label: this.drawData.initialState.label,

cvat-cli/requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
cvat-sdk~=2.22.1
1+
cvat-sdk~=2.22.0
22
Pillow>=10.3.0
33
setuptools>=70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability

cvat-cli/src/cvat_cli/_internal/commands.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@
2020
from cvat_sdk.core.proxies.tasks import ResourceType
2121

2222
from .command_base import CommandGroup
23-
from .parsers import (
24-
BuildDictAction,
25-
parse_function_parameter,
26-
parse_label_arg,
27-
parse_resource_type,
28-
parse_threshold,
29-
)
23+
from .parsers import BuildDictAction, parse_function_parameter, parse_label_arg, parse_resource_type
3024

3125
COMMANDS = CommandGroup(description="Perform common operations related to CVAT tasks.")
3226

@@ -469,19 +463,6 @@ def configure_parser(self, parser: argparse.ArgumentParser) -> None:
469463
help="Allow the function to declare labels not configured in the task",
470464
)
471465

472-
parser.add_argument(
473-
"--conf-threshold",
474-
type=parse_threshold,
475-
help="Confidence threshold for filtering detections",
476-
default=None,
477-
)
478-
479-
parser.add_argument(
480-
"--conv-mask-to-poly",
481-
action="store_true",
482-
help="Convert mask shapes to polygon shapes",
483-
)
484-
485466
def execute(
486467
self,
487468
client: Client,
@@ -492,8 +473,6 @@ def execute(
492473
function_parameters: dict[str, Any],
493474
clear_existing: bool = False,
494475
allow_unmatched_labels: bool = False,
495-
conf_threshold: Optional[float],
496-
conv_mask_to_poly: bool,
497476
) -> None:
498477
if function_module is not None:
499478
function = importlib.import_module(function_module)
@@ -518,6 +497,4 @@ def execute(
518497
pbar=DeferredTqdmProgressReporter(),
519498
clear_existing=clear_existing,
520499
allow_unmatched_labels=allow_unmatched_labels,
521-
conf_threshold=conf_threshold,
522-
conv_mask_to_poly=conv_mask_to_poly,
523500
)

cvat-cli/src/cvat_cli/_internal/parsers.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ def parse_function_parameter(s: str) -> tuple[str, Any]:
5353
return (key, value)
5454

5555

56-
def parse_threshold(s: str) -> float:
57-
try:
58-
value = float(s)
59-
except ValueError as e:
60-
raise argparse.ArgumentTypeError("must be a number") from e
61-
62-
if not 0 <= value <= 1:
63-
raise argparse.ArgumentTypeError("must be between 0 and 1")
64-
return value
65-
66-
6756
class BuildDictAction(argparse.Action):
6857
def __init__(self, option_strings, dest, default=None, **kwargs):
6958
super().__init__(option_strings, dest, default=default or {}, **kwargs)

cvat-cli/src/cvat_cli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "2.22.1"
1+
VERSION = "2.22.0"

cvat-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cvat-core",
3-
"version": "15.3.0",
3+
"version": "15.2.1",
44
"type": "module",
55
"description": "Part of Computer Vision Tool which presents an interface for client-side integration",
66
"main": "src/api.ts",

0 commit comments

Comments
 (0)