From bf6185c62ef6ee6cf1d13ad4018d5b1005c8fb0a Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Fri, 03 Apr 2026 09:34:32 +0800
Subject: [PATCH] 修改了人物 场景提示词

---
 aigc-director/aigc-claw/backend/prompts/loader.py                  |   70 -----------------
 /dev/null                                                          |  109 ---------------------------
 aigc-director/aigc-claw/backend/core/agents/character_agent.py     |   20 ++--
 aigc-director/aigc-claw/backend/prompts/character/character_zh.txt |   20 ++--
 aigc-director/aigc-claw/backend/prompts/setting/setting_zh.txt     |    8 -
 5 files changed, 22 insertions(+), 205 deletions(-)

diff --git a/aigc-director/aigc-claw/backend/core/agents/character_agent.py b/aigc-director/aigc-claw/backend/core/agents/character_agent.py
index 09de1cd..f836ae8 100644
--- a/aigc-director/aigc-claw/backend/core/agents/character_agent.py
+++ b/aigc-director/aigc-claw/backend/core/agents/character_agent.py
@@ -16,7 +16,7 @@
 from concurrent.futures import ThreadPoolExecutor, as_completed
 
 from .base_agent import AgentInterface
-from prompts.loader import load_prompt, load_style_prompt
+from prompts.loader import load_prompt
 
 logger = logging.getLogger(__name__)
 
@@ -31,19 +31,19 @@
 
     @staticmethod
     def _char_prompt(name: str, desc: str, style: str, species: str = "") -> str:
-        """角色4视图提示词 - 从风格提示词文件加载"""
-        # 加载风格提示词模板
-        template = load_style_prompt('character', style)
+        """角色4视图提示词 - 直接加载 character_zh 模板"""
+        # 加载基础角色提示词模板
+        template = load_prompt('character', 'character', 'zh')
         # 替换角色信息
-        return template.format(name=name, desc=desc)
+        return template.format(name=name, desc=desc, style=style)
 
     @staticmethod
     def _setting_prompt(name: str, desc: str, style: str) -> str:
-        """场景全景图提示词 - 从风格提示词文件加载"""
-        # 加载风格提示词模板
-        template = load_style_prompt('setting', style)
+        """场景全景图提示词 - 直接加载 setting_zh 模板"""
+        # 加载基础场景提示词模板
+        template = load_prompt('setting', 'setting', 'zh')
         # 替换场景信息
-        return template.format(name=name, desc=desc)
+        return template.format(name=name, desc=desc, style=style)
 
     # ─── 文件管理(基于唯一ID) ───
 
@@ -138,7 +138,7 @@
             base_prompt = self._setting_prompt(name, desc, style)
 
         video_ratio = "16:9"
-        resolution = "1080P"
+        resolution = "4K"
         current_prompt = base_prompt
 
         for iteration in range(max_iterations):
