Kwcoco

Latest version: v0.8.7

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 15

0.8.7

Changed
* `CocoDataset.conform` now returns a reference to `self`

Added
* Support segmentations in legacy `COCO.loadRes`

Fixed
* Perterb no longer fails if segmentations are not present
* Subset now correctly handles tracks

0.8.6

Added
* `segmentation_metrics` now has the ability to dump components of its visualization for more flexible figure aggregation.
* `segmentation_metrics` now has the ability to specify a subset of images to evaluate on.
* conforming to the legacy coco format will now remove holes and warn.


Changed
* `kwcoco modify_categories` now uses kwutil and YAML arguments to specify keep / remove.
* The return type of `_ensure_imgsize` changed from a `List[Dict]` to a `Dict` with summary information. The old return value is accessible via the `"bad_images"` key in the new summary dictionary.
* The `kwcoco.CategoryTree.coerce` now will recognize coco category lists.
* `CocoDataset.union` will now preserve category ids if possible.


Fixed
* the `loadImgs`, `loadAnns`, and `loadCats` functions in the compat dataset now do the same thing as pycocotools

0.8.5

Fixed
* Fix broken paths in camvid converter
* fixed issues when converting segmentations to legacy mscoco format
* Issue with `image_filepath` in CocoImage / CocoAsset

Added
* Added `CocoDataset.add_categories`
* Users can now specify sensorchan for toydata videos to get a custom sensor/channel arrangement
* Added `flatten` method to `ObjectGroups`.
* Add public `rebuild_index` function which should be used instead of `_build_index`.

Changed
* Set verbose default of reroot to 0 to match documentation.
* `rich` is now a runtime requirement.

0.8.4

Changed

* Changed `visual_stats` to `plot_stats`.
* Moved kw18 and kpf to a new `formats` submodule.
* kwcoco show now respects video frame order if available
* modified scheme so supercategory is now allowed to be an empty string

Added

* Added basic helpers for converting from labelme and VOC annotations
* Added finish-install helper script.

0.8.3

Added
* New `load` classmethod (analogous to `dump`) as a placeholder for a potential
future refactor.
* Ported segmentation metrics from geowatch. Eventually metrics may be ported
to a new package: kwmetrics in order to improve modularity and keep
components well-scoped.
* Added `out_fpath` to `coco_eval` CLI signature.
* Added `video_ids` argument to `CocoDataset.subset`
* Added `.objs_iter()` method to `ObjectList1D` as an alternative to `.objs`
* Added `.get_iter(...)` method to `ObjectList1D` as an alternative to `.get(...)`
* Added `.coco_images_iter()` method to `Images` as an alternative to `.coco_images`
* `kwcoco/cli/coco_visual_stats.py`

Changed
* `CocoDataset.add_track` will now pick a name using a uuid if one is unspecified.
* Added more metrics to outputs in coco eval
* demodata can now be populated with random timestamps
* dict proxy items can now use the pop and delitem methods
* scriptconfig CLI interfaces have been modernized.

Fixed
* CIFAR grabdata now respects dpath
* `CocoDataset.ensure_video` properly checks for duplicate video names now.

0.8.2

Fixed
* Handle deprecated `scipy.integrate.trapz`

Page 1 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.