{"id":352781,"date":"2024-05-20T22:15:15","date_gmt":"2024-05-20T22:15:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=352781"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=352781","title":{"rendered":"<span>\u042f \u0441\u0434\u0435\u043b\u0430\u043b Stable Diffusion XL \u00ab\u0443\u043c\u043d\u0435\u0435\u00bb \u043e\u0431\u0443\u0447\u0438\u0432 \u0435\u0451 \u043d\u0430 \u043f\u043b\u043e\u0445\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u043e\u043c<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d4a\/29c\/46f\/d4a29c46fdb149adf7fe7e8bc75d8cb1.png\" width=\"720\" height=\"361\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d4a\/29c\/46f\/d4a29c46fdb149adf7fe7e8bc75d8cb1.png\"\/><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435 <strong>Stability AI<\/strong> \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 Stable Diffusion XL 1.0 (<strong>SDXL<\/strong>) \u0438 \u043e\u0442\u043a\u0440\u044b\u043b\u0430 \u0435\u0451 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044f \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043d\u0435\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/de6\/5b6\/7a2\/de65b67a28b33c15bfe295701fa9d78f.png\" width=\"1216\" height=\"720\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/de6\/5b6\/7a2\/de65b67a28b33c15bfe295701fa9d78f.png\"\/><\/figure>\n<p>\u0420\u0435\u043b\u0438\u0437 \u043f\u0440\u043e\u0448\u0451\u043b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0435\u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0448\u0443\u043c\u0438\u0445\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0443\u0442\u0438\u0445\u043b\u0430. \u0412\u0441\u0435 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043d\u044f\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0442\u0435\u043a\u0441\u0442 \u0418\u0418, \u0442\u0430\u043a\u0438\u043c \u043a\u0430\u043a <strong>ChatGPT<\/strong>. \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e <strong>SDXL<\/strong> \u043e\u0434\u043d\u0430 \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 1024&#215;1024 \u0431\u0435\u0437 \u043c\u0430\u0445\u0438\u043d\u0430\u0446\u0438\u0439, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 <strong>SDXL<\/strong> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439: \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e, \u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1d8\/abb\/25d\/1d8abb25db3ff42347d77603745e7fbe.png\" alt=\"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 SD. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0444\u0438\u043d\u0451\u0440\u0430. \u0421\u0441\u044b\u043b\u043a\u0430\" title=\"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 SD. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0444\u0438\u043d\u0451\u0440\u0430. \u0421\u0441\u044b\u043b\u043a\u0430\" width=\"886\" height=\"661\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1d8\/abb\/25d\/1d8abb25db3ff42347d77603745e7fbe.png\"\/><\/p>\n<div><figcaption>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 SD. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0444\u0438\u043d\u0451\u0440\u0430. <a href=\"https:\/\/huggingface.co\/stabilityai\/stable-diffusion-xl-base-1.0\" rel=\"noopener noreferrer nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0430\u0436\u0438\u043e\u0442\u0430\u0436\u0430, \u0432\u043e\u043a\u0440\u0443\u0433 <strong>SDXL<\/strong> \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d \u0441\u043a\u0443\u0447\u0435\u043d. \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 Python <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/index\" rel=\"noopener noreferrer nofollow\">diffusers<\/a> \u043e\u0442 <a href=\"https:\/\/huggingface.co\/\" rel=\"noopener noreferrer nofollow\">Hugging Face<\/a> \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/api\/pipelines\/stable_diffusion\/stable_diffusion_xl\" rel=\"noopener noreferrer nofollow\">\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 SDXL \u0432 diffusers<\/a> \u043f\u0440\u043e\u0441\u0442\u044b \u0438 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f:<\/p>\n<pre><code class=\"python\">import torch from diffusers import DiffusionPipeline, AutoencoderKL  # \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 SDXL and \u0440\u0430\u0444\u0438\u043d\u0451\u0440\u0430 vae = AutoencoderKL.from_pretrained(\"madebyollin\/sdxl-vae-fp16-fix\",                                     torch_dtype=torch.float16) base = DiffusionPipeline.from_pretrained(     \"stabilityai\/stable-diffusion-xl-base-1.0\",     vae=vae,     torch_dtype=torch.float16,     variant=\"fp16\",     use_safetensors=True, ) _ = base.to(\"cuda\")  refiner = DiffusionPipeline.from_pretrained(     \"stabilityai\/stable-diffusion-xl-refiner-1.0\",     text_encoder_2=base.text_encoder_2,     vae=base.vae,     torch_dtype=torch.float16,     variant=\"fp16\",     use_safetensors=True, ) _ = refiner.to(\"cuda\")  # \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0431\u0435\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439  high_noise_frac = 0.8 prompt = \"an astronaut riding a horse\" negative_prompt = \"blurry, bad hands\"  image = base(     prompt=prompt,     negative_prompt=negative_prompt,     denoising_end=high_noise_frac,     output_type=\"latent\", ).images  image = refiner(     prompt=prompt,     negative_prompt=negative_prompt,     denoising_start=high_noise_frac,     image=image, ).images[0]<\/code><\/pre>\n<p>\u042f \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b \u043e\u0431\u043b\u0430\u0447\u043d\u0443\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u043d\u043e\u0432\u044b\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f <a href=\"https:\/\/www.nvidia.com\/en-us\/data-center\/l4\/\" rel=\"noopener noreferrer nofollow\">L4 GPU<\/a> (\u0432\u0441\u0435\u0433\u043e 0,24 \u0434\u043e\u043b\u043b\u0430\u0440\u0430 \u0437\u0430 \u0447\u0430\u0441 \u0441 <a href=\"https:\/\/cloud.google.com\/compute\/gpus-pricing\" rel=\"noopener noreferrer nofollow\">Spot instance<\/a> \u043d\u0430 <a href=\"https:\/\/cloud.google.com\/\" rel=\"noopener noreferrer nofollow\">Google Cloud Platform<\/a>) \u0438 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b \u043a \u0440\u0430\u0431\u043e\u0442\u0435. \u0421 <a href=\"https:\/\/www.nvidia.com\/en-us\/data-center\/l4\/\" rel=\"noopener noreferrer nofollow\">L4 GPU<\/a> \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f 1024&#215;1024 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e <em>22<\/em> <em>\u0441\u0435\u043a\u0443\u043d\u0434<\/em>, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0440\u0430\u0437 \u043d\u0430 GPU \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Stable Diffusion, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 100% \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 GPU, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043d\u043e \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0445\u0443\u0436\u0435.<\/p>\n<p><strong>diffusers<\/strong> \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0434\u0432\u0443\u0445 \u043d\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u043d\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043e Stable Diffusion: <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/using-diffusers\/weighted_prompts\" rel=\"noopener noreferrer nofollow\"><u>\u0432\u0437\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432<\/u><\/a> \u0438 <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/training\/dreambooth\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u0438\u043d\u0444\u0435\u0440\u0435\u043d\u0441 Dreambooth LoRA<\/u><\/a>. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0437\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e diffusers \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/damian0815\/compel\" rel=\"noopener noreferrer nofollow\">compel \u0432 Python<\/a> \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u0437\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e <code>+<\/code> \u0438\u043b\u0438 <code>-<\/code> \u043a \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u043b\u043e\u0432\u0443, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0435\u0433\u043e \u00ab\u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u00bb \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0430\u0445 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0444\u0440\u0430\u0437\u044b: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0435 <code>\u043f\u0435\u0439\u0437\u0430\u0436 \u0421\u0430\u043d-\u0424\u0440\u0430\u043d\u0446\u0438\u0441\u043a\u043e \u0421\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440\u0430 \u0414\u0430\u043b\u0438, \u043c\u0430\u0441\u043b\u043e\u043c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435<\/code>, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 <code>\u0444\u043e\u0442\u043e\u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0421\u0430\u043d-\u0424\u0440\u0430\u043d\u0446\u0438\u0441\u043a\u043e<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0445\u0443\u0434\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u200b\u200b\u043a\u0430\u043a &#8212; <code>\u043f\u0435\u0439\u0437\u0430\u0436 \u0421\u0430\u043d-\u0424\u0440\u0430\u043d\u0446\u0438\u0441\u043a\u043e \u0421\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440\u0430 \u0414\u0430\u043b\u0438 (\u043c\u0430\u0441\u043b\u043e\u043c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435)+++<\/code>, \u0447\u0442\u043e\u0431\u044b Stable Diffusion \u0432\u0451\u043b \u0441\u0435\u0431\u044f \u0442\u0430\u043a, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c. \u0412 \u043c\u043e\u0451\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0441 \u043f\u0440\u043e\u043c\u043f\u0442\u0430\u043c\u0438, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0432 Stable Diffusion 2.0 \u0438 \u0432\u044b\u0448\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c (<a href=\"https:\/\/arxiv.org\/abs\/2207.12598\" rel=\"noopener noreferrer nofollow\">classifier-free guidance<\/a>) (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <strong>Guidance_scale<\/strong> \u0440\u0430\u0432\u0435\u043d 7,5; \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 13).<\/p>\n<blockquote>\n<p>\u0412\u043e \u0432\u0441\u0435\u0445 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u043e\u0434\u0435\u043b\u044c\u044e <strong>LoRA<\/strong> \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>guide_scale<\/code>, \u0440\u0430\u0432\u043d\u044b\u0439 <em>13<\/em>.<\/p>\n<\/blockquote>\n<h3>LoRA the Explorer<\/h3>\n<p>\u041d\u043e \u0447\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u043e, \u0442\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <strong>Dreambooth LoRA<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Stable Diffusion &#171;\u043d\u0430 \u0437\u0430\u043a\u0430\u0437&#187;. <strong>Dreambooth<\/strong> \u2014 \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Stable Diffusion \u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u043c \u0441\u043b\u043e\u0432\u0435-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u00ab\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e\u00bb \u0438\u0437 \u044d\u0442\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430\u0445 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f50\/477\/ab9\/f50477ab9bba391710c900a3a69c1949.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b Dreambooth; \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b Dreambooth; \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"1650\" height=\"462\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f50\/477\/ab9\/f50477ab9bba391710c900a3a69c1949.png\"\/><\/p>\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b Dreambooth; <a href=\"https:\/\/dreambooth.github.io\/\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 Stable Diffusion, \u0434\u0430\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u043e\u0433\u0438\u0445 GPU \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0430\u043c\u0438. \u0412\u043e\u0442 \u0442\u0443\u0442-\u0442\u043e \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f <a href=\"https:\/\/github.com\/microsoft\/LoRA\" rel=\"noopener noreferrer nofollow\">LoRA<\/a>: \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0434\u0435\u0448\u0451\u0432\u043e\u043c GPU \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442, \u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 + LoRA \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u043e \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 (\u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0435\u0447\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043b\u044e\u0434\u0438 \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u043d\u043a\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Stable Diffusion, \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LoRA). \u041e\u0431\u0443\u0447\u0435\u043d\u043d\u0430\u044f LoRA \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u043c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0438\u043b\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a <a href=\"https:\/\/civitai.com\/\" rel=\"noopener noreferrer nofollow\">Civitai<\/a>. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a LoRA \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0441\u0442\u0438\u043b\u044c \u0432 \u043e\u0434\u043d\u043e\u043c LoRA \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435: \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e LoRA, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u043e\u0442 \u0432\u0441\u0435\u0445, \u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0438\u043a\u0430\u0442\u043d\u0430\u044f \u043d\u0430\u0443\u043a\u0430.<\/p>\n<p>\u0414\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Stable Diffusion LoR&#8217;\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0448\u0438\u0440\u043e\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 <a href=\"https:\/\/arxiv.org\/abs\/2208.01618\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044f<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e, \u043d\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0443\u043a\u043b\u044e\u0436\u0438\u043c\u0438. \u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044e \u043d\u0430 \u0448\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 &#8212; <a href=\"https:\/\/knowyourmeme.com\/memes\/ugly-sonic\" rel=\"noopener noreferrer nofollow\">\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u043e\u043c \u0421\u043e\u043d\u0438\u043a\u0435,<\/a> \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 Stable Diffusion \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u043d \u0431\u044b\u043b \u0431\u044b \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u044b\u043b\u0438 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u043c\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/832\/2c6\/74e\/8322c674e1cab74f6f964350d1030bd7.png\" alt=\"\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439.\" title=\"\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439.\" width=\"768\" height=\"768\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/832\/2c6\/74e\/8322c674e1cab74f6f964350d1030bd7.png\"\/><\/p>\n<div><figcaption>\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439.<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0430 LoRA \u043d\u0430 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 Ugly Sonic \u0441\u0442\u0430\u043d\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u0430 SDXL. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, Hugging Face \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 <a href=\"https:\/\/github.com\/huggingface\/diffusers\/tree\/main\/examples\/dreambooth\" rel=\"noopener noreferrer nofollow\">train_dreambooth_lora_sdxl.py<\/a> \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f LoRA \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 SDXL, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb, \u0445\u043e\u0442\u044f \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b &#171;\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u043e\u0433\u043e \u0421\u043e\u043d\u0438\u043a\u0430&#187; \u0438\u0437 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u043e\u0439 LoRA, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0438 \u0441\u0432\u044f\u0437\u043d\u0435\u0435 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u0430\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e96\/066\/77e\/e9606677e93bfae948562c447be276c9.png\" alt=\"\u041d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u0441 \u0437\u0443\u0431\u0430\u043c\u0438.\" title=\"\u041d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u0441 \u0437\u0443\u0431\u0430\u043c\u0438.\" width=\"1024\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e96\/066\/77e\/e9606677e93bfae948562c447be276c9.png\"\/><\/p>\n<div><figcaption>\u041d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u0441 \u0437\u0443\u0431\u0430\u043c\u0438.<\/figcaption><\/div>\n<\/figure>\n<h2>\u041d\u0415\u0412\u0415\u0420\u041d\u041e!<\/h2>\n<p>\u0414\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0441\u043f\u0435\u0445\u0430, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c <a href=\"https:\/\/minimaxir.com\/2022\/11\/stable-diffusion-negative-prompt\/\" rel=\"noopener noreferrer nofollow\">\u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u0438<\/a>, \u043e\u0431\u0443\u0447\u0438\u0432 LoRA \u043d\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0438\u0441\u043a\u0430\u0436\u0451\u043d\u043d\u044b\u0445, \u043c\u0443\u0441\u043e\u0440\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445, \u043f\u0440\u043e\u043c\u043f\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435,<\/code> \u0432 \u043d\u0430\u0434\u0435\u0436\u0434\u0435, \u0447\u0442\u043e LoRA \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0438 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/github.com\/minimaxir\/sdxl-experiments\/blob\/main\/wrong_image_generator.ipynb\" rel=\"noopener noreferrer nofollow\">\u0431\u043b\u043e\u043a\u043d\u043e\u0442 Jupyter<\/a> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 &#171;\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445&#187; \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0430\u043c <strong>SDXL<\/strong>, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u0435\u0441\u043e\u0432\u044b\u0445 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0442\u0447\u0435\u0442\u043b\u0438\u0432\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0442\u0438\u043f\u043e\u0432 \u043f\u043b\u043e\u0445\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a <code>\u0440\u0430\u0437\u043c\u044b\u0442\u044b\u0435<\/code> \u0438 <code>\u043f\u043b\u043e\u0445\u0438\u0435 \u0440\u0443\u043a\u0438<\/code>. \u0418\u0440\u043e\u043d\u0438\u0447\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>SDXL<\/strong> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0438\u0437\u043a\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441 \u0432\u044b\u0441\u043e\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/958\/25b\/fdc\/95825bfdcaf18251baddf29c4a569e8d.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 &quot;\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445&quot; \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043f\u0440\u0435\u0434\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043e\u0431\u043b\u043e\u0436\u043a\u0438 \u0430\u043b\u044c\u0431\u043e\u043c\u043e\u0432 \u043f\u0430\u043d\u043a-\u0440\u043e\u043a\u0430 2000-\u0445 \u0433\u043e\u0434\u043e\u0432.\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 &quot;\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445&quot; \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043f\u0440\u0435\u0434\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043e\u0431\u043b\u043e\u0436\u043a\u0438 \u0430\u043b\u044c\u0431\u043e\u043c\u043e\u0432 \u043f\u0430\u043d\u043a-\u0440\u043e\u043a\u0430 2000-\u0445 \u0433\u043e\u0434\u043e\u0432.\" width=\"1024\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/958\/25b\/fdc\/95825bfdcaf18251baddf29c4a569e8d.png\"\/><\/p>\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 &#171;\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445&#187; \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043f\u0440\u0435\u0434\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043e\u0431\u043b\u043e\u0436\u043a\u0438 \u0430\u043b\u044c\u0431\u043e\u043c\u043e\u0432 \u043f\u0430\u043d\u043a-\u0440\u043e\u043a\u0430 2000-\u0445 \u0433\u043e\u0434\u043e\u0432.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a70\/e21\/d52\/a70e21d52a717f5d16d596bda09f7772.png\" alt=\"\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0430\u0441\u043f\u0435\u043a\u0442\u0435 \u0437\u043b\u043e\u0432\u0435\u0449\u0435\u0439 \u0434\u043e\u043b\u0438\u043d\u044b \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0418\u0418, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430, \u043d\u043e \u043f\u0440\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u0443\u0436\u0430\u0441. \u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c (1024x1024).\" title=\"\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0430\u0441\u043f\u0435\u043a\u0442\u0435 \u0437\u043b\u043e\u0432\u0435\u0449\u0435\u0439 \u0434\u043e\u043b\u0438\u043d\u044b \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0418\u0418, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430, \u043d\u043e \u043f\u0440\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u0443\u0436\u0430\u0441. \u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c (1024x1024).\" width=\"1024\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a70\/e21\/d52\/a70e21d52a717f5d16d596bda09f7772.png\"\/><\/p>\n<div><figcaption>\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0430\u0441\u043f\u0435\u043a\u0442\u0435 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%97%D0%BB%D0%BE%D0%B2%D0%B5%D1%89%D0%B0%D1%8F_%D0%B4%D0%BE%D0%BB%D0%B8%D0%BD%D0%B0\" rel=\"noopener noreferrer nofollow\">\u0437\u043b\u043e\u0432\u0435\u0449\u0435\u0439 \u0434\u043e\u043b\u0438\u043d\u044b<\/a> \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0418\u0418, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430, \u043d\u043e \u043f\u0440\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u0443\u0436\u0430\u0441. \u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c (1024&#215;1024).<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u043e\u0431\u0443\u0447\u0438\u043b \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b <a href=\"https:\/\/huggingface.co\/minimaxir\/sdxl-wrong-lora\" rel=\"noopener noreferrer nofollow\">LoRA<\/a> \u0432 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c Stable Diffusion XL (\u0440\u0430\u0444\u0438\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 LoRA) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/colab.research.google.com\/github\/minimaxir\/sdxl-experiments\/blob\/main\/sdxl_wrong_comparison.ipynb\" rel=\"noopener noreferrer nofollow\">\u0431\u043b\u043e\u043a\u043d\u043e\u0442 Jupyter<\/a>, \u0447\u0442\u043e\u0431\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c \u0438\u0437:<\/p>\n<ul>\n<li>\n<p>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c + \u0420\u0430\u0444\u0438\u043d\u0451\u0440 \u0431\u0435\u0437 LoRA (\u0431\u0435\u0439\u0437\u043b\u0430\u0439\u043d)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0431\u0435\u0437 LoRA, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0432\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 (\u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043d\u0435\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9F%D0%BB%D0%B0%D1%86%D0%B5%D0%B1%D0%BE\" rel=\"noopener noreferrer nofollow\">\u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043f\u043b\u0430\u0446\u0435\u0431\u043e<\/a>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d <strong>\u0441 LoRA<\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0432\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/code>\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 (\u043d\u0430\u0448 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442)<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (<em>seed<\/em>), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0439, \u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043a\u0430\u043a <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e<\/code> \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0442\u0430\u043a \u0438 LoRA \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u043c.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 \u0438\u0437 <a href=\"https:\/\/stability.ai\/blog\/sdxl-09-stable-diffusion\" rel=\"noopener noreferrer nofollow\">\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0439 SDXL 0.9<\/a>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a03\/8a8\/e15\/a038a8e153d5cb8bcc7b7e98588197f5.png\" alt=\"A wolf in Yosemite National Park, chilly nature documentary film photography - \u0412\u043e\u043b\u043a \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b\" title=\"A wolf in Yosemite National Park, chilly nature documentary film photography - \u0412\u043e\u043b\u043a \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b\" width=\"3072\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a03\/8a8\/e15\/a038a8e153d5cb8bcc7b7e98588197f5.png\"\/><\/p>\n<div><figcaption><code>A wolf in Yosemite National Park, chilly nature documentary film photography - <\/code>\u0412\u043e\u043b\u043a \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b<\/figcaption><\/div>\n<\/figure>\n<p><code>\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> \u043f\u0440\u043e\u043c\u043f\u0442 \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043b\u0438\u0441\u0442\u0432\u0443 \u0438 \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e \u043b\u0435\u0441\u0430, \u043d\u043e LoRA \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435: \u0431\u043e\u043b\u0435\u0435 \u0447\u0451\u0442\u043a\u043e\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u043d\u0438, \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043b\u0438\u0441\u0442\u0432\u0443 \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0443 \u0432\u043e\u043b\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0432 \u043a\u0430\u043c\u0435\u0440\u0443, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.<\/p>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0443 \u0432\u043e\u043b\u043a\u0430 \u0441 \u043f\u043e\u0445\u043e\u0436\u0435\u0439 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043a \u043f\u0440\u043e\u043c\u043f\u0442\u0443 \u00ab<code>extreme closeup<\/code> &#8212; \u043a\u0440\u0430\u0439\u043d\u0438\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u00bb \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0438\u0434.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2c3\/723\/aaa\/2c3723aaa83aa9e81d8d340b0b3a5eea.png\" alt=\"An extreme close-up of a wolf in Yosemite National Park, chilly nature documentary film photography - \u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u043b\u0430\u043d \u0432\u043e\u043b\u043a\u0430 \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b\" title=\"An extreme close-up of a wolf in Yosemite National Park, chilly nature documentary film photography - \u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u043b\u0430\u043d \u0432\u043e\u043b\u043a\u0430 \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b\" width=\"3072\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2c3\/723\/aaa\/2c3723aaa83aa9e81d8d340b0b3a5eea.png\"\/><\/p>\n<div><figcaption><code>An extreme close-up of a wolf in Yosemite National Park, chilly nature documentary film photography - <\/code>\u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u043b\u0430\u043d \u0432\u043e\u043b\u043a\u0430 \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 LoRA \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443, \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0438 \u0440\u0435\u0437\u043a\u043e\u0441\u0442\u044c, \u0447\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0435. \u041d\u043e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0443.<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0435\u0434\u044b, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u0430\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0435\u0434\u044b, \u043d\u0430 <a href=\"https:\/\/minimaxir.com\/2022\/07\/food-photography-ai\/\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u043e\u0431\u0438\u0438 \u044d\u0442\u0438\u0445<\/a>. \u041c\u043e\u0436\u0435\u0442 \u043b\u0438 SDXL + <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> LoRA \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0435\u0432\u043a\u043b\u0438\u0434\u043e\u0432\u044b \u0433\u0430\u043c\u0431\u0443\u0440\u0433\u0435\u0440\u044b \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u0437\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435?<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bfc\/fa7\/6c4\/bfcfa76c42b7c0134a270c61b2519ba2.png\" alt=\"a large delicious hamburger (in the shape of five-dimensional alien geometry)++++, professional food photography - \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u043a\u0443\u0441\u043d\u044b\u0439 \u0433\u0430\u043c\u0431\u0443\u0440\u0433\u0435\u0440 (\u0432 \u0444\u043e\u0440\u043c\u0435 \u043f\u044f\u0442\u0438\u043c\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u043e\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438)++++, \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u0434-\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f\" title=\"a large delicious hamburger (in the shape of five-dimensional alien geometry)++++, professional food photography - \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u043a\u0443\u0441\u043d\u044b\u0439 \u0433\u0430\u043c\u0431\u0443\u0440\u0433\u0435\u0440 (\u0432 \u0444\u043e\u0440\u043c\u0435 \u043f\u044f\u0442\u0438\u043c\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u043e\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438)++++, \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u0434-\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f\" width=\"3072\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bfc\/fa7\/6c4\/bfcfa76c42b7c0134a270c61b2519ba2.png\"\/><\/p>\n<div><figcaption><code>a large delicious hamburger (in the shape of five-dimensional alien geometry)++++, professional food photography - <\/code>\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u043a\u0443\u0441\u043d\u044b\u0439 \u0433\u0430\u043c\u0431\u0443\u0440\u0433\u0435\u0440 (\u0432 \u0444\u043e\u0440\u043c\u0435 \u043f\u044f\u0442\u0438\u043c\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u043e\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438)++++, \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u0434-\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u0430. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u044d\u0442\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d: \u0431\u0430\u0437\u043e\u0432\u044b\u0439 SDXL, \u043f\u043e\u0445\u043e\u0436\u0435, \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u044f\u043b \u00ab\u0438\u043d\u043e\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u0443\u044e\u00bb \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u043c\u043f\u0442\u0430 \u0431\u043e\u043b\u0435\u0435 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e, \u0447\u0435\u043c \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c (\u0438 \u043f\u0440\u0438\u0434\u0430\u043b \u0435\u0439 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u0443\u044e \u0448\u043b\u044f\u043f\u0443 \u0432 \u0432\u0438\u0434\u0435 \u0431\u0443\u043b\u043e\u0447\u043a\u0438!), \u043d\u043e LoRA \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0443\u0445 \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u00ab\u0438\u043d\u043e\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u044b\u0439\u00bb \u0431\u0443\u0440\u0433\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u044e\u0434\u044f\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0442\u0440\u0443\u0434\u043d\u043e \u0441\u044a\u0435\u0441\u0442\u044c, \u043f\u043b\u044e\u0441 \u0431\u043e\u043b\u0435\u0435 \u0431\u043b\u0435\u0441\u0442\u044f\u0449\u0430\u044f \u044d\u0441\u0442\u0435\u0442\u0438\u043a\u0430 \u043f\u043e\u0434\u0430\u0447\u0438.<\/p>\n<p>\u0417\u0430\u043c\u0435\u0442\u043d\u044b\u043c \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435\u043c \u0432 Stable Diffusion 2.0 \u0441\u0442\u0430\u043b\u0430 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430. \u041c\u043e\u0433\u0443\u0442 \u043b\u0438 SDXL \u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 LoRA \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0433\u0430\u0437\u0435\u0442\u043d\u044b\u0435 \u043e\u0431\u043b\u043e\u0436\u043a\u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u0430?<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7cd\/5fc\/1c6\/7cd5fc1c6e2ecb8d5117391717b9d213.png\" alt=\"lossless PDF scan of the front page of the January  2038 issue of the Wall Street Journal featuring a cover story about  (evil robot world domination)++ - \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u044c \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u044f\u043d\u0432\u0430\u0440\u0441\u043a\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 Wall Street Journal \u0437\u0430 2038 \u0433\u043e\u0434 \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043e (\u043c\u0438\u0440\u043e\u0432\u043e\u043c \u0433\u043e\u0441\u043f\u043e\u0434\u0441\u0442\u0432\u0435 \u0437\u043b\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432) ++\" title=\"lossless PDF scan of the front page of the January  2038 issue of the Wall Street Journal featuring a cover story about  (evil robot world domination)++ - \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u044c \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u044f\u043d\u0432\u0430\u0440\u0441\u043a\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 Wall Street Journal \u0437\u0430 2038 \u0433\u043e\u0434 \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043e (\u043c\u0438\u0440\u043e\u0432\u043e\u043c \u0433\u043e\u0441\u043f\u043e\u0434\u0441\u0442\u0432\u0435 \u0437\u043b\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432) ++\" width=\"3072\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7cd\/5fc\/1c6\/7cd5fc1c6e2ecb8d5117391717b9d213.png\"\/><\/p>\n<div><figcaption><code>lossless PDF scan of the front page of the January  2038 issue of the Wall Street Journal featuring a cover story about  (evil robot world domination)++ - <\/code>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u044c \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u044f\u043d\u0432\u0430\u0440\u0441\u043a\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 Wall Street Journal \u0437\u0430 2038 \u0433\u043e\u0434 \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043e (\u043c\u0438\u0440\u043e\u0432\u043e\u043c \u0433\u043e\u0441\u043f\u043e\u0434\u0441\u0442\u0432\u0435 \u0437\u043b\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432) ++<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0437\u0431\u043e\u0440\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0430\u0441\u044c \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 Stable Diffusion 2.0, \u043d\u043e, \u043f\u043e\u0445\u043e\u0436\u0435, \u043e\u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430 \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445. \u0427\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432 LoRA, \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0430 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u043e\u0431\u043b\u043e\u0436\u043a\u0430\u0445: \u043c\u0430\u043a\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0442\u0430\u043b \u0431\u043e\u043b\u0435\u0435 \u00ab\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u00bb \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043c\u0430\u043a\u0435\u0442\u0430\u043c\u0438 \u0441\u0442\u0430\u0442\u0435\u0439, \u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430. \u041c\u0435\u0436\u0434\u0443 \u0442\u0435\u043c, \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u0436\u0435 \u0441 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c<\/code> \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c \u0438\u043c\u0435\u0435\u0442 \u0441\u043a\u0443\u0447\u043d\u044b\u0439 \u043c\u0430\u043a\u0435\u0442 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0440\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u0436\u0435\u043b\u0442\u043e\u0432\u0430\u0442\u043e\u0439 \u0431\u0443\u043c\u0430\u0433\u0435.<\/p>\n<p>\u0410 \u043a\u0430\u043a \u043d\u0430\u0441\u0447\u0435\u0442 \u043b\u044e\u0434\u0435\u0439? \u0420\u0435\u0448\u0430\u0435\u0442 \u043b\u0438 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> LoRA \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0418\u0418 <a href=\"https:\/\/www.buzzfeednews.com\/article\/pranavdixit\/ai-generated-art-hands-fingers-messed-up\" rel=\"noopener noreferrer nofollow\">\u0441 \u0440\u0443\u043a\u0430\u043c\u0438<\/a>, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0432 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 LoRA? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u043f\u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u043c\u043f\u0442 \u0422\u0435\u0439\u043b\u043e\u0440 \u0421\u0432\u0438\u0444\u0442 \u0438\u0437 \u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0441\u043e Stable Diffusion 2.0:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c82\/abb\/d35\/c82abbd35e38586f63be64372c6ce5b7.png\" alt=\"USA President Taylor Swift (signing papers)++++, photo taken by the Associated Press - \u041f\u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442 \u0421\u0428\u0410 \u0422\u0435\u0439\u043b\u043e\u0440 \u0421\u0432\u0438\u0444\u0442 (\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432)++++, \u0444\u043e\u0442\u043e Associated Press\" title=\"USA President Taylor Swift (signing papers)++++, photo taken by the Associated Press - \u041f\u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442 \u0421\u0428\u0410 \u0422\u0435\u0439\u043b\u043e\u0440 \u0421\u0432\u0438\u0444\u0442 (\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432)++++, \u0444\u043e\u0442\u043e Associated Press\" width=\"3072\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c82\/abb\/d35\/c82abbd35e38586f63be64372c6ce5b7.png\"\/><\/p>\n<div><figcaption><code>USA President Taylor Swift (signing papers)++++, photo taken by the Associated Press - <\/code>\u041f\u0440\u0435\u0437\u0438\u0434\u0435\u043d\u0442 \u0421\u0428\u0410 \u0422\u0435\u0439\u043b\u043e\u0440 \u0421\u0432\u0438\u0444\u0442 (\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432)++++, \u0444\u043e\u0442\u043e Associated Press<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u0430\u0432\u0443\u044e \u0440\u0443\u043a\u0443 \u0422\u0435\u0439\u043b\u043e\u0440: \u0432 SDXL \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0430 \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435\u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u0430 \u0438 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0443\u0445\u0443\u0434\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e<\/code> \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u043d\u043e LoRA \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0430! \u0426\u0432\u0435\u0442\u043e\u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e LoRA \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435: \u0440\u0443\u0431\u0430\u0448\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u043e\u0442\u0447\u0435\u0442\u043b\u0438\u0432\u043e \u0431\u0435\u043b\u0430\u044f, \u0430 \u043d\u0435 \u0436\u0435\u043b\u0442\u043e\u0432\u0430\u0442\u043e-\u0431\u0435\u043b\u0430\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u0435\u0435 \u0440\u0443\u043a\u0438 \u043d\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438: \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SDXL 1.0 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0441\u043b\u043e\u0436\u043d\u043e \u0438 \u043d\u0435\u043d\u0430\u0434\u0435\u0436\u043d\u043e!<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u044f\u0441\u043d\u043e, \u0447\u0442\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/code> + LoRA \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 <\/code>\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u043f\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c LoR&#8217;\u044b. \u0412\u043e\u0442 \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439<\/code> LoRA:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0d8\/a92\/b63\/0d8a92b63dcf4bbaa0955bea61ab75eb.png\" alt=\"realistic human Shrek blogging at a computer workstation, hyperrealistic award-winning photo for vanity fair - \u0420\u0443\u043a\u0438 \u043b\u0443\u0447\u0448\u0435, \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043b\u0443\u0447\u0448\u0435. \u041e\u0434\u0435\u0436\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u0430 \u0444\u043e\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.\" title=\"realistic human Shrek blogging at a computer workstation, hyperrealistic award-winning photo for vanity fair - \u0420\u0443\u043a\u0438 \u043b\u0443\u0447\u0448\u0435, \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043b\u0443\u0447\u0448\u0435. \u041e\u0434\u0435\u0436\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u0430 \u0444\u043e\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.\" width=\"1024\" height=\"512\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0d8\/a92\/b63\/0d8a92b63dcf4bbaa0955bea61ab75eb.png\"\/><\/p>\n<div><figcaption><code>realistic human Shrek blogging at a computer workstation, hyperrealistic award-winning photo for vanity fair - <\/code>\u0420\u0443\u043a\u0438 \u043b\u0443\u0447\u0448\u0435, \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043b\u0443\u0447\u0448\u0435. \u041e\u0434\u0435\u0436\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u0430 \u0444\u043e\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d5f\/f52\/942\/d5ff5294223b08225014052c6a64de81.png\" alt=\"pepperoni pizza in the shape of a heart, hyperrealistic award-winning professional food photography - \u041f\u0435\u043f\u043f\u0435\u0440\u043e\u043d\u0438 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u0443\u0437\u044b\u0440\u0438, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0435\u043f\u043f\u0435\u0440\u043e\u043d\u0438 \u043f\u043e \u043a\u0440\u0430\u044f\u043c, \u043a\u043e\u0440\u043e\u0447\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u0445\u0440\u0443\u0441\u0442\u044f\u0449\u0430\u044f (?)\" title=\"pepperoni pizza in the shape of a heart, hyperrealistic award-winning professional food photography - \u041f\u0435\u043f\u043f\u0435\u0440\u043e\u043d\u0438 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u0443\u0437\u044b\u0440\u0438, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0435\u043f\u043f\u0435\u0440\u043e\u043d\u0438 \u043f\u043e \u043a\u0440\u0430\u044f\u043c, \u043a\u043e\u0440\u043e\u0447\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u0445\u0440\u0443\u0441\u0442\u044f\u0449\u0430\u044f (?)\" width=\"1024\" height=\"512\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d5f\/f52\/942\/d5ff5294223b08225014052c6a64de81.png\"\/><\/p>\n<div><figcaption><code>pepperoni pizza in the shape of a heart, hyperrealistic award-winning professional food photography - <\/code>\u041f\u0435\u043f\u043f\u0435\u0440\u043e\u043d\u0438 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u0443\u0437\u044b\u0440\u0438, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0435\u043f\u043f\u0435\u0440\u043e\u043d\u0438 \u043f\u043e \u043a\u0440\u0430\u044f\u043c, \u043a\u043e\u0440\u043e\u0447\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u0445\u0440\u0443\u0441\u0442\u044f\u0449\u0430\u044f (?)<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ae9\/e3e\/5fa\/ae9e3e5fa75289a766343fcf501b1547.png\" alt=\"presidential painting of realistic human Spongebob Squarepants wearing a suit, (oil on canvas)+++++ -\u0423 \u0413\u0443\u0431\u043a\u0438 \u0411\u043e\u0431\u0430 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0441, \u0430 \u043d\u0430 \u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0435 \u0441\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0443\u0433\u043e\u0432\u0438\u0446\" title=\"presidential painting of realistic human Spongebob Squarepants wearing a suit, (oil on canvas)+++++ -\u0423 \u0413\u0443\u0431\u043a\u0438 \u0411\u043e\u0431\u0430 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0441, \u0430 \u043d\u0430 \u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0435 \u0441\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0443\u0433\u043e\u0432\u0438\u0446\" width=\"1024\" height=\"512\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ae9\/e3e\/5fa\/ae9e3e5fa75289a766343fcf501b1547.png\"\/><\/p>\n<div><figcaption><code>presidential painting of realistic human Spongebob Squarepants wearing a suit, (oil on canvas)+++++ -<\/code>\u0423 \u0413\u0443\u0431\u043a\u0438 \u0411\u043e\u0431\u0430 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0441, \u0430 \u043d\u0430 \u0435\u0433\u043e \u043a\u043e\u0441\u0442\u044e\u043c\u0435 \u0441\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0443\u0433\u043e\u0432\u0438\u0446<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c2b\/f68\/b9c\/c2bf68b9c63c61f5a8a692b0d61375ff.png\" alt=\"San Francisco panorama attacked by (one massive kitten)++++, hyperrealistic award-winning photo by the Associated Press - LoRA \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e.\" title=\"San Francisco panorama attacked by (one massive kitten)++++, hyperrealistic award-winning photo by the Associated Press - LoRA \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e.\" width=\"1024\" height=\"512\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c2b\/f68\/b9c\/c2bf68b9c63c61f5a8a692b0d61375ff.png\"\/><\/p>\n<div><figcaption><code>San Francisco panorama attacked by (one massive kitten)++++, hyperrealistic award-winning photo by the Associated Press - <\/code>LoRA \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043c\u043f\u0442\u0443.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/493\/900\/a7e\/493900a7eebb40736713dfefc135fb53.png\" alt=\"hyperrealistic death metal album cover featuring edgy moody realistic (human Super Mario)++, edgy and moody - \u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438 \u041c\u0430\u0440\u0438\u043e \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b, \u0430 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0437\u043a\u043e\u0435 \u0438 \u0447\u0451\u0442\u043a\u043e\u0435.\" title=\"hyperrealistic death metal album cover featuring edgy moody realistic (human Super Mario)++, edgy and moody - \u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438 \u041c\u0430\u0440\u0438\u043e \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b, \u0430 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0437\u043a\u043e\u0435 \u0438 \u0447\u0451\u0442\u043a\u043e\u0435.\" width=\"1024\" height=\"512\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/493\/900\/a7e\/493900a7eebb40736713dfefc135fb53.png\"\/><\/p>\n<div><figcaption><code>hyperrealistic death metal album cover featuring edgy moody realistic (human Super Mario)++, edgy and moody - <\/code>\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438 \u041c\u0430\u0440\u0438\u043e \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b, \u0430 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0437\u043a\u043e\u0435 \u0438 \u0447\u0451\u0442\u043a\u043e\u0435.<\/figcaption><\/div>\n<\/figure>\n<p><a href=\"https:\/\/huggingface.co\/minimaxir\/sdxl-wrong-lora\" rel=\"noopener noreferrer nofollow\">\u0417\u0434\u0435\u0441\u044c<\/a> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f<\/code> LoRA, \u0445\u043e\u0442\u044f \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u0442 diffusers. \u0412\u0441\u0435 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 <a href=\"https:\/\/github.com\/minimaxir\/sdxl-experiments\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 GitHub<\/a>, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0439 SDXL 1.0 + \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 + <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> <a href=\"https:\/\/colab.research.google.com\/github\/minimaxir\/sdxl-experiments\/blob\/main\/sdxl_image_generation.ipynb\" rel=\"noopener noreferrer nofollow\">\u0431\u043b\u043e\u043a\u043d\u043e\u0442 LoRA \u043d\u0430 Colab<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u043c GPU T4. \u0418 \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0445 \u0432 <a href=\"https:\/\/github.com\/minimaxir\/minimaxir.github.io\/tree\/master\/content\/post\/2023-08-21-stable-diffusion-xl-wrong\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<h2>\u0427\u0442\u043e \u043f\u043b\u043e\u0445\u043e\u0433\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c?<\/h2>\n<p>\u042f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d \u043d\u0430 100% \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u042f \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> \u043f\u0440\u0438\u0435\u043c LoRA \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0447\u0451\u0442\u043a\u043e\u0441\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e LoRA <em>\u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 SDXL \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u043e<\/em> \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u043c\u044b\u0441\u043b\u0443 \u043f\u0440\u043e\u043c\u043f\u0442\u0430. \u041d\u0430 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0433\u0434\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u0438\u0444\u0444\u0443\u0437\u0438\u0438; \u044d\u0442\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430 \u043a\u0430\u043a \u0434\u043b\u044f \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u043f\u0442, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f LoRA, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u043f\u0442<\/code>. \u041c\u043e\u044f \u0438\u043d\u0442\u0443\u0438\u0446\u0438\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e LoRA \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u044d\u0442\u0443 \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043e\u0431\u0448\u0438\u0440\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u043b\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u0432 \u043d\u0435\u0435 \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0430.<\/p>\n<p>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 SDXL \u043d\u0430 \u043f\u043b\u043e\u0445\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0441 \u0446\u0435\u043b\u044c\u044e \u0435\u0433\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u043e\u0439 <a href=\"https:\/\/openai.com\/research\/learning-from-human-preferences\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0442\u0437\u044b\u0432\u043e\u0432 \u043b\u044e\u0434\u0435\u0439<\/a> (RLHF): \u0442\u0430 \u0436\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c ChatGPT \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0449\u043d\u043e\u0439, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0430 \u0435\u0441\u0442\u044c. \u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a OpenAI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 \u043d\u0435\u044f\u0432\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u0437\u0434\u0435\u0441\u044c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c (\u0442. \u0435. \u0432\u044b\u0431\u043e\u0440 \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043f\u043b\u043e\u0445\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439) \u0434\u043b\u044f \u043d\u0435\u044f\u0432\u043d\u043e\u0433\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u041d\u043e \u0441 Dreambooth LoRA \u0432\u0430\u043c \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u043c \u043c\u043e\u0434\u0435\u043b\u044f\u043c.<\/p>\n<p>\u0414\u043b\u044f \u00ab\u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0445 LoRA\u00bb \u0435\u0449\u0435 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f: \u043c\u043e\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c, \u0430 LoRA \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043e\u0431\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u043b\u044c\u0448\u0435. \u041d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u044f \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u0432\u043e\u043b\u0435\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0438 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 LoRA, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 LoRA, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 \u044d\u0442\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0438\u0445 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f<\/code> LoRA + Ugly Sonic LoRA!)<\/p>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u0432\u0435\u0440\u044c\u0442\u0435, \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0435\u0442, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0445\u0443\u0448\u043a\u0430 \u0430\u0439\u0441\u0431\u0435\u0440\u0433\u0430. SDXL \u0442\u0430\u043a\u0436\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 ControlNet \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u0433\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u043e\u0439 \u0438 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/39f\/606\/437\/39f60643750ecd27c68a8e31574758b6.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438 SDXL \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c ControlNet \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c (\u0431\u044b\u0432\u0448\u0435\u0433\u043e) \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430 Twitter\/X.\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438 SDXL \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c ControlNet \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c (\u0431\u044b\u0432\u0448\u0435\u0433\u043e) \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430 Twitter\/X.\" width=\"1024\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/39f\/606\/437\/39f60643750ecd27c68a8e31574758b6.png\"\/><\/p>\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438 SDXL \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c ControlNet \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c (\u0431\u044b\u0432\u0448\u0435\u0433\u043e) \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430 Twitter\/X.<\/figcaption><\/div>\n<\/figure>\n<p>ControlNet \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 LoRA, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/756006\/\"> https:\/\/habr.com\/ru\/articles\/756006\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435 <strong>Stability AI<\/strong> \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 Stable Diffusion XL 1.0 (<strong>SDXL<\/strong>) \u0438 \u043e\u0442\u043a\u0440\u044b\u043b\u0430 \u0435\u0451 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044f \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043d\u0435\u0439.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0420\u0435\u043b\u0438\u0437 \u043f\u0440\u043e\u0448\u0451\u043b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0435\u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0448\u0443\u043c\u0438\u0445\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0443\u0442\u0438\u0445\u043b\u0430. \u0412\u0441\u0435 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043d\u044f\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0442\u0435\u043a\u0441\u0442 \u0418\u0418, \u0442\u0430\u043a\u0438\u043c \u043a\u0430\u043a <strong>ChatGPT<\/strong>. \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e <strong>SDXL<\/strong> \u043e\u0434\u043d\u0430 \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 1024&#215;1024 \u0431\u0435\u0437 \u043c\u0430\u0445\u0438\u043d\u0430\u0446\u0438\u0439, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 <strong>SDXL<\/strong> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439: \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e, \u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 SD. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0444\u0438\u043d\u0451\u0440\u0430. <a href=\"https:\/\/huggingface.co\/stabilityai\/stable-diffusion-xl-base-1.0\" rel=\"noopener noreferrer nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0430\u0436\u0438\u043e\u0442\u0430\u0436\u0430, \u0432\u043e\u043a\u0440\u0443\u0433 <strong>SDXL<\/strong> \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d \u0441\u043a\u0443\u0447\u0435\u043d. \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 Python <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/index\" rel=\"noopener noreferrer nofollow\">diffusers<\/a> \u043e\u0442 <a href=\"https:\/\/huggingface.co\/\" rel=\"noopener noreferrer nofollow\">Hugging Face<\/a> \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/api\/pipelines\/stable_diffusion\/stable_diffusion_xl\" rel=\"noopener noreferrer nofollow\">\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 SDXL \u0432 diffusers<\/a> \u043f\u0440\u043e\u0441\u0442\u044b \u0438 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f:<\/p>\n<pre><code class=\"python\">import torch from diffusers import DiffusionPipeline, AutoencoderKL  # \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 SDXL and \u0440\u0430\u0444\u0438\u043d\u0451\u0440\u0430 vae = AutoencoderKL.from_pretrained(\"madebyollin\/sdxl-vae-fp16-fix\",                                     torch_dtype=torch.float16) base = DiffusionPipeline.from_pretrained(     \"stabilityai\/stable-diffusion-xl-base-1.0\",     vae=vae,     torch_dtype=torch.float16,     variant=\"fp16\",     use_safetensors=True, ) _ = base.to(\"cuda\")  refiner = DiffusionPipeline.from_pretrained(     \"stabilityai\/stable-diffusion-xl-refiner-1.0\",     text_encoder_2=base.text_encoder_2,     vae=base.vae,     torch_dtype=torch.float16,     variant=\"fp16\",     use_safetensors=True, ) _ = refiner.to(\"cuda\")  # \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0431\u0435\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439  high_noise_frac = 0.8 prompt = \"an astronaut riding a horse\" negative_prompt = \"blurry, bad hands\"  image = base(     prompt=prompt,     negative_prompt=negative_prompt,     denoising_end=high_noise_frac,     output_type=\"latent\", ).images  image = refiner(     prompt=prompt,     negative_prompt=negative_prompt,     denoising_start=high_noise_frac,     image=image, ).images[0]<\/code><\/pre>\n<p>\u042f \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b \u043e\u0431\u043b\u0430\u0447\u043d\u0443\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u043d\u043e\u0432\u044b\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f <a href=\"https:\/\/www.nvidia.com\/en-us\/data-center\/l4\/\" rel=\"noopener noreferrer nofollow\">L4 GPU<\/a> (\u0432\u0441\u0435\u0433\u043e 0,24 \u0434\u043e\u043b\u043b\u0430\u0440\u0430 \u0437\u0430 \u0447\u0430\u0441 \u0441 <a href=\"https:\/\/cloud.google.com\/compute\/gpus-pricing\" rel=\"noopener noreferrer nofollow\">Spot instance<\/a> \u043d\u0430 <a href=\"https:\/\/cloud.google.com\/\" rel=\"noopener noreferrer nofollow\">Google Cloud Platform<\/a>) \u0438 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b \u043a \u0440\u0430\u0431\u043e\u0442\u0435. \u0421 <a href=\"https:\/\/www.nvidia.com\/en-us\/data-center\/l4\/\" rel=\"noopener noreferrer nofollow\">L4 GPU<\/a> \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f 1024&#215;1024 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e <em>22<\/em> <em>\u0441\u0435\u043a\u0443\u043d\u0434<\/em>, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0440\u0430\u0437 \u043d\u0430 GPU \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Stable Diffusion, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 100% \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 GPU, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043d\u043e \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0445\u0443\u0436\u0435.<\/p>\n<p><strong>diffusers<\/strong> \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0434\u0432\u0443\u0445 \u043d\u043e\u0432\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u043d\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043e Stable Diffusion: <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/using-diffusers\/weighted_prompts\" rel=\"noopener noreferrer nofollow\"><u>\u0432\u0437\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432<\/u><\/a> \u0438 <a href=\"https:\/\/huggingface.co\/docs\/diffusers\/training\/dreambooth\" rel=\"noopener noreferrer nofollow\"><u>\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u0438\u043d\u0444\u0435\u0440\u0435\u043d\u0441 Dreambooth LoRA<\/u><\/a>. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0437\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e diffusers \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/damian0815\/compel\" rel=\"noopener noreferrer nofollow\">compel \u0432 Python<\/a> \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u0437\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e <code>+<\/code> \u0438\u043b\u0438 <code>-<\/code> \u043a \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u043b\u043e\u0432\u0443, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0435\u0433\u043e \u00ab\u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c\u00bb \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0430\u0445 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0444\u0440\u0430\u0437\u044b: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0435 <code>\u043f\u0435\u0439\u0437\u0430\u0436 \u0421\u0430\u043d-\u0424\u0440\u0430\u043d\u0446\u0438\u0441\u043a\u043e \u0421\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440\u0430 \u0414\u0430\u043b\u0438, \u043c\u0430\u0441\u043b\u043e\u043c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435<\/code>, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 <code>\u0444\u043e\u0442\u043e\u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0421\u0430\u043d-\u0424\u0440\u0430\u043d\u0446\u0438\u0441\u043a\u043e<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0445\u0443\u0434\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u200b\u200b\u043a\u0430\u043a &#8212; <code>\u043f\u0435\u0439\u0437\u0430\u0436 \u0421\u0430\u043d-\u0424\u0440\u0430\u043d\u0446\u0438\u0441\u043a\u043e \u0421\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440\u0430 \u0414\u0430\u043b\u0438 (\u043c\u0430\u0441\u043b\u043e\u043c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435)+++<\/code>, \u0447\u0442\u043e\u0431\u044b Stable Diffusion \u0432\u0451\u043b \u0441\u0435\u0431\u044f \u0442\u0430\u043a, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c. \u0412 \u043c\u043e\u0451\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0441 \u043f\u0440\u043e\u043c\u043f\u0442\u0430\u043c\u0438, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0432 Stable Diffusion 2.0 \u0438 \u0432\u044b\u0448\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c (<a href=\"https:\/\/arxiv.org\/abs\/2207.12598\" rel=\"noopener noreferrer nofollow\">classifier-free guidance<\/a>) (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <strong>Guidance_scale<\/strong> \u0440\u0430\u0432\u0435\u043d 7,5; \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 13).<\/p>\n<blockquote>\n<p>\u0412\u043e \u0432\u0441\u0435\u0445 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u043e\u0434\u0435\u043b\u044c\u044e <strong>LoRA<\/strong> \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>guide_scale<\/code>, \u0440\u0430\u0432\u043d\u044b\u0439 <em>13<\/em>.<\/p>\n<\/blockquote>\n<h3>LoRA the Explorer<\/h3>\n<p>\u041d\u043e \u0447\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u043e, \u0442\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <strong>Dreambooth LoRA<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Stable Diffusion &#171;\u043d\u0430 \u0437\u0430\u043a\u0430\u0437&#187;. <strong>Dreambooth<\/strong> \u2014 \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Stable Diffusion \u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u043c \u0441\u043b\u043e\u0432\u0435-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u00ab\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e\u00bb \u0438\u0437 \u044d\u0442\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430\u0445 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b Dreambooth; <a href=\"https:\/\/dreambooth.github.io\/\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 Stable Diffusion, \u0434\u0430\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u043e\u0433\u0438\u0445 GPU \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0430\u043c\u0438. \u0412\u043e\u0442 \u0442\u0443\u0442-\u0442\u043e \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f <a href=\"https:\/\/github.com\/microsoft\/LoRA\" rel=\"noopener noreferrer nofollow\">LoRA<\/a>: \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0434\u0435\u0448\u0451\u0432\u043e\u043c GPU \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442, \u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 + LoRA \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u043e \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 (\u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0435\u0447\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043b\u044e\u0434\u0438 \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u043d\u043a\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Stable Diffusion, \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LoRA). \u041e\u0431\u0443\u0447\u0435\u043d\u043d\u0430\u044f LoRA \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u043c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0438\u043b\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a <a href=\"https:\/\/civitai.com\/\" rel=\"noopener noreferrer nofollow\">Civitai<\/a>. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a LoRA \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0441\u0442\u0438\u043b\u044c \u0432 \u043e\u0434\u043d\u043e\u043c LoRA \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435: \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e LoRA, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u043e\u0442 \u0432\u0441\u0435\u0445, \u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0438\u043a\u0430\u0442\u043d\u0430\u044f \u043d\u0430\u0443\u043a\u0430.<\/p>\n<p>\u0414\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Stable Diffusion LoR&#8217;\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0448\u0438\u0440\u043e\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 <a href=\"https:\/\/arxiv.org\/abs\/2208.01618\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044f<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e, \u043d\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0443\u043a\u043b\u044e\u0436\u0438\u043c\u0438. \u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044e \u043d\u0430 \u0448\u0443\u0442\u043e\u0447\u043d\u043e\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 &#8212; <a href=\"https:\/\/knowyourmeme.com\/memes\/ugly-sonic\" rel=\"noopener noreferrer nofollow\">\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u043e\u043c \u0421\u043e\u043d\u0438\u043a\u0435,<\/a> \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 Stable Diffusion \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u043d \u0431\u044b\u043b \u0431\u044b \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u044b\u043b\u0438 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u043c\u0438.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0440\u043e\u0434\u043b\u0438\u0432\u044b\u0439.<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0430 LoRA \u043d\u0430 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 Ugly Sonic \u0441\u0442\u0430\u043d\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u0430 SDXL. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, Hugging Face \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 <a href=\"https:\/\/github.com\/huggingface\/diffusers\/tree\/main\/examples\/dreambooth\" rel=\"noopener noreferrer nofollow\">train_dreambooth_lora_sdxl.py<\/a> \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f LoRA \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 SDXL, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb, \u0445\u043e\u0442\u044f \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b &#171;\u0423\u0440\u043e\u0434\u043b\u0438\u0432\u043e\u0433\u043e \u0421\u043e\u043d\u0438\u043a\u0430&#187; \u0438\u0437 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u043e\u0439 LoRA, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0438 \u0441\u0432\u044f\u0437\u043d\u0435\u0435 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u0430\u043c.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0421\u043e\u043d\u0438\u043a, \u043d\u043e \u0441 \u0437\u0443\u0431\u0430\u043c\u0438.<\/figcaption><\/div>\n<\/figure>\n<h2>\u041d\u0415\u0412\u0415\u0420\u041d\u041e!<\/h2>\n<p>\u0414\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0441\u043f\u0435\u0445\u0430, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c <a href=\"https:\/\/minimaxir.com\/2022\/11\/stable-diffusion-negative-prompt\/\" rel=\"noopener noreferrer nofollow\">\u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0432\u0435\u0440\u0441\u0438\u0438<\/a>, \u043e\u0431\u0443\u0447\u0438\u0432 LoRA \u043d\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0438\u0441\u043a\u0430\u0436\u0451\u043d\u043d\u044b\u0445, \u043c\u0443\u0441\u043e\u0440\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445, \u043f\u0440\u043e\u043c\u043f\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435,<\/code> \u0432 \u043d\u0430\u0434\u0435\u0436\u0434\u0435, \u0447\u0442\u043e LoRA \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0438 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/github.com\/minimaxir\/sdxl-experiments\/blob\/main\/wrong_image_generator.ipynb\" rel=\"noopener noreferrer nofollow\">\u0431\u043b\u043e\u043a\u043d\u043e\u0442 Jupyter<\/a> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 &#171;\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445&#187; \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0430\u043c <strong>SDXL<\/strong>, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u0435\u0441\u043e\u0432\u044b\u0445 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0442\u0447\u0435\u0442\u043b\u0438\u0432\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0442\u0438\u043f\u043e\u0432 \u043f\u043b\u043e\u0445\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a <code>\u0440\u0430\u0437\u043c\u044b\u0442\u044b\u0435<\/code> \u0438 <code>\u043f\u043b\u043e\u0445\u0438\u0435 \u0440\u0443\u043a\u0438<\/code>. \u0418\u0440\u043e\u043d\u0438\u0447\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>SDXL<\/strong> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0438\u0437\u043a\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441 \u0432\u044b\u0441\u043e\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 &#171;\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445&#187; \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043f\u0440\u0435\u0434\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043e\u0431\u043b\u043e\u0436\u043a\u0438 \u0430\u043b\u044c\u0431\u043e\u043c\u043e\u0432 \u043f\u0430\u043d\u043a-\u0440\u043e\u043a\u0430 2000-\u0445 \u0433\u043e\u0434\u043e\u0432.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0430\u0441\u043f\u0435\u043a\u0442\u0435 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%97%D0%BB%D0%BE%D0%B2%D0%B5%D1%89%D0%B0%D1%8F_%D0%B4%D0%BE%D0%BB%D0%B8%D0%BD%D0%B0\" rel=\"noopener noreferrer nofollow\">\u0437\u043b\u043e\u0432\u0435\u0449\u0435\u0439 \u0434\u043e\u043b\u0438\u043d\u044b<\/a> \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0418\u0418, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430, \u043d\u043e \u043f\u0440\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u0443\u0436\u0430\u0441. \u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c (1024&#215;1024).<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u043e\u0431\u0443\u0447\u0438\u043b \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b <a href=\"https:\/\/huggingface.co\/minimaxir\/sdxl-wrong-lora\" rel=\"noopener noreferrer nofollow\">LoRA<\/a> \u0432 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c Stable Diffusion XL (\u0440\u0430\u0444\u0438\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 LoRA) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/colab.research.google.com\/github\/minimaxir\/sdxl-experiments\/blob\/main\/sdxl_wrong_comparison.ipynb\" rel=\"noopener noreferrer nofollow\">\u0431\u043b\u043e\u043a\u043d\u043e\u0442 Jupyter<\/a>, \u0447\u0442\u043e\u0431\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c \u0438\u0437:<\/p>\n<ul>\n<li>\n<p>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c + \u0420\u0430\u0444\u0438\u043d\u0451\u0440 \u0431\u0435\u0437 LoRA (\u0431\u0435\u0439\u0437\u043b\u0430\u0439\u043d)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0431\u0435\u0437 LoRA, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0432\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 (\u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043d\u0435\u0442 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9F%D0%BB%D0%B0%D1%86%D0%B5%D0%B1%D0%BE\" rel=\"noopener noreferrer nofollow\">\u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043f\u043b\u0430\u0446\u0435\u0431\u043e<\/a>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d <strong>\u0441 LoRA<\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0432\u043e <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/code>\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 (\u043d\u0430\u0448 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442)<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (<em>seed<\/em>), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0439, \u0430 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043a\u0430\u043a <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e<\/code> \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430, \u0442\u0430\u043a \u0438 LoRA \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u043c.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 \u0438\u0437 <a href=\"https:\/\/stability.ai\/blog\/sdxl-09-stable-diffusion\" rel=\"noopener noreferrer nofollow\">\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0439 SDXL 0.9<\/a>:<\/p>\n<figure class=\"full-width\">\n<div><figcaption><code>A wolf in Yosemite National Park, chilly nature documentary film photography - <\/code>\u0412\u043e\u043b\u043a \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b<\/figcaption><\/div>\n<\/figure>\n<p><code>\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> \u043f\u0440\u043e\u043c\u043f\u0442 \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043b\u0438\u0441\u0442\u0432\u0443 \u0438 \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e \u043b\u0435\u0441\u0430, \u043d\u043e LoRA \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435: \u0431\u043e\u043b\u0435\u0435 \u0447\u0451\u0442\u043a\u043e\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u043d\u0438, \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043b\u0438\u0441\u0442\u0432\u0443 \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0443 \u0432\u043e\u043b\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0432 \u043a\u0430\u043c\u0435\u0440\u0443, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.<\/p>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0443 \u0432\u043e\u043b\u043a\u0430 \u0441 \u043f\u043e\u0445\u043e\u0436\u0435\u0439 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043a \u043f\u0440\u043e\u043c\u043f\u0442\u0443 \u00ab<code>extreme closeup<\/code> &#8212; \u043a\u0440\u0430\u0439\u043d\u0438\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u043b\u0430\u043d\u00bb \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0438\u0434.<\/p>\n<figure class=\"full-width\">\n<div><figcaption><code>An extreme close-up of a wolf in Yosemite National Park, chilly nature documentary film photography - <\/code>\u042d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u043b\u0430\u043d \u0432\u043e\u043b\u043a\u0430 \u0432 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0419\u043e\u0441\u0435\u043c\u0438\u0442\u0438, \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0438\u043d\u043e\u0441\u044a\u0435\u043c\u043a\u0430 \u043f\u0440\u0438\u0440\u043e\u0434\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 LoRA \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443, \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0438 \u0440\u0435\u0437\u043a\u043e\u0441\u0442\u044c, \u0447\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0435. \u041d\u043e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0443.<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0435\u0434\u044b, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u0430\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0435\u0434\u044b, \u043d\u0430 <a href=\"https:\/\/minimaxir.com\/2022\/07\/food-photography-ai\/\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u043e\u0431\u0438\u0438 \u044d\u0442\u0438\u0445<\/a>. \u041c\u043e\u0436\u0435\u0442 \u043b\u0438 SDXL + <code>\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439<\/code> LoRA \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0435\u0432\u043a\u043b\u0438\u0434\u043e\u0432\u044b \u0433\u0430\u043c\u0431\u0443\u0440\u0433\u0435\u0440\u044b \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u0437\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435?<\/p>\n<figure class=\"full-width\">\n<div><figcaption><code>a large delicious hamburger (in the shape of five-dimensional alien geometry)++++, professional food photography - <\/code>\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u043a\u0443\u0441\u043d\u044b\u0439 \u0433\u0430\u043c\u0431\u0443\u0440\u0433\u0435\u0440 (\u0432 \u0444\u043e\u0440\u043c\u0435 \u043f\u044f\u0442\u0438\u043c\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u043e\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u0439 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438)++++, \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u0434-\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-352781","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=352781"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352781\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}