Stable Diffusion expands images using outpainting

Usually SD can be used to draw images with a fixed resolution, but if you want to exceed this resolution, you need to use some methods, and if you want to maintain the continuity of these pictures, for example, you need to use outpainting for the background.

Operating procedures

prepare image

First, download the image that needs to be extended to the edge. This image can be horizontal or vertical, and you can expand it to the edge later according to your needs.

<lora:DynastyWarriors_wu_cloth:1>,<lora:guofeng2Lora_v20Lora:1>,best quality ,masterpiece, illustration, an extremely delicate and beautiful, extremely detailed ,CG ,unity ,((the detailed Temple)),(by the sea),(((knight Armor))),8k wallpaper, Amazing, finely detail, masterpiece,best quality,official art,extremely detailed CG unity 8k wallpaper,absurdres, incredibly absurdres, huge filesize , ultra-detailed, highres, extremely detailed,beautiful detailed girl, extremely detailed eyes and face, beautiful detailed eyes,light on face,

breast,Lacteal sulcus,sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, bad anatomy,(long hair:1.4),DeepNegative,(fat:1.2),facing away, looking away,tilted head, {Multiple people}, lowres,bad anatomy,bad hands, text, error, missing fingers,extra digit, fewer digits, cropped, worstquality, low quality, normal quality,jpegartifacts,signature, watermark, username,blurry,bad feet,cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands,polar lowres,bad body,bad proportions,gross proportions,text,error,missing fingers,missing arms,missing legs,extra digit, extra arms, extra leg, extra foot,

insert image description here

First generate a picture through the above keywords, and then move it to img2img.
insert image description here

Select the mode Crop and resizeand select it at the script Poor man's outpainting.
insert image description here

insert image description here

Here you can choose the script parameter to expand the image size, expand according to the pixel, the method is recommended to choose padding. The keywords can still use the original picture.
insert image description here
The generated result is as follows.
insert image description here

Guess you like

Origin blog.csdn.net/qq_20288327/article/details/131401819