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

[Docs] Add Chinese version of conventions #5825

Merged
merged 10 commits into from
Sep 17, 2021

Conversation

wangbo-zhao
Copy link
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

This PR is for chinese version of conventions.md

@wangbo-zhao wangbo-zhao changed the title Update conventions.md [doc] chinese version of conventions.md Aug 8, 2021
@ZwwWayne ZwwWayne requested a review from AronLin August 9, 2021 01:51
@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #5825 (fa8b8b9) into master (1077152) will decrease coverage by 4.92%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5825      +/-   ##
==========================================
- Coverage   66.46%   61.54%   -4.93%     
==========================================
  Files         281      305      +24     
  Lines       22019    23896    +1877     
  Branches     3659     3951     +292     
==========================================
+ Hits        14635    14706      +71     
- Misses       6632     8405    +1773     
- Partials      752      785      +33     
Flag Coverage Δ
unittests 61.51% <ø> (-4.93%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmdet/models/roi_heads/mask_heads/grid_head.py 7.69% <0.00%> (-87.70%) ⬇️
mmdet/models/roi_heads/mask_scoring_roi_head.py 16.98% <0.00%> (-75.48%) ⬇️
mmdet/models/dense_heads/nasfcos_head.py 28.12% <0.00%> (-68.75%) ⬇️
mmdet/models/roi_heads/grid_roi_head.py 13.04% <0.00%> (-57.61%) ⬇️
mmdet/models/necks/nas_fpn.py 14.28% <0.00%> (-55.56%) ⬇️
mmdet/models/utils/normed_predictor.py 33.33% <0.00%> (-50.01%) ⬇️
...et/models/roi_heads/bbox_heads/double_bbox_head.py 22.72% <0.00%> (-48.49%) ⬇️
mmdet/models/necks/nasfcos_fpn.py 15.49% <0.00%> (-47.89%) ⬇️
...et/models/roi_heads/mask_heads/coarse_mask_head.py 23.80% <0.00%> (-47.62%) ⬇️
mmdet/models/necks/fpg.py 11.41% <0.00%> (-46.74%) ⬇️
... and 294 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1077152...fa8b8b9. Read the comment docs.

@BIGWangYuDong BIGWangYuDong changed the title [doc] chinese version of conventions.md [Docs] Add Chinese version of conventions Aug 9, 2021
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
## 损失
在MMDetection中,`dict` 包含着所有的损失和评价指标,他们将会由`model(**data)`返回。

例如,在bbox head中,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our standards, there should be a space between English (including numbers) and Chinese.
So it should be 在 bbox head 中.

docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved

'bbox_head.loss()'在模型正向阶段会被调用。返回的字典中包含了`'loss_bbox'`, `'loss_cls'`, `'acc'`。只有`'loss_bbox'`, `'loss_cls'`会被用于反向传播,`'acc'`只会被作为评价指标来监控训练过程。

我们默认,只有那些键的名称中包含'loss'的值会被用于反向传播。这个行为可以通过修改`BaseDetector.train_step()`来改变。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space between English and Chinese.

docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
@AronLin
Copy link
Contributor

AronLin commented Aug 9, 2021

Please re-request review if you fix my comments.

Copy link
Contributor

@AronLin AronLin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add space between English(including numbers) and Chinese. This is a unified standard in MMDetection.

## 损失
在MMDetection中,`dict` 包含着所有的损失和评价指标,他们将会由`model(**data)`返回。

例如,在bbox head中,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our standards, there should be a space between English (including numbers) and Chinese.
So it should be 在 bbox head 中.

docs_zh-CN/conventions.md Outdated Show resolved Hide resolved

'bbox_head.loss()'在模型正向阶段会被调用。返回的字典中包含了`'loss_bbox'`, `'loss_cls'`, `'acc'`。只有`'loss_bbox'`, `'loss_cls'`会被用于反向传播,`'acc'`只会被作为评价指标来监控训练过程。

我们默认,只有那些键的名称中包含'loss'的值会被用于反向传播。这个行为可以通过修改`BaseDetector.train_step()`来改变。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space between English and Chinese.

docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
@AronLin
Copy link
Contributor

AronLin commented Sep 1, 2021

Kindly ping @BIGWangYuDong for the final check.

docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
docs_zh-CN/conventions.md Outdated Show resolved Hide resolved
@BIGWangYuDong
Copy link
Collaborator

LGTM, two details need to be modified

@ZwwWayne ZwwWayne merged commit fa10539 into open-mmlab:master Sep 17, 2021
ZwwWayne pushed a commit to ZwwWayne/mmdetection that referenced this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants