From bfd4fce32ea88dbffd90f5ac0a99c94f8dad8d23 Mon Sep 17 00:00:00 2001 From: sudoskys Date: Sun, 10 Mar 2024 00:28:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Add=20new=20prompt=20factor?= =?UTF-8?q?y=20cells=20for=20Clothing,=20Expression,=20Accessories,=20Char?= =?UTF-8?q?acter=20Design,=20Body,=20Scene,=20Art=20Style,=20Environment,?= =?UTF-8?q?=20Illustrator,=20Action,=20Face,=20Background,=20r18,=20Compos?= =?UTF-8?q?ition.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utils/prompt_factory/cell/Accessories.py | 43 +++++++++++++++++++ .../utils/prompt_factory/cell/Action.py | 3 ++ .../utils/prompt_factory/cell/Art_Style.py | 3 ++ .../utils/prompt_factory/cell/Background.py | 3 ++ .../utils/prompt_factory/cell/Body.py | 3 ++ .../prompt_factory/cell/Character_Design.py | 3 ++ .../utils/prompt_factory/cell/Clothing.py | 3 ++ .../utils/prompt_factory/cell/Composition.py | 3 ++ .../utils/prompt_factory/cell/Environment.py | 3 ++ .../utils/prompt_factory/cell/Expression.py | 3 ++ .../utils/prompt_factory/cell/Face.py | 3 ++ .../utils/prompt_factory/cell/Illustrator.py | 3 ++ .../utils/prompt_factory/cell/Scene.py | 3 ++ .../utils/prompt_factory/cell/r18.py | 3 ++ 14 files changed, 82 insertions(+) create mode 100644 src/novelai_python/utils/prompt_factory/cell/Accessories.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Action.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Art_Style.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Background.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Body.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Character_Design.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Clothing.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Composition.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Environment.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Expression.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Face.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Illustrator.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/Scene.py create mode 100644 src/novelai_python/utils/prompt_factory/cell/r18.py diff --git a/src/novelai_python/utils/prompt_factory/cell/Accessories.py b/src/novelai_python/utils/prompt_factory/cell/Accessories.py new file mode 100644 index 0000000..e31613c --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Accessories.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +from enum import Enum + +_Accessories = ['主题发饰', '乐器', '体育', '其他', '其他1', '其他2', '其他3', '厨具', '头顶', '容器', '尾巴', '工具', + '手套', '数码', '文具', '日用', '材料', '武器', '汤和饮料', '玩具', '甜点', '翅膀', '耳饰', '肉禽蛋', + '胸部', '脸部', '腕臂', '腰部', '腿脚', '调味料和酱汁', '颈饰', '食物', '餐具', '鱼和海鲜'] + + +class AccessoryType(Enum): + THEME_DECORATIONS = '主题发饰' + INSTRUMENTS = '乐器' + SPORTS = '体育' + OTHER1 = '其他' + OTHER2 = '其他1' + OTHER3 = '其他2' + OTHER4 = '其他3' + KITCHENWARE = '厨具' + HEAD = '头顶' + CONTAINER = '容器' + TAIL = '尾巴' + TOOLS = '工具' + GLOVES = '手套' + DIGITAL = '数码' + STATIONERY = '文具' + DAILY_USE = '日用' + MATERIALS = '材料' + WEAPONS = '武器' + SOUP_AND_DRINKS = '汤和饮料' + TOYS = '玩具' + DESSERTS = '甜点' + WINGS = '翅膀' + EAR_DECORATIONS = '耳饰' + MEAT_POULTRY_AND_EGGS = '肉禽蛋' + CHEST = '胸部' + FACE = '脸部' + ARM_WRIST = '腕臂' + WAIST = '腰部' + LEG_FOOT = '腿脚' + CONDIMENTS_AND_SAUCE = '调味料和酱汁' + NECK_DECORATIONS = '颈饰' + FOOD = '食物' + TABLEWARE = '餐具' + FISH_AND_SEAFOOD = '鱼和海鲜' diff --git a/src/novelai_python/utils/prompt_factory/cell/Action.py b/src/novelai_python/utils/prompt_factory/cell/Action.py new file mode 100644 index 0000000..91c4793 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Action.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Action = ['互动', '体育运动', '倒立', '倾靠', '其他1', '其他互动', '其他姿势', '双人姿势', '坐姿', '头发互动', '头部姿势', '娱乐', '室内日常', '战斗', '户外', '手位置', '手指姿势', '手臂姿势', '指向', '数码', '文具', '日用', '桌案', '植物', '武器', '沐浴', '活动', '玩具', '移动', '穿脱衣', '站姿', '胸部姿势', '腿部姿势', '艺术', '衣服互动', '趴姿', '跪姿', '躺姿', '造型', '音乐', '食物', '魔幻'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Art_Style.py b/src/novelai_python/utils/prompt_factory/cell/Art_Style.py new file mode 100644 index 0000000..15d98c4 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Art_Style.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Art_style = ['传统材质', '作品', '其他风格', '年代风', '流派', '艺术家'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Background.py b/src/novelai_python/utils/prompt_factory/cell/Background.py new file mode 100644 index 0000000..290980c --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Background.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Background = ['乐器', '图案背景', '实物背景', '室外设施', '家具', '工具', '幻想系', '摆设', '电器', '简单色背景', '自然物', '装修', '载具'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Body.py b/src/novelai_python/utils/prompt_factory/cell/Body.py new file mode 100644 index 0000000..ba8b671 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Body.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Body = ['侧发', '其他', '其他装饰', '兽耳', '刘海', '发质', '发量', '发髻', '手', '整体发型', '特殊耳', '肩', '胸', '腰部', '腹部', '腿部', '臀部', '花纹', '角', '足部', '辫子', '长度', '颈背', '颜色', '马尾'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Character_Design.py b/src/novelai_python/utils/prompt_factory/cell/Character_Design.py new file mode 100644 index 0000000..dc00cf9 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Character_Design.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Character_design = ['人外', '人物关系', '其他', '年龄', '幻想系职业', '性格', '机设', '现实系职业', '皮肤', '组成', '非人'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Clothing.py b/src/novelai_python/utils/prompt_factory/cell/Clothing.py new file mode 100644 index 0000000..feb9411 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Clothing.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Clothing = ['上衣', '下装', '中古系', '仪式', '兜帽', '其他', '其他种类', '内衣', '内衬', '内裤', '制服', '卫衣', '吊带', '和服', '大衣', '头部', '夹克', '居家', '开口(身体部位tag也可达露出目的)', '情趣', '扣式', '披风兜帽', '整体', '服装纹样', '未来系', '比基尼', '毛衣', '汉服', '泳衣', '洛丽塔', '现代系', '种族cos', '紧身衣', '职业cos', '背心', '节日', '衬衫', '袖子', '袜子', '装饰', '裙子', '裤子', '运动系', '连衣裙', '雨衣', '非衣服当衣服', '鞋子', '领子'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Composition.py b/src/novelai_python/utils/prompt_factory/cell/Composition.py new file mode 100644 index 0000000..7ac087c --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Composition.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Composition = ['主题', '人物视线', '其他', '区域', '叶', '地平线', '天空', '日月', '昆虫', '构成', '火焰和爆炸', '烟', '焦点', '纸', '背景关系', '自然现象', '花', '视角', '角度', '设计元素', '远近', '透视', '魔幻'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Environment.py b/src/novelai_python/utils/prompt_factory/cell/Environment.py new file mode 100644 index 0000000..bf86c42 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Environment.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Environment = ['中型陆地哺乳', '主题', '交通', '交通工具', '人造景观', '其他', '军事', '办公', '园林', '场地', '大型陆地哺乳', '太空', '娱乐旅宿', '室内其他', '室外其他', '家居', '小型陆地哺乳', '屋外', '工业', '市政', '市镇', '幻兽种', '建筑', '建筑风格', '恐龙', '果实', '树木', '校园', '水产', '海洋哺乳', '游乐设施', '灌木', '爬行两栖', '自然景观', '自然环境', '节肢', '花', '草', '藤类', '设施', '购物', '运动场', '餐饮', '鸟类'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Expression.py b/src/novelai_python/utils/prompt_factory/cell/Expression.py new file mode 100644 index 0000000..8ddbdb0 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Expression.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Expression = ['其他', '哀', '喜', '嘴', '怒', '惊', '慌', '眼', '累', '羞'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Face.py b/src/novelai_python/utils/prompt_factory/cell/Face.py new file mode 100644 index 0000000..9c2c8ce --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Face.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Face = ['修饰', '其他', '嘴巴', '整体', '眉毛', '眼部', '眼部装饰', '瞳孔形状', '颜色', '额头'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Illustrator.py b/src/novelai_python/utils/prompt_factory/cell/Illustrator.py new file mode 100644 index 0000000..5742604 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Illustrator.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Illustrator = ['画师'] diff --git a/src/novelai_python/utils/prompt_factory/cell/Scene.py b/src/novelai_python/utils/prompt_factory/cell/Scene.py new file mode 100644 index 0000000..03ec709 --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/Scene.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_Scene = ['一天', '光', '其他画面', '其他符号', '功能', '动画', '四季', '封面和书本', '影', '插画和CG', '气泡', '滤镜', '漫画', '画面元素', '画面增强', '线条', '节日', '设定', '音符', '颜色风格'] diff --git a/src/novelai_python/utils/prompt_factory/cell/r18.py b/src/novelai_python/utils/prompt_factory/cell/r18.py new file mode 100644 index 0000000..fb9481a --- /dev/null +++ b/src/novelai_python/utils/prompt_factory/cell/r18.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +_R18 = ['17.9tag']