diff --git a/tutorials/source_en/use/data_preparation/converting_datasets.md b/tutorials/source_en/use/data_preparation/converting_datasets.md index 6e8c85ed590ef5662acaed0a360e23487ce85f54..474cd00aab80b07960c493d386f5626205aacf8a 100644 --- a/tutorials/source_en/use/data_preparation/converting_datasets.md +++ b/tutorials/source_en/use/data_preparation/converting_datasets.md @@ -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. diff --git a/tutorials/source_en/use/data_preparation/data_processing_and_augmentation.md b/tutorials/source_en/use/data_preparation/data_processing_and_augmentation.md index f28221e7d7875801251f38f3fd79a833de97adf0..4a34368bc79617433e46ea5dc2b35bb16f1a4e18 100644 --- a/tutorials/source_en/use/data_preparation/data_processing_and_augmentation.md +++ b/tutorials/source_en/use/data_preparation/data_processing_and_augmentation.md @@ -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).