移除画布生图反向提示词中的低清晰度
「低清晰度」按字面否定低分辨率,与像素艺术这类以低分辨率重采样为本质的 画风直接对冲:勾选 style=pixelArt 时,提示词端要求硬边像素块,反向提示词 却压制低清晰度,两条指令互相打架。 覆盖画布的四个生图入口:普通图片、角色形象(共用 false 分支)、UI 设计图 (true 分支)、修改图片(两个 provider 分支的内联字面量)。图标图集的 negative 本来就传 None,不受影响。 其余玩法(拼图、消除、跳跃、方洞、大鱼、吠叫、自定义世界场景图)的同名 词条保持不动,本次只收口画布项目。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -4125,7 +4125,7 @@ pub(crate) async fn edit_editor_image_for_owner(
|
||||
&settings,
|
||||
generation_options.model,
|
||||
prompt.as_str(),
|
||||
Some("文字、水印、边框、按钮、UI 控件、低清晰度、变形主体"),
|
||||
Some("文字、水印、边框、按钮、UI 控件、变形主体"),
|
||||
generation_options.aspect_ratio,
|
||||
provider_size.as_str(),
|
||||
reference_images.as_slice(),
|
||||
@@ -4145,7 +4145,7 @@ pub(crate) async fn edit_editor_image_for_owner(
|
||||
&settings,
|
||||
generation_options.model,
|
||||
prompt.as_str(),
|
||||
Some("文字、水印、边框、按钮、UI 控件、低清晰度、变形主体"),
|
||||
Some("文字、水印、边框、按钮、UI 控件、变形主体"),
|
||||
provider_size.as_str(),
|
||||
1,
|
||||
reference_images.as_slice(),
|
||||
@@ -9171,9 +9171,9 @@ fn build_editor_ui_design_prompt(user_input: &str, has_icon_spec_reference: bool
|
||||
|
||||
fn editor_image_generation_negative_prompt(is_ui_design_generation: bool) -> &'static str {
|
||||
if is_ui_design_generation {
|
||||
"水印、无界面的纯场景插画、海报、地图、低清晰度、变形主体、不可读布局"
|
||||
"水印、无界面的纯场景插画、海报、地图、变形主体、不可读布局"
|
||||
} else {
|
||||
"文字、水印、边框、按钮、UI 控件、低清晰度、变形主体"
|
||||
"文字、水印、边框、按钮、UI 控件、变形主体"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12894,7 +12894,7 @@ mod tests {
|
||||
|
||||
assert_eq!(
|
||||
editor_image_generation_negative_prompt(false),
|
||||
"文字、水印、边框、按钮、UI 控件、低清晰度、变形主体"
|
||||
"文字、水印、边框、按钮、UI 控件、变形主体"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user