Skip to content

Commit ad5776c

Browse files
authored
Fix text errors in the tutorials (#7959)
* Fix text errors in the tutorials * Add a blank line.
1 parent 0db1b9b commit ad5776c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/en/tutorials/customize_losses.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This tutorial first elaborate the computation pipeline of losses, then give some
66

77
## Computation pipeline of a loss
88

9-
Given the input prediction and target, as well as the weights, a loss function maps the input tensor to the final loss scalar. The mapping can be divided into four steps:
9+
Given the input prediction and target, as well as the weights, a loss function maps the input tensor to the final loss scalar. The mapping can be divided into five steps:
1010

1111
1. Set the sampling method to sample positive and negative samples.
1212

docs/zh_cn/tutorials/customize_losses.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ MMDetection 为用户提供了不同的损失函数。但是默认的配置可
77

88
## 一个损失的计算过程
99

10-
给定输入(包括预测和目标,以及权重),损失函数会把输入的张量映射到最后的损失标量。映射过程可以分为下面四个步骤:
10+
给定输入(包括预测和目标,以及权重),损失函数会把输入的张量映射到最后的损失标量。映射过程可以分为下面五个步骤:
11+
1112
1. 设置采样方法为对正负样本进行采样。
1213

1314
2. 通过损失核函数获取**元素**或者**样本**损失。

0 commit comments

Comments
 (0)