We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a2d563 + 12cef12 commit 31d7101Copy full SHA for 31d7101
docs/2.0/tutorials/beginner/basics/data_tutorial.md
@@ -147,7 +147,7 @@ def __len__(self):
147
```
148
### __getitem__
149
150
-函数 `__getitem__` 从数据集中给定的索引 ``idx`` 处加载并返回一个样本。根据索引可以确定图像在硬盘上的位置,用 ``read_image`` 将其转换为tensor,从 ``self.img_labels`` 的csv数据中获取相应的标签,最对它们调用 transform 函数(如果适用),并返回tensor图像和相应的标签的元组。
+函数 `__getitem__` 从数据集中给定的索引 ``idx`` 处加载并返回一个样本。根据索引可以确定图像在硬盘上的位置,用 ``read_image`` 将其转换为tensor,从 ``self.img_labels`` 的csv数据中获取相应的标签,再对它们调用 transform 函数(如果适用),并返回tensor图像和相应的标签的元组。
151
152
```py
153
def __getitem__(self, idx):
0 commit comments