Stable Diffusion 无损放大图像和缩小图像 | 您所在的位置:网站首页 › ai图片放大缩小快捷键 › Stable Diffusion 无损放大图像和缩小图像 |
Stable Diffusion默认生成的图片尺寸为512×512,这种尺寸的分辨率可能无法满足高质量的要求。若想生成大图,存在两种可选的方法,在显卡足够支撑的情况下可以将图像当打到8K。 文章目录 hires.fix高分辨率修复extras附加功能放大功能缩放功能 hires.fix高分辨率修复在生成图片时,可选择使用hires.fix高分辨率修复功能,该功能会将生成图片的尺寸从512×512调整至1024×1024,然而这可能会降低出图的速度。 点击高清修复,处理逻辑是先生成图像,然后根据图像放大后保存。 这里更为推荐的是使用extras附加功能。选择菜单栏中的extras,然后上传图片或者在生成图片后,点击右下角的send to extras即可。 首先我们使用文生图功能生成我们需要的图片。图片基本信息 ,,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,full body, Negative prompt: 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, Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 1787145416, Face restoration: GFPGAN, Size: 512x768, Model hash: fc2511737a, Model: 亚洲人物_chilloutmix_NiPrunedFp32Fix, Clip skip: 2, ENSD: 31337, Score: 6.58
一般情况下选择R-ESRGAN 4x+即可满足大多数需求。 用该算法默认将图片放大4倍,即将512×768像素的图片放大成2048×3072像素。 用该算法默认将图片放大8倍,即将512×768像素的图片放大成2048×3072像素。
下面是4K有使用和无使用CodeFormer和GFPGAN的对比。 同理除了放大之外有时也需要缩放功能,点击选项卡Scale to即可,操作和放大是一样的。 |
CopyRight 2018-2019 实验室设备网 版权所有 |