forked from pcrbot/ai_setu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_example.yaml
138 lines (113 loc) · 4.88 KB
/
config_example.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#配置文件,修改配置后重启Bot生效!!!
#必填项!
##1.api的IP,不了解就保持默认
api_ip:
- '91.217.139.190:5010' #备用服务器
- '91.216.169.75:5010' #主服务器
- '185.80.202.180:5010' #备用服务器2
sd_api_ip: "http://82.157.58.118:7860" #sdui的api的ip,比如http://82.157.58.118:7860,服务器GPU为V100,请勿传播,仅供HoshinoBot使用,要达到更好效果请自建
##2.路路友情api的token,访问上述ip/token 获取
token:
- ''
##3. 默认绘图参数
#默认的tags
tags_moren: (masterpiece,best quality,high quality:1),<lora:neg4all_bdsqlsz_V3.5:0.5>,illustration,illustration,<lora:add_detail:-0.2>,<lora:GoodHands-beta2:1>,nice hands,perfect hands,solo,1girl
#默认的负面tags
ntags_moren: (Worst Quality,Low Quality:1.4),ugly,morbid,mutilated,lowres,bad anatomy,text,error,extra digit,fewer digits,cropped,worst quality,signature,watermark,username,logo,missing arms,missing legs,longbody,extra legs,(extra fingers,deformed hands,polydactyl:1.5)
#默认的防止漏点的tags, 清空则无效
tags_sfw: "sfw"
ntags_sfw: "(nsfw),nude,naked,lvavaginal,nudity,topless,vulva,pussy,nipples"
#默认的R18的tags, 清空则无效
tags_nsfw: "(nsfw),(nude:0.6)"
ntags_nsfw: "censored"
#默认是否开启r18,1为开启(SD-WebUI不使用此配置)
r18_moren: 0
#默认生成的图片最大像素限制,100W像素用T4显卡大概需要32秒,请根据自己的显卡性能调整
pic_max: 1000000
#给特定的群开启R18功能, 对于未开启的群默认套用sfw标签, 对于开启的群可以使用R18命令
r18_group_enable:
- 114514
###3.1. 文字生成图片细节参数
txt2img_steps_moren: 20
txt2img_steps_max: 35 #最高步数
txt2img_sampler_moren: "DPM++ 2S a Karras" #DPM++ 2S a Karras是高阶采样,所以步数较少,即可得到效果
txt2img_scale_moren: 7
txt2img_shape_moren: "portrait" # "portrait","landscape","square"
###3.2. 图片生成图片细节参数
img2img_steps_moren: 30
img2img_steps_max: 60 #最高步数
img2img_sampler_moren: "Euler a" #Euler a是低阶采样,所以步数较多
img2img_scale_moren: 7
img2img_strength_moren: "0.6" #与原图关联性,越低越关联
resize_mode: 0 #0:Just resize 1:Crop and resize 2:Resize and fill 理论差别较小
###3.3. 高清修复
enable_hr: False
hr_second_pass_steps: 0
hr_scale: 2
hr_upscaler: "Latent" # 推荐 4xUltrasharp_4xUltrasharpV10, 需要自己下载
hr_denoising_strength: 0.5
##4. 绘图超时时间,单位秒
draw_timeout: 180
##5. 元素法典相似度,高于该值的魔咒会被覆盖
max_ratio: 0.8
max_magic_num: 8 #每次能融合的魔法书个数
#可选项!
#欢迎下载自炼模型链接:https://pan.baidu.com/s/1hY24_ZH9UfV0mT5-qHcppw?pwd=2333
#只使用SD-WebUI
only_sd: True
#以回复的形式发送消息
use_reply: True
#整理tags功能
arrange_tags: True
#给用户的提示词添加默认的tags(tags_moren, ntags_moren)
add_default_prompt: True
#当提示词出现列表中的提示词时,添加对应的额外提示词
add_on_match: True
add_on_match_prompt:
- girls:
match : [girl, loli, boy, you, he, she, man, woman]
tags : ""
ntags : "negative_hand-neg"
#数据库相关功能
##1. 是否开启数据录入
add_db: True
##2. 用于查看图片时,每页最多有多少张图
per_page_num: 32
#翻译功能
##1. 是否开启翻译
trans: True
##2. 翻译方式(0 = 有道, 1 = 百度, 2 = DeepL), api地址, 应用id, 应用密钥, 代理
way2trans: 0
youdao_url: "https://openapi.youdao.com/api"
youdao_app_id: ""
youdao_app_key: ""
baidu_url: "http://api.fanyi.baidu.com/api/trans/vip/translate"
baidu_app_id: ""
baidu_app_key: ""
deepl_url: "https://api-free.deepl.com"
deepl_app_key: ""
deepl_proxy: "127.0.0.1:7890"
#过滤功能
##1. 是否开启违禁词过滤
limit_word: True
##2. 违禁词表,字典树的方式,如 naked 会过滤掉 "nakedasdasda" 里的 "naked" 剩下 "dasdasda", 在开启R18的群中不会过滤 r18_wordlist 中的词
r18_wordlist: ['&r18=1', 'nake', 'vagina', 'penis', 'nsfw', 'genital', 'nude', 'nipple', 'vulv', 'no pant', 'clothes remove', 'rectum']
wordlist: ['%']
#撤回功能
##1. 是否开启撤回功能(Bot会撤回一些可能刷屏的提醒)
delete_massege: True
##2. 撤回失败时是否进行提醒并索要管理员
ask_4_admin_priv: False
#鉴赏图片功能
img2tag: True #是否开启
img2tags_url: "https://hf.space/embed/NoCrypt/DeepDanbooru_string/api/predict/" #有排队功能的DeepDanbooru仓库
img2tags_url_timeout: 30 #请求超时时间
#图片动漫化功能
img2anime: False #是否开启
img2anime_url: "http://81.69.176.219:8081/run/predict/" #White-box-Cartoonization仓库
img2anime_url_timeout: 120
#超分图片功能
picsuper: False #是否开启
pic_super_url: "http://81.69.176.219:8080/run/predict/" #Real-CUGAN仓库,更好效果推荐自建,默认仓库已经设置2048*2048的大小限制
max_size: 11664000 #超分图片的最大尺寸为1080*1080*10,过大有风险
pic_super_timeout: 120