{"id":446,"date":"2024-05-20T13:45:12","date_gmt":"2024-05-20T17:45:12","guid":{"rendered":"https:\/\/kryptech.name\/site\/?p=446"},"modified":"2024-05-20T13:45:14","modified_gmt":"2024-05-20T17:45:14","slug":"stable-diffusion-generation-widescreen-grungy-factory","status":"publish","type":"post","link":"https:\/\/kryptech.name\/site\/index.php\/stable-diffusion-generation-widescreen-grungy-factory\/","title":{"rendered":"Stable Diffusion Generation: Widescreen Grungy Factory"},"content":{"rendered":"\n<p>I like the aesthetic of vast industrial spaces filled with pipes and wires and rust, so I made a wide image designed to span both my 1920 x 1080 monitors. My meagre GTX-970 can&#8217;t manage such a large image so I generate a bunch of smaller images, find one I like, and then extend it and upscale.<\/p>\n\n\n\n<p>(I&#8217;ve only included the main steps below &#8211; I often use inpainting to refine various parts of the image along the way.)<\/p>\n\n\n\n<p>Here&#8217;s the initial image I chose, with this prompt:<\/p>\n\n\n\n<p><em>interior of a huge industrial factory, (hundreds of machines:1.1), massive gears and mechanisms, pipes, tubes, wires, gritty, rusty, dirty, grim, neon lighting, (cyberpunk:1.1)<\/em><\/p>\n\n\n\n<p>I used 8 steps and DPM++ SDE for the sampler.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/01348-DPM-SDE-1024x512-x8-2092184865.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"512\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/01348-DPM-SDE-1024x512-x8-2092184865.jpg\" alt=\"\" class=\"wp-image-447\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/01348-DPM-SDE-1024x512-x8-2092184865.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/01348-DPM-SDE-1024x512-x8-2092184865-300x150.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/01348-DPM-SDE-1024x512-x8-2092184865-768x384.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Starter image<\/figcaption><\/figure><\/div>\n\n\n\n<p>I liked the variety of things, and particularly the machine on stands near the middle and the large tank on the right side. Now I spent some more steps on that to improve the quality, using img2img. I used the same sampler but with 30 steps, and a denoising of 0.4 to generally keep the structure but allow the detail to be rebuilt.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02288-DPM-SDE-1024x512-x30-918418134.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"512\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02288-DPM-SDE-1024x512-x30-918418134.jpg\" alt=\"\" class=\"wp-image-448\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02288-DPM-SDE-1024x512-x30-918418134.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02288-DPM-SDE-1024x512-x30-918418134-300x150.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02288-DPM-SDE-1024x512-x30-918418134-768x384.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Ran through img2img<\/figcaption><\/figure>\n\n\n\n<p>The quality is improved &#8211; more crisp. Next I used outpainting to extend the image left and right.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02298-Euler-a-1408x512-x60-1392965150.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"372\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02298-Euler-a-1408x512-x60-1392965150-1024x372.jpg\" alt=\"\" class=\"wp-image-449\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02298-Euler-a-1408x512-x60-1392965150-1024x372.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02298-Euler-a-1408x512-x60-1392965150-300x109.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02298-Euler-a-1408x512-x60-1392965150-768x279.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02298-Euler-a-1408x512-x60-1392965150.jpg 1408w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Extended horizontally  to 1408 px <\/figcaption><\/figure>\n\n\n\n<p>The glowing doorframe is a nice cyberpunk touch. The right edge gives the feeling of the hazy outdoors with industrial smog. The boxes in the foreground right are off, though, so that needed help. I inpainted that area with this prompt:<\/p>\n\n\n\n<p><em>interior of a huge industrial factory, (metal boxes:1.2) of broken machines, gritty, rusty, dirty, grim, concrete<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02299-DDIM-1408x512-x30-1711121659.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"372\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02299-DDIM-1408x512-x30-1711121659-1024x372.jpg\" alt=\"\" class=\"wp-image-450\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02299-DDIM-1408x512-x30-1711121659-1024x372.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02299-DDIM-1408x512-x30-1711121659-300x109.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02299-DDIM-1408x512-x30-1711121659-768x279.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02299-DDIM-1408x512-x30-1711121659.jpg 1408w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Fixed boxes<\/figcaption><\/figure>\n\n\n\n<p>Much better! Time to outpaint to extend further.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"293\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362-1024x293.jpg\" alt=\"\" class=\"wp-image-451\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362-1024x293.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362-300x86.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362-768x219.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362-1536x439.jpg 1536w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02308-Euler-a-1792x512-x60-67579362.jpg 1792w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Extended horizontally to 1792 px<\/figcaption><\/figure>\n\n\n\n<p>A mysterious box with a glowing symbol &#8211; noice! But it also looks a bit janky. Rather than a symbol, I preferred an opening\/window to something going on inside the box. Inpaint it! Here is the prompt:<\/p>\n\n\n\n<p><em>interior of a huge industrial factory, glowing furnace, high temperature, gritty, rusty, dirty, grim, concrete, metal, glass<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"293\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915-1024x293.jpg\" alt=\"\" class=\"wp-image-452\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915-1024x293.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915-300x86.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915-768x219.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915-1536x439.jpg 1536w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02333-DDIM-1792x512-x30-1024650915.jpg 1792w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Refine box on the bottom left<\/figcaption><\/figure>\n\n\n\n<p>That&#8217;s better. Time to extend to the full width necessary: 1920 x 512 pixels. I generated a bunch of outpaintings and settled on this one.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"273\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384-1024x273.jpg\" alt=\"\" class=\"wp-image-455\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384-1024x273.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384-300x80.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384-768x205.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384-1536x410.jpg 1536w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02358-DDIM-1920x512-x40-3714427384.jpg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Extended horizontally to 1920 px<\/figcaption><\/figure>\n\n\n\n<p>Now that the ratio is basically correct, it&#8217;s time to upscale. I used ControlNet with &#8220;tile_resample&#8221; and Ultimate SD upscale with 4x-UltraSharp to preserve the structure. It was 30 steps with the DPM++ SDE sampler, CFG of 7, and a denoising strength of 0.5.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-scaled.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"288\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-1024x288.jpg\" alt=\"\" class=\"wp-image-456\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-1024x288.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-300x84.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-768x216.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-1536x432.jpg 1536w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02359-DPM-SDE-3840x1080-x30-4444-2048x576.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Upscaled to 3840 x 1080 px<\/figcaption><\/figure>\n\n\n\n<p>I was very pleased with the result. A few areas could use some help. The glowing doorway is eye-catching so I wanted that to be more interesting. The large tank on the right side with the cyan writing could be improved too. Lastly, I wanted the far right side to be more outdoor than interior and for the reflections to be more consistent. So I inpainted each of those.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-scaled.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"288\" src=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-1024x288.jpg\" alt=\"\" class=\"wp-image-457\" srcset=\"https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-1024x288.jpg 1024w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-300x84.jpg 300w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-768x216.jpg 768w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-1536x432.jpg 1536w, https:\/\/kryptech.name\/site\/wp-content\/uploads\/2024\/05\/02368-DDIM-3840x1080-x30-2435071638-2048x576.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Inpainted elements for interest, detail, and consistency<\/figcaption><\/figure>\n\n\n\n<p>The final picture is one of my favourite Stable Diffusion generations yet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like the aesthetic of vast industrial spaces filled with pipes and wires and rust, so I made a wide image designed to span both my 1920 x 1080 monitors. My meagre GTX-970 can&#8217;t manage such a large image so I generate a bunch of smaller images, find one I like, and then extend it &#8230;<a class=\"post-readmore\" href=\"https:\/\/kryptech.name\/site\/index.php\/stable-diffusion-generation-widescreen-grungy-factory\/\">read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":454,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/posts\/446"}],"collection":[{"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/comments?post=446"}],"version-history":[{"count":2,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/posts\/446\/revisions\/458"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/media\/454"}],"wp:attachment":[{"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/media?parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/categories?post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kryptech.name\/site\/index.php\/wp-json\/wp\/v2\/tags?post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}