Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Fix docstring graph rendering error of readthedocs #400

Merged
merged 2 commits into from
Dec 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions mmyolo/datasets/transforms/mix_img_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ class Mosaic9(BaseMixImageTransform):
one output image. The output image is composed of the parts from each sub-
image.

.. code:: text

+-------------------------------+------------+
| pad | pad | |
| +----------+ | |
Expand All @@ -493,11 +495,11 @@ class Mosaic9(BaseMixImageTransform):
| pad | | pad |
+-----------+------------+-------------------+

The mosaic transform steps are as follows:
The mosaic transform steps are as follows:

1. Get the center image according to the index, and randomly
sample another 8 images from the custom dataset.
2. Randomly offset the image after Mosaic
1. Get the center image according to the index, and randomly
sample another 8 images from the custom dataset.
2. Randomly offset the image after Mosaic

Required Keys:

Expand Down
5 changes: 4 additions & 1 deletion mmyolo/models/necks/base_yolo_neck.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ class BaseYOLONeck(BaseModule, metaclass=ABCMeta):
| bottom_up |--->| out |---> output2
| layer1 | | layer2|
+-----------+ +-------+
------------------------------------------------------------------------

.. code:: text

P6 neck model structure diagram
+--------+ +-------+
|top_down|----------+--------->| out |---> output0
Expand Down Expand Up @@ -109,6 +111,7 @@ class BaseYOLONeck(BaseModule, metaclass=ABCMeta):
| bottom_up |--->| out |---> output3
| layer2 | | layer3|
+-----------+ +-------+

Args:
in_channels (List[int]): Number of input channels per scale.
out_channels (int): Number of output channels (used at each scale)
Expand Down