feat:调整prompt

This commit is contained in:
bx1834938347-prog 2025-12-09 09:48:26 +08:00
parent 16c6bae7d1
commit 5f9aad3732
2 changed files with 6 additions and 3 deletions

View File

@ -57,11 +57,13 @@ func (g *AiGenerator) TextToImage(prompt string, size string, n int) (*TextToIma
Input: TextToImageInput{
Prompt: prompt,
NegativePrompt: "低质量、残缺、人物正脸、多余的手指、乱码字符和文字、比例不良丶场景以国内场景为主",
//NegativePrompt: "人物正脸",
},
Params: TextToImageParameters{
Size: size,
N: n,
Seed: generateSeed(),
Size: size,
N: n,
Seed: generateSeed(),
NegativePrompt: "低质量、残缺、人物正脸、多余的手指、乱码字符和文字、比例不良、场景以国内场景为主",
},
}

View File

@ -652,6 +652,7 @@ func (p *BatchProcessor) generateImage(req *excelData) (string, error) {
prompt += fmt.Sprintf("3艺人简介%s艺人简介的优先级要低只依据艺人简介的风格", req.Desc)
}
prompt += "\n请基于标题和内容生成单张图片高质量高分辨率。"
prompt += "\n要求不能出现:低质量、残缺、人物正脸、多余的手指、乱码字符和文字、比例不良,场景以国内场景为主"
result, err := NewAiGenerator().TextToImage(
prompt,