Commit 569b641
[CVAT] Adapt exchange/recording oracles for honeypots (#2720)
* Update exchange oracle
* Add wait timeout when importing GT annotations
* Extract a base class for task creation
* Move gt setup into the base class
* Add draft implementation for points task creation
* [draft] Update recording oracle
* Upgrade cvat-sdk dep
* [Exchnage oracle] apply some comments && small fixes
* Refactor some code, fix errors
* Add quality settings setup
* Fix update quality settings
* Use inbound bbox circle radius for point validation
* Fix linter errors
* Fix quality settings update call
* Move common function to the base class
* Expect point group annotations in points annotation task
* Fix response check
* Improve formatting in the log message
* Use single shape mode for image_points task
* Refactor recording oracle updates
* [Recording oracle] update deps
* Update assignment urls for skeleton tasks
* Rename quality parameter
* Fix linter error
* [Ex oracle] Move gt dataset preparation into separate method for skeletons task
* [Ex oracle] update deps
* [Ex oracle] Improve handling oracle mode(dev/prod/test)
* [Ex oracle] Fix test
* [Recording oracle] Apply comments && small fixes && remove unused code
* [Exchnage oracle] Pass job start/stop frame from Ex oracle to Rec oracle
* Update recording oracle
* t
* [Exchange oracle] Fix tests
* [Exchange oracle] Add migration
* Fix test
* [Exchange oracle] mark job start/stop frame as not nullable
* Fix tests
* [Recording oracle] Clean up the code
* Update packages/examples/cvat/exchange-oracle/src/handlers/job_creation.py
Co-authored-by: Maxim Zhiltsov <[email protected]>
* [Recording oracle] Apply comments
* [Exchnage oracle] use_bbox_size_for_points -> point_size_base
* [Rec oracle] Use MT19937 generator
* [Exchange oracle] Move BoxesFromPointsTaskBuilder::_prepare_gt_roi_dataset before _extract_and_upload_rois
* [Exchange oracle] Fix checking which files should be uploaded to the ex oracle bucket after escrow is annotated
* [Exchange oracle] Update down_revision
* fix typo
* [Exchange oracle] Include val_size into chunk_size
* Fix some errors
* Enable empty frame matching
* Use the added parameter
* [Recording orcale] Fix get_task_quality_report
* [Ex oracle] Fix missing segment_size
* [Rec oracle] Small fixes
* Update packages/examples/cvat/exchange-oracle/src/cvat/api_calls.py
* [Exchange oracle] Bump cvat-sdk version
* Fix roi GT dataset in boxes_from_points tasks
- fixed invalid image ids
- removed unnecessary image reading during dataset preparation
* Add more clever default for sort_images
* Fix linter error, remove gt image data callback
* Fix type annotation
* Fix quality settings for skeletons_from_boxes
* Fix GT datasets for points in skeletons_from_boxes
- removed invalid mappings in the class
- fixed incorrect gt point preparations
- refactored some code
* Simplify roi info id
* Remove unused field from skeleton roi info
* Allow optional joints in skeleton task manifest
* Add points task meta
* Basic fix for merged dataset annotations
Fixes how the merged datasets get annotations for all the task types. Probably, need to change it further to use the original GT, as excluded GT annotations will be missing from the result now.
* Basic fix for premature escrow validation requests
* Fix incorrect GT preparation in boxes_from_points
Some images might have incorrect ids in the generated COCO annotation file. Reindexing is not desirable, so clear the original image ids from roi images instead
* Refactor some code
* Fix linter problem
* Use the original GT for final annotation merging
* Fix dataset merging for the points task
* Update comment
* [Exchange Oracle] Move cvat timeout settings to cvat config, update .env template
* [Recording Oracle] Update .env template, add some variables
* Update packages/examples/cvat/exchange-oracle/src/core/config.py
---------
Co-authored-by: Maxim Zhiltsov <[email protected]>1 parent 651047c commit 569b641
File tree
56 files changed
+2045
-1579
lines changed- packages/examples/cvat
- exchange-oracle
- alembic/versions
- src
- chain
- core
- tasks
- crons/cvat
- cvat
- handlers
- models
- services
- cloud
- utils
- tests
- api
- integration
- cron
- state_trackers
- services
- utils
- recording-oracle
- alembic/versions
- src
- core
- tasks
- crons
- cvat
- handlers
- models
- services
- utils
- validation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+2045
-1579
lines changedLines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| 95 | + | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
| |||
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
Lines changed: 52 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
176 | | - | |
| 180 | + | |
177 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
178 | 197 | | |
179 | 198 | | |
180 | 199 | | |
| |||
220 | 239 | | |
221 | 240 | | |
222 | 241 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | 242 | | |
227 | 243 | | |
228 | 244 | | |
| |||
282 | 298 | | |
283 | 299 | | |
284 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
285 | 316 | | |
286 | 317 | | |
287 | 318 | | |
288 | | - | |
| 319 | + | |
289 | 320 | | |
290 | 321 | | |
291 | 322 | | |
| |||
307 | 338 | | |
308 | 339 | | |
309 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
310 | 356 | | |
311 | 357 | | |
312 | 358 | | |
| |||
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
0 commit comments