Stable Diffusion - 提示词翻译插件 sd-webui-prompt-all-in-one

欢迎关注我的CSDN:https://spike.blog.csdn.net/
本文地址:https://spike.blog.csdn.net/article/details/131649921

sd-webui-prompt-all-in-one 是一个基于 stable-diffusion-webui 的扩展,目的是提高 提示词/反向提示词 输入框的使用体验,拥有更直观、强大的输入界面功能,提供了自动翻译、历史记录和收藏等功能,还支持多种语言,以满足不同用户的需求。插件支持多种翻译接口,有些是免费的,有些是需要申请 API KEY 的。可以根据自己的需要选择合适的翻译接口,还包括一些自定义主题和其他高级功能。

具体功能,请参考sd-webui-prompt-all-in-one

启动命令:

python -u launch.py --port 9301 --xformers --no-half-vae --theme dark

修改扩展源:

https://gitee.com/akegarasu/sd-webui-extensions/raw/master/index.json

源码位于:modules/ui_extensions.py#L556,替换

# available_extensions_index = gr.Text(value="https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui-extensions/master/index.json", label="Extension index URL").style(container=False)
https://gitee.com/akegarasu/sd-webui-extensions/raw/master/index.json
available_extensions_index = gr.Text(value="https://gitee.com/akegarasu/sd-webui-extensions/raw/master/index.json", label="Extension index URL").style(container=False)

修改重新启动,即可。

安装插件:sd-webui-prompt-all-in-one

配置百度翻译,参考:https://bobtranslate.com/service/translate/baidu.html

设置路径:
Cloud

不要配置 ChatGPT Key,否则卡住。

测试模型:abyssorangemix3-aom3

参数:

masterpiece, best quality, ultra-detailed, illustration, 1girl, solo, fantasy, flying, broom, night sky, outdoors, magic, spells, moon, stars, clouds, wind, hair, cape, hat, boots, broomstick, glowing, mysterious, enchanting, whimsical, playful, adventurous, freedom, wonder, imagination, determination, skill, speed, movement, energy, realism, naturalistic, figurative, representational, beauty, fantasy culture, mythology, fairy tales, folklore, legends, witches, wizards, magical creatures, fantasy worlds, composition, scale, foreground, middle ground, background, perspective, light, color, texture, detail, beauty, wonder.
Negative prompt: nsfw,(worst quality, low quality:1.4), (lip, nose, tooth, rouge, lipstick, eyeshadow:1.4), ( jpeg artifacts:1.4), (depth of field, bokeh, blurry, film grain, chromatic aberration, lens flare:1.0), (1boy, abs, muscular, rib:1.0), greyscale, monochrome, dusty sunbeams, trembling, motion lines, motion blur, emphasis lines, text, title, logo, signature
Steps: 20, ENSD: 31337, Size: 512x832, Seed: 3080004317, Model: AOM3A3, Sampler: DPM++ SDE Karras, CFG scale: 7, Clip skip: 2, Model hash: eb4099ba9c, Hires steps: 20, Hires upscale: 2, Hires upscaler: Latent (nearest-exact), Denoising strength: 0.5

点击 自动读取 按钮,即:

Stable Diffusion - 提示词翻译插件 sd-webui-prompt-all-in-one_第1张图片

再进行翻译,提示词的翻译效果,如下:

Stable Diffusion - 提示词翻译插件 sd-webui-prompt-all-in-one_第2张图片

ControlNet 的 InpaintOnly + LaMaTile 的修复效果:

其他参考,使用

{masterpiece},ultra highres,official art,best quality,extremely detailed CG unity 8k wallpaper,(8k hd),(photorealistic),illustration,1girl,(random pose),(pretty face,detailed face),(hair ornament),(pink skinny leather jacket:1.2),sparkling,open one hand and grip the other tightly,(sleeveless),stockings,standing,(soaked),looking at viewer,elegant,(nightclub),(on stage),(stage lights),(crowd,audience:1.3),detailed background,<lora:nightclub:0.4>,
Negative prompt: (nsfw:1.2),(badhandv4:1.1),ng_deepnegative_v1_75t,(worst quality, low quality:1.4),nsfw,younger,loli,aged down,(fat,too fat,fat body),hands on chest,huge buttocks,huge butt,huge ass,thick legs,broken arm,fat body,mole,bad face,bald,underwear,sexual suggestion,naked,nude,(disheveled),watermark,(elf ears),(lips),naked,exposed,white shirt,(pregnant),(naked chest),bare waist,lace,sunlight,long neck,(twisted body),thick legs,thick waist,fat waist,small eyes,sunlight,(show cleavage),(bad face),(bad hands),
Steps: 25, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 1364435888, Size: 512x768, Model hash: 5493a0ec49, Model: AOM3A1B_orangemixs, Denoising strength: 0.3, Hires upscale: 2, Hires steps: 20, Hires upscaler: R-ESRGAN 4x+ Anime6B, Lora hashes: "nightclub: cb69cab8bd17", Version: v1.4.0

Used embeddings: badhandv4 [dba1], ng_deepnegative_v1_75t [1a3e]

其他

下载 RealESRGAN_x4plus_anime_6B

下载模型:

Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth" to stable_diffusion/stable-diffusion-webui/models/RealESRGAN/RealESRGAN_x4plus_anime_6B.pth

修改:

cd models/RealESRGAN/
wget https://ghproxy.com/https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth

Bug: NansException: A tensor with all NaNs was produced in Unet. Please help.

参考:NansException: A tensor with all NaNs was produced in Unet. Please help.

VAE的问题,启动命令,增加参数 --no-half-vae,即可。

模型参考

  • Rev-Animated模型:https://civitai.com/models/7371/rev-animated
  • 夜店LoRA:Nightclub Girls/Crazy Party Girls

你可能感兴趣的:(stable,diffusion,prompt)