import random
# 核心正向提示词 (Positive Prompt)
base_prompt = """
(masterpiece, best quality, ultra-detailed),
3D render style, C4D texture, clay material,
cute Chaozhou Yingge dance character, wearing traditional opera makeup,
holding a pink peach-shaped pastry (Red Peach Cake),
standing on a blue planet-shaped cake,
starry night background, glowing lights, dreamy atmosphere,
commercial photography lighting, depth of field.
"""
# 负面提示词 (Negative Prompt) - 去除崩坏手指和多余肢体
negative_prompt = """
low quality, jpeg artifacts, ugly, deformed, noisy, blurry,
distorted, extra limbs, missing fingers, bad anatomy,
text, watermark, signature.
"""
# 模拟批量生成配置
def generate_config(batch_size=5):
configs = []
for i in range(batch_size):
# 随机微调CFG Scale以增加多样性
cfg_scale = random.uniform(7.0, 9.0)
prompt_variant = base_prompt + f", variation {i}"
configs.append({
"id": i,
"prompt": prompt_variant,
"neg_prompt": negative_prompt,
"cfg_scale": round(cfg_scale, 1),
"steps": 30
})
return configs
# 输出配置供SD WebUI API调用
if __name__ == "__main__":
batch = generate_config()
print(f"准备生成 {len(batch)} 张高清商用级素材...")
for item in batch:
print(f"ID: {item['id']} | CFG: {item['cfg_scale']}")