From ce76b2e47702f7061110c2e80cff1f4f10a6d16a Mon Sep 17 00:00:00 2001 From: Yanjun Peng Date: Thu, 2 Apr 2020 11:15:29 +0800 Subject: [PATCH] fix dataset tutorial translate bug --- .../source_en/use/data_preparation/converting_datasets.md | 2 +- .../use/data_preparation/data_processing_and_augmentation.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/source_en/use/data_preparation/converting_datasets.md b/tutorials/source_en/use/data_preparation/converting_datasets.md index 6e8c85ed59..474cd00aab 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 f28221e7d7..4a34368bc7 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). -- Gitee