支持删除权重值提示词 调整词库

pull/12/head
thisjam 2023-08-10 15:38:48 +08:00
parent aa0f891d96
commit 4beb9efffb
15 changed files with 31 additions and 12 deletions

View File

@ -32,6 +32,7 @@ let dicClass={
1:{}
}
const loadTime=3000
@ -91,7 +92,8 @@ function toggleNavCss(dom){
function addPrompt(e) {
let dom=e.target;
let str= e.target.dataset.sixoldtit + ','
let str= e.target.dataset.sixoldtit
let elementprompt =e.target.dataset.pageindex==1 ? Elements.imgpromt : Elements.txtpromt
dom.classList.toggle("active")
toggleNavCss(dom)
@ -102,11 +104,21 @@ function addPrompt(e) {
}
}
if(!ishas){
elementprompt.focus();
elementprompt.value= elementprompt.value.replace(str,'');
if(elementprompt.value.includes(str+':')){
const teststr=`${str},|\\(${str}:\\d+\\.\\d+\\),`
const regex =new RegExp(teststr);
console.log(regex.test(elementprompt.value));
elementprompt.value= elementprompt.value.replace(regex,'');
}
else{
elementprompt.value= elementprompt.value.replace(str+',','');
}
return
}
str=str+','
elementprompt.focus();
document.execCommand('insertText', false,str)
@ -118,7 +130,7 @@ function addPrompt(e) {
async function getJsonStr() {
await new Promise(resolve => setTimeout(resolve, 1500));
await new Promise(resolve => setTimeout(resolve, loadTime));
let val1 = document.querySelector("#oldsix-area1 textarea").value
let val2 = document.querySelector("#oldsix-area2 textarea").value
@ -399,7 +411,12 @@ onUiLoaded(async => {
Elements.btnSends.forEach((item,index) => {
item.addEventListener('click', () => {
let elementprompt=index==1 ? Elements.imgpromt : Elements.txtpromt
elementprompt.value=Elements.RdtxtAreasEn[index].value
elementprompt.value=''
elementprompt.focus();
let str=Elements.RdtxtAreasEn[index].value
// console.log(str);
// document.execCommand('selectAll', false);
document.execCommand('insertText', false,str);
})
})

1
json/01起手式.json Normal file

File diff suppressed because one or more lines are too long

1
json/02人物.json Normal file
View File

@ -0,0 +1 @@
{"人设": {"公主": "princess", "舞者": "dancer", "啦啦队": "cheerleader", "芭蕾舞女演员": "ballerina", "体操队队长": "gym leader", "女服务员": "waitress", "和风女仆": "wa maid", "女仆": "maid", "偶像": "idol", "弓道": "kyuudou", "女武神": "valkyrie", "办公室小姐": "office lady", "赛车女郎": "race queen", "魔女": "Witch", "巫女": "miko", "修女": "nun", "牧师": "priest", "神职人员(基督教)": "cleric", "忍者": "ninja", "女警": "policewoman", "警察": "police", "医生": "doctor", "护士": "nurse", "眼镜娘": "glasses", "狐狸精": "kitsune", "公交车": "public use", "女王(SM中)": "dominatrix", "机娘": "mecha musume", "另一种机娘": "gynoid", "类人机器人": "humanoid robot", "半机械人": "cyborg"}, "性别/年龄": {"单人": "solo", "女人": "female", "男人": "male", "性转": "genderswap", "扶她": "futanari", "伪娘": "otoko no ko", "儿 童": "child", "未成年": "underage", "年轻": "young", "熟女": "mature female", "老年": "old"}, "胸部": {"胸": "chest", "胸肌": "pectorals", "大胸肌": "large pectorals", "小胸部(B": "small breasts", "中等胸部(C": "medium breasts", "大胸部(D": "big breasts", "巨乳(E": "huge breasts", "魔乳(F": "gigantic breasts", "拉开衣服": "unbuttoned clothes"}, "皮肤": {"有光泽的皮肤": "shiny skin", "苍白皮肤": "pale skin", "白皙皮肤": "white skin", "棕色皮肤": "brown skin", "深色皮肤": "deep skin", "偏黑皮肤": "black skin", "晒日线": "tan lines", "泳装晒痕": "pang", "如白色大理石般有光泽的肌肤": "white marble glowing skin"}, "体型": {"模特": "model", "苗条": "slender", "诱惑": "glamor", "丰满": "plump", "肥胖": "fat", "高大": "tall", "纤弱": "petite", "肌肉": "muscular", "细腰": "narrow waist", "大屁股": "wide hips"}, "眉毛": {"浓眉": "thick eyebrows", "眉毛翘起": "cocked eyebrow", "短眉毛": "short eyebrows", "V字眉": "v-shaped eyebrows"}}

1
json/03服饰.json Normal file

File diff suppressed because one or more lines are too long

1
json/04人物发型.json Normal file
View File

@ -0,0 +1 @@
{"头发颜色": {"绿头发": "green hair", "粉色头发": "pink hair", "红头发": "red hair", "铂金色头发": "platinum blonde hair", "青色头发": "azure hair", "水蓝色头发": "aqua hair", "红宝石色头发": "ruby hair", "两色头发": "two-tone hair", "多色的头发": "multicolored hair", "渐变头发": "gradient hair", "分色头发": "split-color hair", "彩虹头发": "rainbow hair"}, "长度": {"长发": "long hair", "很短的头发": "very short hair", "短发": "short hair", "后短发,前长发": "short hair with long locks", "中等头发": "medium hair", "很长的头发": "very long hair", "超级长的头发": "absurdly long hair"}, "马尾": {"马尾": "ponytail", "双马尾": "twintails", "高双马尾": "canonicals", "低双马尾": "low twintails", "披肩单马尾": "one side up", "披肩双马尾": "two side up", "短马尾": "short ponytail", "侧马尾": "side ponytail"}, "辫子": {"辫子": "braid", "法式辫子": "french braid", "辫子头发": "braiding hair", "双辫子": "twin braids", "三股辫": "braid", "短辫子": "short braid", "长辫子": "long braid", "辫子刘海": "braided bangs", "辫式发髻": "braided bun", "麻花辫马尾": "braided ponytail", "法式冠编发": "crown braid", "多股(麻花)辫": "multiple braids", "披在一侧的单条辫": "side braid", "披在两侧的两条辫": "side braids", "单股辫": "single braid", "两条辫子": "twin braids"}, "刘海": {"进气口发型": "hair intakes", "发瓣": "hair flaps", "刘海": "bangs", "空气刘海": "air bangs", "齐刘海": "blunt bangs", "侧面空气刘海": "side blunt bangs", "中分刘海": "parted bangs", "斜刘海": "swept bangs", "不对称刘海": "asymmetric bangs"}, "其他": {"眼睛之间的头发": "hair between eyes", "头发覆盖一只眼": "hair over one eye", "头发遮住眉毛": "hair over one eyebrow", "透过头发可见腮红": "blush visible through hair", "透过头发可见眼睛": "eyes visible through hair", "头发撩到耳后": "hair behind ear", "披肩发": "hair over shoulder", "头发遮住三点": "hair censor", "头发披在胸上": "hair over breasts", "直发": "straight hair", "卷发": "curly hair", "波浪卷": "wavy hair", "钻头(配双)": "drill hair", "姬发式(齐刘海后长黑发": "hime cut", "齐而短头发(波波发": "bob cut", "公主发型": "princess head", "上半部分束起": "Half-up", "额头": "forehead", "扎过的头发": "tied hair", "低扎头发": "low tied hair", "多扎头发": "multi-tied hair", "丸子头": "double bun", "圆发髻": "hair bun", "芭蕾髻": "ballet hair bun", "尖头头发": "pointy hair", "羽毛头发": "feather hair", "弓形头发": "bow-shaped hair", "孤颈头发": "lone nape hair", "变换发型": "alternate hairstyle", "与原设不同头发长度": "alternate hair length", "鬓角": "sideburns", "长鬓角": "long sideburns", "侧边发辫": "sidelocks", "秃头": "bald", "鸟窝头|爆炸头": "afro", "尖刺的头发": "spiked hair"}}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"人设": {"公主": "princess", "舞者": "dancer", "啦啦队": "cheerleader", "芭蕾舞女演员": "ballerina", "体操队队长": "gym leader", "女服务员": "waitress", "和风女仆": "wa maid", "女仆": "maid", "偶像": "idol", "弓道": "kyuudou", "女武神": "valkyrie", "办公室小姐": "office lady", "赛车女郎": "race queen", "魔女": "Witch", "巫女": "miko", "修女": "nun", "牧师": "priest", "神职人员(基督教)": "cleric", "忍者": "ninja", "女警": "policewoman", "警察": "police", "医生": "doctor", "护士": "nurse", "眼镜娘": "glasses", "狐狸精": "kitsune", "公交车": "public use", "女王(SM中)": "dominatrix", "机娘": "mecha musume", "另一种机娘": "gynoid", "类人机器人": "humanoid robot", "半机械人": "cyborg"}, "性别/年龄": {"单人": "solo", "女人": "female", "男人": "male", "性转": "genderswap", "扶她": "futanari", "伪娘": "otoko no ko", "儿 童": "child", "未成年": "underage", "年轻": "young", "熟女": "mature female", "老年": "old"}, "胸部": {"胸": "chest", "胸肌": "pectorals", "大胸肌": "large pectorals", "小胸部(B": "small breasts", "中等胸部(C": "medium breasts", "大胸部(D": "big breasts", "巨乳(E": "huge breasts", "魔乳(F": "gigantic breasts"}, "皮肤": {"有光泽的皮肤": "shiny skin", "苍白皮肤": "pale skin", "白皙皮肤": "white skin", "棕色皮肤": "brown skin", "深色皮肤": "deep skin", "偏黑皮肤": "black skin", "晒日线": "tan lines", "泳装晒痕": "pang", "肌肉": "muscle", "如白色大理石般有光泽的肌肤": "white marble glowing skin"}, "头发样式": {"长发": "long hair", "很短的头发": "very short hair", "短发": "short hair", "后短发,前长发": "short hair with long locks", "中等头发": "medium hair", "很长的头发": "very long hair", "超级长的头发": "absurdly long hair", "眼睛之间的头发": "hair between eyes", "头发覆盖一只眼": "hair over one eye", "头发遮住眉毛": "hair over one eyebrow", "透过头发可见腮红": "blush visible through hair", "透过头发可见眼睛": "eyes visible through hair", "头发撩到耳后": "hair behind ear", "披肩发": "hair over shoulder", "头发遮住三点": "hair censor", "头发披在胸上": "hair over breasts", "直发": "straight hair", "卷发": "curly hair", "波浪卷": "wavy hair", "钻头(配双)": "drill hair", "姬发式(齐刘海后长黑发": "hime cut", "齐而短头发(波波发": "bob cut", "公主发型": "princess head", "上半部分束起": "Half-up", "额头": "forehead", "进气口发型": "hair intakes", "发瓣": "hair flaps", "刘海": "bangs", "空气刘海": "air bangs", "齐刘海": "blunt bangs", "侧面空气刘海": "side blunt bangs", "中分刘海": "parted bangs", "斜刘海": "swept bangs", "不对称刘海": "asymmetric bangs", "马尾马尾": "ponytail", "双马尾": "twintails", "高双马尾": "canonicals", "低双马尾": "low twintails", "披肩单马尾": "one side up", "披肩双马尾": "two side up", "短马尾": "short ponytail", "侧马尾": "side ponytail", "扎过的头发": "tied hair", "低扎头发": "low tied hair", "多扎头发": "multi-tied hair", "辫子": "braid", "法式辫子": "french braid", "辫子头发": "braiding hair", "双辫子": "twin braids", "三股辫": "braid", "短辫子": "short braid", "长辫子": "long braid", "辫子刘海": "braided bangs", "辫式发髻": "braided bun", "麻花辫马尾": "braided ponytail", "法式冠编发": "crown braid", "多股(麻花)辫": "multiple braids", "披在一侧的单条辫": "side braid", "披在两侧的两条辫": "side braids", "单股辫": "single braid", "两条辫子": "twin braids", "丸子头": "double bun", "圆发髻": "hair bun", "芭蕾髻": "ballet hair bun", "尖头头发": "pointy hair", "羽毛头发": "feather hair", "弓形头发": "bow-shaped hair", "孤颈头发": "lone nape hair", "变换发型": "alternate hairstyle", "与原设不同头发长度": "alternate hair length", "短呆毛": "ahoge", "心形呆毛": "heart ahoge", "长呆毛(天线毛)": "antenna hair", "鬓角": "sideburns", "长鬓角": "long sideburns", "侧边发辫": "sidelocks", "秃头": "bald", "鸟窝头|爆炸头": "afro", "尖刺的头发": "spiked hair"}, "头发颜色": {"挑染": "streaked hair", "银发": "silver hair", "灰发": "grey hair", "金发": "blonde hair", "棕色头发": "brown hair", "黑发": "black hair", "蓝发": "blue hair", "绿头发": "green hair", "粉色头发": "pink hair", "红头发": "red hair", "铂金色头发": "platinum blonde hair", "青色头发": "azure hair", "水蓝色头发": "aqua hair", "红宝石色头发": "ruby hair", "两色头发": "two-tone hair", "多色的头发": "multicolored hair", "渐变头发": "gradient hair", "分色头发": "split-color hair", "彩虹头发": "rainbow hair"}}

File diff suppressed because one or more lines are too long

1
json/动物装饰.json Normal file
View File

@ -0,0 +1 @@
{"翅膀": {"翅膀": "wings", "蝙蝠翅膀": "bat wings", "天使翅膀": "feathered wings", "恶魔翅膀": "demon wings", "蝴蝶翅膀": "butterfly wings", "冰纹理翅膀": "ice crystal texture wings", "龙翅膀": "dragon wings", "妖精翅膀": "fairy wings", "假翅膀": "fake wings", "头上翅膀": "head wings", "低位翅膀": "low wings", "迷你翅膀": "mini wings", "分离的翅膀": "detached wings"}, "尾巴": {"尾巴": "tail", "兔尾 ": "bunny tail", "猫尾 ": "cat tail", "狗尾 ": "dog tail", "鼠尾 ": "mouse tail", "狐狸尾 ": "fox tail", "老虎尾 ": "tiger tail", "松鼠尾 ": "squirrel tail", "狼尾 ": "wolf tail", "龙尾 ": "dragon tail", "马尾巴 ": "horse tail", "浣熊尾 ": "raccoon tail", "牛尾 ": "cow tail", "恶魔尾巴": "demon tail"}, "耳朵": {"兽耳 ": "animal ears", "蝙蝠耳": "bat ears", "猫耳 ": "cat ears", "狗耳 ": "dog ears", "狐耳 ": "fox ears", "兔耳 ": "bunny ears", "浣熊耳": "raccoon ears", "老鼠耳": "mouse ears", "松鼠耳": "squirrel ears", "熊耳 ": "bear ears", "虎耳 ": "tiger ears", "狼耳 ": "wolf ears", "马耳 ": "horse ears", "牛耳 ": "cow ears", "羊耳 ": "sheep ears", "山羊耳": "goat ears", "狮耳 ": "lion ears", "熊猫耳": "panda ears", "鹿耳 ": "deer ears", "猴耳 ": "monkey ears", "猪耳 ": "pig ears", "鼬耳 ": "ferret ears", "羊驼耳": "alpaca ears", "尖耳 ": "pointy ears", "长尖耳": "long pointy ears", "垂耳 ": "floppy ears"}, "角": {"山羊角": "goat  horns", "羊角": "sheep  horns", "机械角": "mechanical  horns", "奶牛角": "cow  horns", "恶魔之角": "demon  horns", "断角": "broken  horn", "龙之角": "dragon  horns"}}

1
json/抽卡机.json Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"正面起手": {"简单起手": "best quality,masterpiece,1girl", "真实风格起手": "best quality,masterpiece,realistic,1girl", "提高质量": "HDR,UHD,8K", "最佳质量": "best quality", "写实": "realistic", "杰作": "masterpiece", "更多细节": "Highly detailed", "简单背景": "simple background", "模糊背景": "blurry background", "一个女孩": "1girl", "演播室灯光": "Studio lighting", "超精细绘画": "ultra-fine painting", "聚焦清晰": "sharp focus", "物理渲染": "physically-based rendering", "极详细刻画": "extreme detail description", "改善细节": "Professional", "添加鲜艳色彩": "Vivid Colors", "虚化模糊景": "Bokeh", "相机设置": "(EOS R8,50mm,F1.2,8K,RAW photo", "老照片": "High resolution scan", "素描": "Sketch", "绘画": "Painting", "上半身": "upper body", "全身": "full body"}, "负面起手": {"超级负面": "multiple breasts, (mutated hands and fingers", "基础负面": "nsfw,logo,text,badhandv4,EasyNegative,ng_deepnegative_v1_75t,rev2-badprompt,verybadimagenegative_v1.3,negative_hand-neg,mutated hands and fingers,poorly drawn face,extra limb,missing limb,disconnected limbs,malformed hands,ugly", "NSFW": "nsfw,logo,text", "embeddings": "badhandv4,EasyNegative,ng_deepnegative_v1_75t,rev2-badprompt,verybadimagenegative_v1.3,negative_hand-neg,bad-picture-chill-75v", "变异手指": "mutated hands and fingers", "畸形的": "deformed", "解剖不良": "bad anatomy", "毁容": "disfigured", "脸不好": "poorly drawn face", "变异的": "mutated", "多余肢体": "extra limb", "丑陋": "ugly", "手画得差": "poorly drawn hands", "缺少的肢体": "missing limb", "漂浮的四肢": "floating limbs", "肢体不连贯": "disconnected limbs", "畸形的手": "malformed hands", "脱离焦点": "out of focus", "长颈": "long neck", "身体长": "long body"}}

View File

@ -1 +0,0 @@
{"镜头角度": {"正面视角": "front view", "侧面视角": "from_side", "从上方↘": "from_above", "从下方↗": "from_below", "全身像": "full_body", "上半身": "upper_body", "下半身": "lower_body", "上半身+上半大腿(牛仔镜头)": "cowboy_shot", "肖像画(脸+肩+偶尔再加胸)": "portrait", "特写": "close-up", "微距摄像": "macro_shot", "近景": "selfie", "自拍视点": "close shot", "多视角分解": "multiple_views", "裙底视角": "phone_screen", "偷窥": "peeking", "偷窥(的姿态)": "peeking_out", "偷窥(强调视角)": "peeping", "从衬衫下方瞥": "upshirt", "从裙底瞥": "upshorts"}, "人物眼神方向": {"面向镜头": "facing_viewer", "看向阅图者": "looking_at_viewer", "眼神接触": "eye-contact", "盯着看": "eyeball", "凝视": "staring", "回眸": "looking_back", "人物倾斜": "gradient", "人物视角向下看↘": "looking_down", "人物视角抬头看↗": "looking_up", "面向别处": "facing_away", "看向侧面": "looking_to_the_side", "看着别处": "looking_away", "遥望": "looking_afar", "向外看": "looking_outside", "歪头": "head_tilt", "低头": "head_down", "照镜子": "looking_at_mirror"}, "画风": {"高分辨率(常用)": "highres", "超高分辨率": "absurdres", "极高分辨率": "incredibly_absurdres", "超级高分辨率": "huge_filesize", "壁纸": "wallpaper", "低分辨率": "lowres", "漫画": "comic", "立绘样式": "tachi-e", "官方艺术风格": "official_style", "写实": "realistic", "厚涂(风格)": "painting_(medium)", "厚涂": "Impasto", "照片(风格)": "photo_(medium)", "油画": "oil_painting", "真实": "real", "照片(拍立得)": "polaroid", "传统画布(如纸等)": "traditional_media", "签绘风格": "faux_traditional_media", "马克笔": "marker_(medium)", "马克笔(中性灰色)": "copics", "铅笔速写": "pencil_sketch_lines", "Q版": "chibi", "水墨(国风)": "ink", "水彩": "watercolor", "抱枕": "dakimakura_(medium)", "复古风格": "retro_arfstyle", "四格": "4koma", "赛璐璐": "celluloid", "剪影": "silhouette", "塔罗牌": "tarot", "设定集": "artbook", "杂志封面": "magazine cover", "海报": "poster"}, "光影": {"电影光效": "cinematic_lighting", "镜头光晕": "lens_flare", "光追": "reality_ray_tracing", "正面光": "frontlight", "侧面光": "sidelight", "背光": "backlight", "逆光": "backlighting", "边缘光": "rim_light", "强边缘光": "strong_rim_light", "自上而下的光线": "god_rays", "明亮的射线光束": "light_rays", "环境光": "ambient_light"}}