Build Your Own AI Image Editing Assistant with Alibaba Cloud PAI‑DSW
This guide walks you through using Alibaba Cloud's PAI‑DSW and the Free Prompt Editing algorithm to set up a personal AI‑generated content (AIGC) drawing assistant, covering environment setup, instance creation, WebUI parameter tuning, example edits, resource cleanup, and how to share your creations for rewards.
Introduction
Artificial Intelligence Generated Content (AIGC) is increasingly popular in image processing and creative design. Using Alibaba Cloud PAI‑DSW (Data Science Workshop) and the Free Prompt Editing algorithm, users can develop a personalized AIGC drawing assistant for intelligent image editing and generation.
Environment Preparation
To develop the personal AIGC drawing assistant, first set up the environment by enabling Alibaba Cloud PAI‑DSW service and creating an instance.
Claim PAI‑DSW free trial rights – Go to the activity page at the end of the article to claim a free trial package. New users receive 5000 CU·H of trial resources for launching and running an instance.
Create a PAI‑DSW instance
Log in to the Alibaba Cloud console, enable the AI PAI service, and create a default workspace.
In the PAI console, select Interactive Modeling → PAI‑DSW and click “Create Instance”.
Enter an instance name, choose a GPU type (A10 or V100 recommended), and select an image such as pytorch-develop:1.12-gpu-py39-cu113-ubuntu20.04.
After configuration, click “Create Instance” and wait until the status becomes “Running”.
Open tutorial files in DSW
In the created PAI‑DSW instance, go to the Notebook tab’s Launcher page, click “Go to Gallery”, search for and open the relevant tutorial file.
Run the tutorial file in DSW, executing each code snippet, which includes preparation, downloading and installing the environment, and launching the WebUI.
Deploy and Experience AI Image Editing
WebUI adjustable parameters:
Attention map Replacing Scale ratio of Editing (0.0‑1.0, recommended 0.4‑0.8)
DDIM Steps (denoising steps)
Layers to Edit (recommended 16‑32)
Image Resolution (recommended 512)
CFG Scale (text prompt strength, recommended 7.5)
Seed (random seed)
The WebUI includes preset parameters and example images, prompts, and negative prompts for one‑click execution.
Examples
Change image background
Edit Prompt: “a Chinese building on the forest”
Negative Prompt: “nsfw, worst quality, low quality, normal quality, lowres, watermark”
Result: background changed to a forest.
Change image style
Edit Prompt: “a kids drawing of a cat”
Result: image rendered in a children’s drawing style.
Edit Prompt: “Van Gogh style architectural picture”
Result: building image transformed into Van Gogh style.
Resource Cleanup and Follow‑up
Resource cleanup – After experiments, stop or delete the instance in the console to avoid ongoing consumption and charges.
Further use – Within the trial period, continue using the DSW instance for model training and inference verification, exploring more AI image editing possibilities.
Share Your AIGC Creations
After completing the hands‑on tutorial, you can join the “Develop Personal AIGC Drawing Assistant” activity on Alibaba Cloud Developer Community to receive free trial cloud resources and a chance to win prizes such as a desktop folding fan, Baidu Smart Screen X9, Mi Home camera, and more.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Alibaba Cloud Developer
Alibaba's official tech channel, featuring all of its technology innovations.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
