Creating SKUs

In the goods recognition scenario, if the uploaded data contains unlabeled data, you need to create SKUs, that is, images of a type of goods, to facilitate automatic labeling of data in the dataset.

Prerequisites

  • You have obtained permissions to access OBS. For details on how to obtain OBS permissions, see Obtaining the Access Key and Configuring ModelArts.
  • You have prepared SKU data, that is, images of a range of goods, either stored locally or uploaded to OBS.

    Files have been placed in a path either like goods folder/goods image or parent folder/goods folder/goods image.

    To ensure the automatic labeling effect, it is recommended that the number of images for each SKU, that is, for each goods category, be greater than 20.

  • You have created an OBS bucket and folder for storing SKU images later. The OBS bucket should be in the same region as ModelArts Pro. For details, see Creating an OBS Bucket.
  • You have created an application using the retail goods recognition workflow and selected a training dataset on the Vision Suite console. For details, see Selecting Data.

    If the dataset you selected is labeled, skip this section. Go to step Label Data and automatically label data.

Creating an SKU

When uploading an SKU, that is, goods images of a category, create an SKU and upload images.

  1. On the Create SKU page, click Create.

    The Create SKU dialog box is displayed.

  2. In the displayed dialog box, specify parameters as required and click OK. See Table 1.
    Table 1 Parameters required for creating an SKU

    Parameter

    Description

    Name

    Name of an SKU

    Upload Image

    Select a prepared SKU containing images of a category of goods from the local host.

    Click Select File on the right of Upload Image and select one or more images from the local host.

    NOTE:

    Put files in a path either like goods folder/goods image or parent folder/goods folder/goods image. Therefore the system can recognize folders of goods images. The number of images for each SKU must be greater than 20.

    OBS Storage Location

    Select an OBS bucket and folder for storing SKU images.

    Click the text box on the right of OBS Storage Location. In the displayed dialog box, select an OBS bucket and folder for storing the SKU, and click OK.

Batch Uploading SKUs

You can upload multiple SKUs in batches, that is, multiple categories of good images.

  1. On the Create SKU page, click Batch Upload.

    The Batch Upload SKU dialog box is displayed.

  2. In the displayed Batch Upload SKU dialog box, specify parameters as required and click OK. See Table 2.
    Table 2 Parameters for batch uploading SKUs

    Parameter

    Description

    Upload From

    Mode for uploading SKUs OBS is the default value.

    Input SKU Path

    OBS bucket and folder from which SKU data is input

    If Upload From is set to Local, the local SKU data is automatically uploaded to OBS.

    If Upload From is set to OBS, the OBS path for storing SKU data is directly selected.

    Click the text box on the right of OBS Storage Location. In the displayed dialog box, select an OBS bucket and folder for storing the SKU, and click OK.

    Output SKU Path

    OBS path into which SKU data is output Click Modify to modify the OBS bucket or folder.

Follow-up Operations

After creating SKUs on the Application Development > Create SKU page, click Next in the lower right corner to go to step Label Data. For details, see Automatically Labeling Data.