-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathpublish.yaml
63 lines (63 loc) · 2.36 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Type: Application
Name: fc-stable-diffusion
Provider:
- 阿里云
Version: dev
Description: 使用serverless devs将stable-diffusion部署到阿里云函数计算上
HomePage: https://github.com/OhYee/fc-stable-diffuson
Tags: #标签详情
- 部署函数
Category: Web框架
Parameters:
type: object
additionalProperties: false # 不允许增加其他属性
required: # 必填项
- region
- serviceName
- functionName
- type
- enableCollect
properties:
region:
title: 地域
type: string
default:
description: 创建应用所在的地区。由于当前模板涉及 Github 以及 HuggingFace 等网站访问,国内部分地区可能无法直接使用,推荐您选择海外地区进行部署
enum:
- cn-shanghai
- cn-hangzhou
- ap-northeast-1
- ap-southeast-1
- cn-beijing
- cn-shenzhen
serviceName:
title: 服务名
type: string
default: fc-stable-diffusion
description: 您可以根据需要设置不同的服务名,同一个服务会共享部分第三方云产品资源
functionName:
title: 函数名
type: string
default: sd
description: 您可以根据需要多次创建该应用,通过函数名来区分出不同的镜像地址
type:
title: 绘图类型
type: string
default: 动漫风格
description: |+
根据不同的绘图风格,将会自动为您选择不同的社区镜像以供测试。
注意:
函数计算是 Serverless 架构形式的计算平台,所有的容器镜像、代码、参考示例、开源信息均为用户自行所有,不作为函数计算本身提供的服务;
当前应用仅为案例,供使用者参考和学习使用,如果有生产使用需要,需要使用者自行完善和优化;
当前应用会消耗 GPU 资源,购买 GPU 资源包可以降低您的使用成本。
enum:
- SD1.5
- 动漫风格
- 真人风格
- 轻量版
enableCollect:
title: 协助改善体验
type: boolean
default: true
description: |+
通过开启该功能,可以将您的非敏感操作共享给我们,以便优化和改善应用。非敏感操作指 Stable Diffusion 使用、报错信息,不涉及提示词、参数、生成出的图片等敏感数据。