今天继续围绕放大算法进行一些尝试。看看8X_NMKD-SUPERSCALE_150000_G的放大算法。
图像的底模采用OldFish_2348V12
使用最简单的提示词1girl,套了一个GoodHand-beta2的LoRA,在对人物形象做一些微调
<lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>
负面提示词主要就是常规的几个embedding和NSFW
nsfw,logo,text bad-artist badhandv4
初始图形采用的是竖版678*1024的分辨率,DPM++SDE Karras的采样器,采样步数33
高清放大算法使用了前面提到的8X_NMKD-SUPERSCALE_150000_G
高清分辨率采样步数:30
高清重绘强度0.3
放大倍率为3的时候,运行了7分钟左右发生错误
NansException: A tensor with all NaNs was produced in VAE. This could be because there's not enough precision to represent the picture. Try adding --no-half-vae commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.Time taken: 10m 16.83sTorch active/reserved: 17952/22066 MiB, Sys VRAM: 22437/24269 MiB (92.45%)
改成2倍放大2分钟出图
原始小图放大图像参数
8x_NMKD-Superscale_150000_G 双法放大2倍1girl,mid shot, nice hand,nice finger,good hand,good finger,<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4> Negative prompt: nsfw,logo,text bad-artist badhandv4 Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 2621774374, Face restoration: CodeFormer, Size: 768x1024, Model hash: bd399ee451, Model: OldFish_2348V12, Variation seed: 908520332, Variation seed strength: 1, Seed resize from: 568x952, Denoising strength: 0.3, Hires upscale: 2, Hires steps: 30, Hires upscaler: 8x_NMKD-Superscale_150000_G
提高采样步数到50,运行时间大约4分钟。
看看对比效果
新图接下来固定种子882626065换一个底模:xxmix9realistic_v30
高清采样步数50,重绘强度0.3
耗时基本接近4分钟
原始图像 放大图像1girl,mid shot, nice hand,nice finger,good hand,good finger,<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4> Negative prompt: nsfw,logo,text bad-artist badhandv4 Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 882626065, Face restoration: CodeFormer, Size: 768x1024, Model hash: 2030eae609, Model: xxmix9realistic_v30, Denoising strength: 0.3, Hires upscale: 2, Hires steps: 50, Hires upscaler: 8x_NMKD-Superscale_150000_G
增加正面提示词的复杂度,丰富图像细节。
原始图1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 882626065, Face restoration: CodeFormer, Size: 768x1024, Model hash: 2030eae609, Model: xxmix9realistic_v30
接下里采用高清修复,耗时接近4分钟
放大后的效果1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 882626065, Face restoration: CodeFormer, Size: 768x1024, Model hash: 2030eae609, Model: xxmix9realistic_v30, Denoising strength: 0.3, Hires upscale: 2, Hires steps: 50, Hires upscaler: 8x_NMKD-Superscale_150000_G
尝试更换另一个常用人像模型majicmixFantasy_v20,营造的画面细节更丰富,光影也更复杂
原图1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 707807382, Face restoration: CodeFormer, Size: 768x1024, Model hash: bde6750eac, Model: majicmixFantasy_v20
耗时依然稳定在4分钟内。
放大2倍后的效果1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 707807382, Face restoration: CodeFormer, Size: 768x1024, Model hash: bde6750eac, Model: majicmixFantasy_v20, Denoising strength: 0.3, Hires upscale: 2, Hires steps: 50, Hires upscaler: 8x_NMKD-Superscale_150000_G
另一张图
原图效果1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 707807385, Face restoration: CodeFormer, Size: 768x1024, Model hash: bde6750eac, Model: majicmixFantasy_v20
放大2倍效果1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 707807385, Face restoration: CodeFormer, Size: 768x1024, Model hash: bde6750eac, Model: majicmixFantasy_v20, Denoising strength: 0.3, Hires upscale: 2, Hires steps: 50, Hires upscaler: 8x_NMKD-Superscale_150000_G
尝试放大2.5倍,耗时约8分钟~9分钟
放大2.5倍后的效果1girl,classroom,window side,mid shot, nice hand,nice finger,good hand,good finger,HDR,UHD,8K, best quality, masterpiece, Highly detailed, Studio lighting, ultra-fine painting, sharp focus, physically-based rendering, extreme detail description, Professional, Vivid Colors, Bokeh, (EOS R8,50mm,F1.2,8K,RAW photo:1.2),<lora:GoodHands-beta2:1> <lora:chinaDollLikeness_v10:0.6> <lora:cheeseDaddys_35:0.3> <lora:yuantu:0.4>, Negative prompt: nsfw,logo,text bad-artist badhandv4, Steps: 33, Sampler: DPM++ SDE Karras, CFG scale: 3, Seed: 707807385, Face restoration: CodeFormer, Size: 768x1024, Model hash: bde6750eac, Model: majicmixFantasy_v20, Denoising strength: 0.3, Hires upscale: 2.5, Hires steps: 50, Hires upscaler: 8x_NMKD-Superscale_150000_G
网友评论