From 33366efe11033dbc4c43cd59dc7f980dbe04348d Mon Sep 17 00:00:00 2001 From: cherishsince Date: Fri, 21 Jun 2024 15:26:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91StableDiffu?= =?UTF-8?q?sion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/index.vue | 6 +- src/views/ai/image/stable-diffusion/index.vue | 297 ++++++++++++++++++ 2 files changed, 301 insertions(+), 2 deletions(-) create mode 100644 src/views/ai/image/stable-diffusion/index.vue diff --git a/src/views/ai/image/index.vue b/src/views/ai/image/index.vue index 6d89680b..50d4b4a9 100644 --- a/src/views/ai/image/index.vue +++ b/src/views/ai/image/index.vue @@ -11,6 +11,7 @@ @on-draw-start="handlerDrawStart" @on-draw-complete="handlerDrawComplete" /> +
@@ -23,14 +24,15 @@ // TODO @fan:在整个挪到 /views/ai/image/index 目录。因为我想在 /views/ai/image/manager 做管理的功能,进行下区分! import Dall3 from './dall3/index.vue' import Midjourney from './midjourney/index.vue' +import StableDiffusion from './stable-diffusion/index.vue' import ImageTask from './ImageTask.vue' // ref const imageTaskRef = ref() // image task ref // 定义属性 -const selectModel = ref('DALL3绘画') -const modelOptions = ['DALL3绘画', 'MJ绘画'] +const selectModel = ref('Stable Diffusion') +const modelOptions = ['DALL3绘画', 'MJ绘画', 'Stable Diffusion'] const drawIn = ref(false) // 生成中 /** 绘画 - start */ diff --git a/src/views/ai/image/stable-diffusion/index.vue b/src/views/ai/image/stable-diffusion/index.vue new file mode 100644 index 00000000..7b1db7ab --- /dev/null +++ b/src/views/ai/image/stable-diffusion/index.vue @@ -0,0 +1,297 @@ + + + +