2 Commits

Author SHA1 Message Date
Boris Sekachev 5a99e73efd Drop years from license headers associated to CVAT.ai Corporation (#8968) 2025-01-21 09:31:41 +02:00
Roman Donchenko 3265e1f464 SDK/CLI: improve mask support in the auto-annotation functionality (#8724)
While it is already possible to output mask shapes from AA functions,
which the driver _will_ accept, it's not convenient to do so. Improve
the practicalities of it in several ways:

* Add `mask` and `polygon` helpers to the interface module.

* Add a helper function to encode masks into the format CVAT expects.

* Add a built-in torchvision-based instance segmentation function.

* Add an equivalent of the `conv_mask_to_poly` parameter for Nuclio
functions.

Add another extra for the `masks` module, because NumPy is a fairly
beefy dependency that most SDK users probably will not need (and
conversely, I don't think we can implement `encode_mask` efficiently
without using NumPy).
2024-11-25 14:53:05 +02:00