Skip to content
Snippets Groups Projects
Unverified Commit e877862d authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Docs] Improve docstring (#324)

* Fix docstring format of BaseDataElement

* fix docstring
parent a4f5533d
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ class BaseDataElement: ...@@ -88,7 +88,7 @@ class BaseDataElement:
>>> gt_instances1 = gt_instance.new( >>> gt_instances1 = gt_instance.new(
... metainfo=dict(img_id=1, img_shape=(640, 640)), ... metainfo=dict(img_id=1, img_shape=(640, 640)),
... bboxes=torch.rand((5, 4)), ... bboxes=torch.rand((5, 4)),
... scores=torch.rand((5,))) ... scores=torch.rand((5,)))
>>> gt_instances2 = gt_instances1.new() >>> gt_instances2 = gt_instances1.new()
>>> # add and process property >>> # add and process property
......
...@@ -376,7 +376,7 @@ class Registry: ...@@ -376,7 +376,7 @@ class Registry:
- ``key`` contains a scope name and it is not equal to the scope of - ``key`` contains a scope name and it is not equal to the scope of
the current registry (e.g., "mmdet"), e.g., "mmcls.FCNet": If the the current registry (e.g., "mmdet"), e.g., "mmcls.FCNet": If the
scope exists in its children, :meth:`get`will get "FCNet" from scope exists in its children, :meth:`get` will get "FCNet" from
them. If not, :meth:`get` will first get the root registry and root them. If not, :meth:`get` will first get the root registry and root
registry call its own :meth:`get` method. registry call its own :meth:`get` method.
......
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