All Products
Search
Document Center

Platform For AI:Image-text filtering

Last Updated:Dec 09, 2025

LVM image editing algorithms provide features such as image cleaning, content filtering, basic image information extraction, and image caption generation. You can combine different algorithms to filter image data and generate text descriptions. This process provides high-quality image data for training image generation models. This topic describes how to use the image-text filtering preset template in Machine Learning Designer.

Limits

The image-text filtering preset template is available only in the China (Hangzhou), China (Shanghai), China (Beijing), and China (Shenzhen) regions.

Prepare image data

PAI provides sample data that you can use:

  1. Download the image metadata file and the image file.

    • Image metadata file: image_meta.jsonl. This file is used as the input for image-text algorithms.

    • Image file: data.zip. This file is used as the input for general image editing algorithms.

  2. Decompress the package and upload the image files to OSS. For more information, see Simple upload.

  3. Modify the image metadata file.

    Replace the configuration oss://bucket_name.oss-cn-hangzhou.aliyuncs.com/image_algorithm_test/image_data/ in the image metadata file with the OSS directory where you uploaded the images.

    image

  4. Upload the image metadata file to the same OSS bucket where you uploaded the image files. For more information, see Simple upload.

Create and run a pipeline

  1. Go to the Machine Learning Designer page.

    1. Log on to the PAI console.

    2. In the upper-left corner, select the desired region.

    3. In the navigation pane on the left, click Workspaces, and then click the name of the workspace that you want to manage.

    4. In the navigation pane on the left, choose Model Training > Visualized Modeling (Designer).

  2. Create a pipeline.

    1. On the Preset Templates tab, choose Business Area > Multi-modal LLM, and then click Create in the Image-Text Filtering template.

      image

    2. Configure the pipeline parameters and click OK. You can use the default values.

    3. In the pipeline list, select the pipeline that you created and click Open.

  3. Configure the pipeline.

    • Configure the Read File Data component. Click the Read File Data component. On the Field Settings tab in the right-side pane, set OSS Data Path to the OSS directory where the image data file is stored.

    • Configure the LLMDataProcessGroup1 group. Click the Settings button image and configure Data Output OSS Directory. The output file is saved to this directory. For more information about the configuration of the LVM image pre-processing algorithm component, see Image preprocessing operators.

      image

  4. Run the pipeline. After the run is complete, you can view the generated files:

    • meta.jsonl file: During the run, the meta.jsonl image metadata file is generated in the parent directory of the path specified for OSS Path of Image Data.

    • Result file: You can view the result file in the directory that you specified for OSS Path of Output File.

    For more information about the result file, see the description of the OSS Path of Output File parameter in Image preprocessing operators.

References

Image pre-processing components