Skip to content
Snippets Groups Projects
Unverified Commit c1178fad authored by Li Mengzhang's avatar Li Mengzhang Committed by GitHub
Browse files

[Doc] Fix typo in docstring (#527)

parent 6b1b8a37
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ IndexType = Union[str, slice, int, list, torch.LongTensor,
# Modified from
# https://github.com/open-mmlab/mmdetection/blob/master/mmdet/core/data_structures/instance_data.py # noqa
class InstanceData(BaseDataElement):
"""Data structure for instance-level annnotations or predictions.
"""Data structure for instance-level annotations or predictions.
Subclass of :class:`BaseDataElement`. All value in `data_fields`
should have the same length. This design refer to
......
......@@ -6,7 +6,7 @@ from .base_data_element import BaseDataElement
class LabelData(BaseDataElement):
"""Data structure for label-level annnotations or predictions."""
"""Data structure for label-level annotations or predictions."""
@staticmethod
def onehot_to_label(onehot: torch.Tensor) -> torch.Tensor:
......
......@@ -9,7 +9,7 @@ from .base_data_element import BaseDataElement
class PixelData(BaseDataElement):
"""Data structure for pixel-level annnotations or predictions.
"""Data structure for pixel-level annotations or predictions.
All data items in ``data_fields`` of ``PixelData`` meet the following
requirements:
......
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