Skip to content

Commit

Permalink
Merge pull request #4354 from voxel51/fix_random_cat_id
Browse files Browse the repository at this point in the history
Support non-sequential COCO category IDs
  • Loading branch information
brimoor committed May 9, 2024
2 parents 47919b4 + b9ed7e9 commit ba743bd
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 93 deletions.
9 changes: 5 additions & 4 deletions docs/source/user_guide/export_datasets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1742,11 +1742,12 @@ format as follows:
.. note::

You can pass the optional `classes` parameter to
You can pass the optional `classes` or `categories` parameters to
:meth:`export() <fiftyone.core.collections.SampleCollection.export>` to
explicitly define the class list to use in the exported labels. Otherwise,
the strategy outlined in :ref:`this section <export-class-lists>` will be
used to populate the class list.
explicitly define the class list/category IDs to use in the exported
labels. Otherwise, the strategy outlined in
:ref:`this section <export-class-lists>` will be used to populate the class
list.

You can also perform labels-only exports of COCO-formatted labels by providing
the `labels_path` parameter instead of `export_dir`:
Expand Down

0 comments on commit ba743bd

Please sign in to comment.