diff --git a/aigc-director/aigc-claw/backend/prompts/character/character_styles.txt b/aigc-director/aigc-claw/backend/prompts/character/character_styles.txt
deleted file mode 100644
index caecd0a..0000000
--- a/aigc-director/aigc-claw/backend/prompts/character/character_styles.txt
+++ /dev/null
@@ -1,171 +0,0 @@
-# Character Reference Sheet Prompt Templates
-# 角色参考图提示词模板(按风格分类)
-# 共用 4 视图结构,风格特定视觉描述
-# 使用方式:根据 {style} 变量选择对应的模板
-
-# ============================================================
-# 共用 4 视图结构定义 (所有风格通用)
-# ============================================================
-# Four-view structure template (shared across all styles):
-# 1) front-facing portrait (head and shoulders)
-# 2) front-facing full body (standing in natural pose)
-# 3) side-view full body (standing in natural pose)
-# 4) back-view full body (standing in natural pose)
-# ALL views show identical character with perfectly consistent appearance, outfit, and lighting
-
-# ============================================================
-# 共用面部要求 (所有风格通用)
-# ============================================================
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin texture.
-
-# ============================================================
-# realistic - 写实摄影风格
-# ============================================================
-[realistic]
-Photorealistic character reference sheet, actual photograph style, pure white background.
-Four views of the same real person arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (standing in natural resting pose),
-3) side-view full body (natural resting pose),
-4) back-view full body (natural resting pose).
-ALL views show identical character with perfectly consistent appearance, outfit, and lighting.
-Portrait shows head to waist; others show complete body head to feet.
-Ultra high quality photography, 8k resolution, sharp focus, 85mm lens, f/2.8, soft studio lighting, even illumination.
-Realistic skin texture with subtle imperfections, fabric has natural folds and highlights.
-NO text, NO labels, NO annotations, NO captions, NO watermarks on image.
-NOT an illustration, NOT a drawing, NOT anime style.
-Character: {name} — {desc}
-
-# ============================================================
-# anime - 动漫风格
-# ============================================================
-[anime]
-Anime character reference sheet, clean vector art style, white background.
-Four views of the same anime character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (standing in natural pose),
-3) side-view full body (natural pose),
-4) back-view full body (natural pose).
-ALL views show IDENTICAL character with perfectly consistent appearance, outfit, hair, and facial features.
-Portrait shows head to waist; others show complete body head to feet.
-Clean anime linework, vibrant colors, cel-shaded rendering style.
-High quality anime illustration, masterpiece, crisp details.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO watermarks on image.
-Character: {name} — {desc}
-
-# ============================================================
-# comic-book - 漫画风格
-# ============================================================
-[comic-book]
-Comic book character reference sheet, comic panel art style, white background.
-Four views of the same comic character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (heroic pose),
-3) side-view full body (action pose),
-4) back-view full body (standing pose).
-ALL views show IDENTICAL character with perfectly consistent appearance, costume, and signature features.
-Portrait shows head to waist; others show complete body head to feet.
-Bold ink lines, comic shading (hatching/cross-hatching), dynamic comic book art style.
-High quality comic illustration, vibrant ink colors, dramatic lighting.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO speech bubbles on image.
-Character: {name} — {desc}
-
-# ============================================================
-# 3d-disney - 迪士尼3D风格
-# ============================================================
-[3d-disney]
-3D Disney-style character reference sheet, CGI animated movie style, pure white background.
-Four views of the same 3D animated character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (friendly pose),
-3) side-view full body (character profile),
-4) back-view full body (standing pose).
-ALL views show IDENTICAL character with perfectly consistent appearance, costume, and features.
-Portrait shows head to waist; others show complete body head to feet.
-Disney Pixar CGI quality, toon shader rendering, smooth 3D geometry, clean textures.
-High quality 3D render, soft shadows, cinematic lighting, feature film quality.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO watermarks on image.
-Character: {name} — {desc}
-
-# ============================================================
-# watercolor - 水彩风格
-# ============================================================
-[watercolor]
-Watercolor character reference sheet, painterly art style, white background.
-Four views of the same character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (elegant pose),
-3) side-view full body (graceful pose),
-4) back-view full body (standing pose).
-ALL views show IDENTICAL character with perfectly consistent appearance, outfit, and features.
-Portrait shows head to waist; others show complete body head to feet.
-Soft watercolor painting texture, flowing color washes, delicate brush strokes, translucent layers.
-High quality watercolor illustration, artistic masterpiece, organic color blending.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO watermarks on image.
-Character: {name} — {desc}
-
-# ============================================================
-# oil-painting - 油画风格
-# ============================================================
-[oil-painting]
-Oil painting character reference sheet, classical fine art style, white background.
-Four views of the same character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (noble pose),
-3) side-view full body (aristocratic pose),
-4) back-view full body (standing pose).
-ALL views show IDENTICAL character with perfectly consistent appearance, attire, and features.
-Portrait shows head to waist; others show complete body head to feet.
-Rich oil paint texture, impasto brushwork, classical portraiture technique, deep colors.
-High quality oil painting, museum-quality masterpiece, dramatic chiaroscuro lighting.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO watermarks on image.
-Character: {name} — {desc}
-
-# ============================================================
-# cyberpunk - 赛博朋克风格
-# ============================================================
-[cyberpunk]
-Cyberpunk character reference sheet, futuristic sci-fi style, white background.
-Four views of the same cybernetic character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders, showing cybernetics),
-2) front-facing full body (tech-enhanced pose),
-3) side-view full body (cyberpunk stance),
-4) back-view full body (with tech gear visible).
-ALL views show IDENTICAL character with perfectly consistent appearance, cybernetic augmentations, and outfit.
-Portrait shows head to waist; others show complete body head to feet.
-Neon lighting, chrome/metallic surfaces, holographic elements, RGB accents.
-High quality cyberpunk illustration, sci-fi concept art, futuristic tech aesthetic.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO HUD elements on image.
-Character: {name} — {desc}
-
-# ============================================================
-# chinese-ink - 中国水墨风格
-# ============================================================
-[chinese-ink]
-Chinese ink painting (水墨画) character reference sheet, traditional East Asian art style, white background.
-Four views of the same character arranged in a single row from left to right:
-1) front-facing portrait (head and shoulders),
-2) front-facing full body (classical pose),
-3) side-view full body (traditional stance),
-4) back-view full body (standing pose).
-ALL views show IDENTICAL character with perfectly consistent appearance, clothing, and features.
-Portrait shows head to waist; others show complete body head to feet.
-Ink wash (墨色) rendering, Gongbi/Boneless brush technique, subtle ink gradients, rice paper texture.
-High quality Chinese ink painting, traditional scroll art aesthetics, elegant brushwork.
-DO NOT describe or specify eye color. Leave eye color unspecified.
-Smooth, clear face, no blemishes, no spots, perfect skin.
-NO text, NO labels, NO annotations, NO captions, NO seals/stamps on image.
-Character: {name} — {desc}
diff --git a/aigc-director/aigc-claw/backend/prompts/character/character_zh.txt b/aigc-director/aigc-claw/backend/prompts/character/character_zh.txt
index 517ef71..cbf0731 100644
--- a/aigc-director/aigc-claw/backend/prompts/character/character_zh.txt
+++ b/aigc-director/aigc-claw/backend/prompts/character/character_zh.txt
@@ -1,11 +1,9 @@
-Character reference sheet, {style} style, white background,
-4 views of the same character arranged in a single row from left to right:
-1) front-facing close-up portrait (head and upper body),
-2) front-facing full body ({pose_note}),
-3) side-view full body ({pose_note}),
-4) back-view full body ({pose_note}).
-All views show the SAME character with consistent appearance and outfit.
-The close-up shows head-to-waist; the other three show complete body from head to feet.
-Pure image only, absolutely NO text, NO labels, NO annotations, NO captions, NO watermarks on the image.
-High quality, masterpiece, clean line art.
-Character: {name} — {desc}
+角色设计参考图,{style} 风格,纯白背景。高画质,杰作,高画质。
+角色描述: {name} — {desc}
+在同一排从左至右排列同一角色的 4 个视角:
+1) 正面肖像(胸部以上),
+2) 正面全身照,
+3) 侧面全身照,
+4) 背面全身照。
+所有视角必须展示同一个角色,外貌、发型、肤色和服装保持高度一致。
+画面纯净,绝对禁止出现任何文字、标签、标注、注释、说明或水印。
diff --git a/aigc-director/aigc-claw/backend/prompts/loader.py b/aigc-director/aigc-claw/backend/prompts/loader.py
index 47ab94f..40a06e3 100644
--- a/aigc-director/aigc-claw/backend/prompts/loader.py
+++ b/aigc-director/aigc-claw/backend/prompts/loader.py
@@ -94,73 +94,3 @@
         prompt = format_prompt("Hello {name}, you are {age} years old", name="John", age=30)
     """
     return template.format(**kwargs)
-
-
-# 风格提示词缓存
-_STYLE_PROMPTS_CACHE = {}
-
-
-def load_style_prompt(category: str, style: str) -> str:
-    """
-    加载指定风格的提示词
-
-    Args:
-        category: 提示词分类 (character, setting)
-        style: 风格名称 (realistic, anime, comic-book, 3d-disney, watercolor, oil-painting, cyberpunk, chinese-ink)
-
-    Returns:
-        风格提示词模板
-
-    Example:
-        prompt = load_style_prompt('character', 'realistic')
-    """
-    # 先检查缓存
-    cache_key = f"{category}:{style}"
-    if cache_key in _STYLE_PROMPTS_CACHE:
-        return _STYLE_PROMPTS_CACHE[cache_key]
-
-    # 加载风格提示词文件
-    file_path = os.path.join(PROMPTS_DIR, category, f"{style}_styles.txt")
-    if not os.path.exists(file_path):
-        # 回退到通用的风格文件 (character_styles.txt 或 setting_styles.txt)
-        fallback_file = "character_styles.txt" if category == "character" else "setting_styles.txt"
-        file_path = os.path.join(PROMPTS_DIR, category, fallback_file)
-
-    if not os.path.exists(file_path):
-        fallback_file = "character_styles.txt" if category == "character" else "setting_styles.txt"
-        raise FileNotFoundError(f"Style prompt file not found: {category}/{fallback_file}")
-
-    with open(file_path, 'r', encoding='utf-8') as f:
-        content = f.read()
-
-    # 解析风格块
-    current_style = None
-    style_templates = {}
-    for line in content.split('\n'):
-        line = line.strip()
-        # Skip empty lines and comment lines
-        if not line or line.startswith('#'):
-            continue
-        if line.startswith('[') and line.endswith(']'):
-            current_style = line[1:-1]
-            style_templates[current_style] = []
-        elif current_style and line:
-            style_templates[current_style].append(line)
-
-    # 转换为字符串
-    for s in style_templates:
-        style_templates[s] = '\n'.join(style_templates[s])
-
-    # 缓存所有风格
-    _STYLE_PROMPTS_CACHE.update(style_templates)
-
-    # 返回指定风格的提示词
-    if style in style_templates:
-        return style_templates[style]
-
-    # 回退到 anime 或第一个可用风格
-    if 'anime' in style_templates:
-        return style_templates['anime']
-
-    # 返回第一个可用的风格
-    return list(style_templates.values())[0] if style_templates else ""
diff --git a/aigc-director/aigc-claw/backend/prompts/setting/setting_styles.txt b/aigc-director/aigc-claw/backend/prompts/setting/setting_styles.txt
deleted file mode 100644
index 71b92f3..0000000
--- a/aigc-director/aigc-claw/backend/prompts/setting/setting_styles.txt
+++ /dev/null
@@ -1,109 +0,0 @@
-# Setting Scene Prompt Templates
-# 场景背景图提示词模板(按风格分类)
-# 使用方式:根据 {style} 变量选择对应的模板
-
-# ============================================================
-# realistic - 写实摄影风格
-# ============================================================
-[realistic]
-Photorealistic landscape photography, actual photograph style.
-Wide establishing shot, eye-level view, panoramic perspective.
-Natural lighting, golden hour or blue hour atmosphere, realistic textures.
-No characters, no people, no animals in frame.
-Cinematic composition, movie scene quality, 8K resolution.
-High quality photography, sharp focus, wide angle lens, f/8, professional camera.
-True-to-life environment, detailed textures, atmospheric depth.
-NO text, NO labels, NO watermarks on image.
-NOT an illustration, NOT a drawing, NOT anime style.
-Scene: {name} — {desc}
-
-# ============================================================
-# anime - 动漫风格
-# ============================================================
-[anime]
-Anime style landscape illustration, clean vector art aesthetic.
-Wide establishing shot, eye-level view, panoramic perspective.
-Vibrant colors, cel-shaded rendering, anime background art style.
-No characters, no people, no animals in frame.
-Cinematic composition, high quality anime illustration, masterpiece.
-Crisp details, atmospheric background, anime movie quality.
-NO text, NO labels, NO watermarks on image.
-Scene: {name} — {desc}
-
-# ============================================================
-# comic-book - 漫画风格
-# ============================================================
-[comic-book]
-Comic book style landscape, comic panel art aesthetic.
-Wide establishing shot, eye-level view, dynamic perspective.
-Bold ink lines, comic shading (hatching/cross-hatching), vibrant colors.
-No characters, no people, no animals in frame.
-Comic book art style, dramatic lighting, comic panel composition.
-High quality comic illustration, vibrant ink colors, graphic novel aesthetic.
-NO text, NO speech bubbles, NO watermarks on image.
-Scene: {name} — {desc}
-
-# ============================================================
-# 3d-disney - 迪士尼3D风格
-# ============================================================
-[3d-disney]
-3D CGI animated movie style landscape, Disney Pixar aesthetic.
-Wide establishing shot, eye-level view, smooth 3D geometry.
-Toon shader rendering, soft shadows, cinematic lighting, feature film quality.
-No characters, no people, no animals in frame.
-Disney Pixar CGI quality, clean 3D environment, volumetric lighting.
-High quality 3D render, animated movie background, toon shading.
-NO text, NO labels, NO watermarks on image.
-Scene: {name} — {desc}
-
-# ============================================================
-# watercolor - 水彩风格
-# ============================================================
-[watercolor]
-Watercolor painting style landscape, painterly art aesthetic.
-Wide establishing shot, eye-level view, soft perspective.
-Flowing color washes, delicate brush strokes, translucent layers.
-No characters, no people, no animals in frame.
-Watercolor art style, organic color blending, artistic masterpiece.
-Soft texture, artistic render, traditional painting aesthetic.
-NO text, NO labels, NO watermarks on image.
-Scene: {name} — {desc}
-
-# ============================================================
-# oil-painting - 油画风格
-# ============================================================
-[oil-painting]
-Oil painting style landscape, classical fine art aesthetic.
-Wide establishing shot, eye-level view, classical composition.
-Rich oil paint texture, impasto brushwork, classical portraiture technique.
-No characters, no people, no animals in frame.
-Oil painting art style, dramatic chiaroscuro lighting, museum-quality masterpiece.
-Deep colors, detailed brushwork, traditional canvas texture.
-NO text, NO labels, NO watermarks on image.
-Scene: {name} — {desc}
-
-# ============================================================
-# cyberpunk - 赛博朋克风格
-# ============================================================
-[cyberpunk]
-Cyberpunk style landscape, futuristic sci-fi aesthetic.
-Wide establishing shot, eye-level view, dystopian perspective.
-Neon lighting, chrome/metallic surfaces, holographic elements, RGB accents.
-No characters, no people, no animals in frame.
-Cyberpunk cityscape, high-tech environment, volumetric fog.
-High quality cyberpunk illustration, sci-fi concept art, futuristic aesthetic.
-NO text, NO HUD elements, NO watermarks on image.
-Scene: {name} — {desc}
-
-# ============================================================
-# chinese-ink - 中国水墨风格
-# ============================================================
-[chinese-ink]
-Chinese ink painting (水墨画) style landscape, traditional East Asian art aesthetic.
-Wide establishing shot, eye-level view, traditional Chinese composition.
-Ink wash (墨色) rendering, Gongbi/Boneless brush technique, subtle ink gradients.
-No characters, no people, no animals in frame.
-Chinese landscape painting style, rice paper texture, traditional scroll art.
-High quality ink painting, elegant brushwork, classical Chinese aesthetics.
-NO text, NO seals/stamps, NO watermarks on image.
-Scene: {name} — {desc}
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/prompts/setting/setting_zh.txt b/aigc-director/aigc-claw/backend/prompts/setting/setting_zh.txt
index 13a52a7..3a746c6 100644
--- a/aigc-director/aigc-claw/backend/prompts/setting/setting_zh.txt
+++ b/aigc-director/aigc-claw/backend/prompts/setting/setting_zh.txt
@@ -1,5 +1,3 @@
-Panoramic landscape, eye-level wide shot, {style} style,
-no characters, no people, no animals,
-cinematic composition, establishing shot,
-high quality, masterpiece, Movie picture quality.
-Scene: {name} — {desc}
+全景远景,平视广角镜头,{style} 风格,电影级构图,杰作,高画质。
+场景描述: {name} — {desc}
+画面主体区域禁止出现人物、动物或其他活体,确保环境布景完整、构图平衡。
\ No newline at end of file

--
Gitblit v1.8.0