Skip to content
Snippets Groups Projects
Unverified Commit 75202103 authored by wxDai's avatar wxDai Committed by GitHub
Browse files

[Doc]: fix typo in instance_data.py (#530)

parent 114fa215
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ class InstanceData(BaseDataElement): ...@@ -22,7 +22,7 @@ class InstanceData(BaseDataElement):
should have the same length. This design refer to should have the same length. This design refer to
https://github.com/facebookresearch/detectron2/blob/master/detectron2/structures/instances.py # noqa E501 https://github.com/facebookresearch/detectron2/blob/master/detectron2/structures/instances.py # noqa E501
InstanceData also support extra functions: ``index``, ``slice`` and ``cat`` for data field. The type of value InstanceData also support extra functions: ``index``, ``slice`` and ``cat`` for data field. The type of value
in data field can be base data structure such as `torch.tensor`, `numpy.dnarray`, `list`, `str`, `tuple`, in data field can be base data structure such as `torch.tensor`, `numpy.ndarray`, `list`, `str`, `tuple`,
and can be customized data structure that has ``__len__``, ``__getitem__`` and ``cat`` attributes. and can be customized data structure that has ``__len__``, ``__getitem__`` and ``cat`` attributes.
Examples: Examples:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment