mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Doc] Fix typo in docstring (#527)
This commit is contained in:
parent
6b1b8a3751
commit
c1178fad8f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user