提交 ce76b2e4 编写于 作者: Y Yanjun Peng

fix dataset tutorial translate bug

上级 1a1ca4fb
......@@ -41,7 +41,7 @@ MindSpore provides write operation tools to write user-defined raw data in MindS
cv_schema_json = {"file_name": {"type": "string"}, "label": {"type": "int32"}, "data": {"type": "bytes"}}
```
Schema specifications are as follows:
A file name can contain only letters, digits, and underscores (_).
A field name can contain only letters, digits, and underscores (_).
The field type can be int32, int64, float32, float64, string, or bytes.
The field shape can be a one-dimensional array represented by [-1], a two-dimensional array represented by [m, n], or a three-dimensional array represented by [x, y, z].
> 1. The type of a field with the shape attribute can only be int32, int64, float32, or float64.
......
......@@ -200,7 +200,7 @@ After shuffle:
The map operation is used to process data. For example, convert the dataset of color images into the dataset of grayscale images. You can flexibly perform the operation as required.
MindSpore provides the `map()` function to map datasets. You can apply the provided functions or operators to the specified column data.
You can customize the function or use `c_transforms` or `py_transforms` for data augmentation.
> For details about data augmentation operations, see [Data Augmentation](#Data Augmentation).
> For details about data augmentation operations, see Data Augmentation section.
![avatar](../images/map.png)
......@@ -262,7 +262,7 @@ MindSpore provides the `c_transforms` and `py_transforms` module functions for u
| Module | Implementation | Description |
| ---------------| ------------------------------------------------------ | --- |
| `c_transforms` | C++-based [OpenCV](https://opencv.org/) implementation | The performance is high. |
| `py_transforms` | Python-based [PIL](https://pypi.org/project/Pillow/) implementation | This module provides multiple image augmentation functions and the method for converting PIL images into NumPy arrays. |
| `py_transforms` | Python-based [PIL](https://pypi.org/project/Pillow/) implementation | This module provides multiple image augmentation functions and the method for converting between PIL images and NumPy arrays. |
For users who would like to use Python PIL in image learning tasks, the `py_transforms` module is a good tool for image augmentation. You can use Python PIL to customize extensions.
Data augmentation requires the `map()` function. For details about how to use the `map()` function, see [map](#map).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册