From 66f41a61df91cb8e9929f15f1dd1922e080e20ae Mon Sep 17 00:00:00 2001 From: qitan Date: Tue, 7 Nov 2023 15:37:18 +0800 Subject: [PATCH 1/2] fix pai service template --- documents/solution/ai/pai-ai-painting-solution.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/documents/solution/ai/pai-ai-painting-solution.yml b/documents/solution/ai/pai-ai-painting-solution.yml index d30c1936..94fc435b 100644 --- a/documents/solution/ai/pai-ai-painting-solution.yml +++ b/documents/solution/ai/pai-ai-painting-solution.yml @@ -124,12 +124,22 @@ Resources: Ref: NasAccessGroup DependsOn: - NasAccessRule + RandomString: + Type: ALIYUN::RandomString + Properties: + length: 10 + character_classes: + - class: lowercase + min: 1 + - class: digits + min: 1 Pai-Eas: Type: ALIYUN::PAI::Service Properties: ServiceConfig: metadata: - name: sdwebui + name: + Fn::Sub: sdwebui_${RandomString.value} instance: 1 type: SDCluster enable_webservice: true @@ -172,4 +182,4 @@ Metadata: - ZoneId - InstanceType TemplateTags: - - acs:technical-solution:ai:PAI AI绘画解决方案 + - acs:technical-solution:ai:使用PAI完成Stable Diffusion WebUI多版本个性化部署服务 From a007895504be46f4ad5238edb97c0d6f23c47554 Mon Sep 17 00:00:00 2001 From: qitan Date: Wed, 8 Nov 2023 14:46:13 +0800 Subject: [PATCH 2/2] modify image --- documents/solution/ai/pai-ai-painting-solution.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/solution/ai/pai-ai-painting-solution.yml b/documents/solution/ai/pai-ai-painting-solution.yml index 94fc435b..b7146fcb 100644 --- a/documents/solution/ai/pai-ai-painting-solution.yml +++ b/documents/solution/ai/pai-ai-painting-solution.yml @@ -166,7 +166,7 @@ Resources: resource_type: model mount_path: /data-nas containers: - - image: eas-registry-vpc.ap-southeast-1.cr.aliyuncs.com/pai-eas/stable-diffusion-webui:3.2 + - image: eas-registry-vpc.ap-southeast-1.cr.aliyuncs.com/pai-eas/stable-diffusion-webui:4.1 script: ./webui.sh --listen --port 8000 --skip-version-check --no-hashing --no-download-sd-model --skip-install --api --filebrowser --cluster-status --sd-dynamic-cache --data-dir /data-nas