[Doc] Fix typo in docstring (#527)

This commit is contained in:
MengzhangLI 2022-09-13 14:55:59 +08:00 committed by GitHub
parent 6b1b8a3751
commit c1178fad8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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:

View File

@ -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: