{"id":2529,"date":"2024-01-27T19:32:20","date_gmt":"2024-01-27T18:32:20","guid":{"rendered":"https:\/\/blog.idethloff.de\/wordpress\/?p=2529"},"modified":"2024-01-27T19:32:20","modified_gmt":"2024-01-27T18:32:20","slug":"stable-diffusion-locally-on-macbook-air-via-app-draw-things","status":"publish","type":"post","link":"https:\/\/blog.idethloff.de\/wordpress\/?p=2529","title":{"rendered":"Stable Diffusion locally on MacBook Air via App &#8222;Draw Things&#8220;"},"content":{"rendered":"<p>It would be nice to have a local installation of the open source text-to-image model Stable Diffusion&#8230; that was my idea this weekend. As I didn&#8217;t find any convincing installation manuals and even wasn&#8217;t sure if my Windows PC&#8217;s hardware would be sufficient, a very simple article about &#8222;Draw Things&#8220; came to my attention: <a href=\"https:\/\/www.unidigital.news\/draw-things-ki-bilder-kostenlos-unterwegs-generieren\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.unidigital.news\/draw-things-ki-bilder-kostenlos-unterwegs-generieren\/<\/a> Unfortunately my iPad and my iPhone are too old, but <strong>with my MacBook Air (M1,2020) the installation was no problem:<\/strong><br \/>\n<strong>Downloading the app &#8222;Draw Things&#8220; from the Apple Store and afterwards downloading the proposed model &#8222;SDXL Refiner v1.0 (8-bit)&#8220;<\/strong>. My first text prompt with default options, 1024&#215;1024 etc. and waiting time of some minutes, was a disaster, my second prompt was a disaster and so it went&#8230; double things and not nearly what I wanted. O.k., I&#8217;m a little bit spoiled because of mostly using ChatGPTPlus and Bing Image Creator, but what was that thing? Totally disappointed, I deleted all the results.<\/p>\n<p><em>Here is one disturbing example from today &#8222;young woman holding an umbrella&#8220;:<br \/>\n<\/em><br \/>\n<a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/highres-error-young_woman_holding_a_blue_umbrella_2090537349.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"image with model SDXL Refiner v.10 8-bit\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/highres-error-young_woman_holding_a_blue_umbrella_2090537349.png\" alt=\"image with model SDXL Refiner v.10 8-bit\" width=\"400px\" \/><\/a><br \/>\n(click to enlarge)<\/p>\n<p><strong>Today, I thought maybe I should be modest and download\/install an older Stable Diffusion model in my &#8222;Draw Things&#8220; app and therefore chose &#8222;Generic (Stable Diffusion v2.1)&#8220; which would result in a lower resolution image 512&#215;512.<\/strong> For my prompt I chose something about cats (because, normally &#8222;cats always work&#8220;) and finally, I got results resembling a cat:<\/p>\n<p><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/cat_646340751.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"image with model Generic, Stable Diffusion v2.1\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/cat_646340751.png\" alt=\"image with model Generic, Stable Diffusion v2.1\" width=\"100px\" \/><\/a><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/brown_white_cat_with_a_flower__photo_realistic_37092254.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"image with model Generic, Stable Diffusion v2.1\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/brown_white_cat_with_a_flower__photo_realistic_37092254.png\" alt=\"image with model Generic, Stable Diffusion v2.1\" width=\"100px\" \/><\/a><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/brown_white_cat_with_a_sunflower__photo_2199677441.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"image with model Generic, Stable Diffusion v2.1\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/brown_white_cat_with_a_sunflower__photo_2199677441.png\" alt=\"image with model Generic, Stable Diffusion v2.1\" width=\"100px\" \/><\/a><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/brown_white_cat_at_the_beach__photo_956973775.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"image with model Generic, Stable Diffusion v2.1\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/brown_white_cat_at_the_beach__photo_956973775.png\" alt=\"image with model Generic, Stable Diffusion v2.1\" width=\"100px\" \/><\/a><br \/>\n(click to enlarge)<\/p>\n<p>The good results with the older model led me to the assumption, that the SDXL model was the problem and I googled&#8230; a YouTube video &#8222;Fix Double-Headed Glitches in Stable Diffusion with Kohya Hires Fix!&#8220; helped me understand the problem (Link: <a href=\"https:\/\/youtu.be\/SbgMwHDXthU?feature=shared\" target=\"_blank\" rel=\"noopener\">https:\/\/youtu.be\/SbgMwHDXthU?feature=shared<\/a>). As I don&#8217;t have a local installation but the Apple Store App &#8222;Draw Things&#8220;, I can&#8217;t install any extensions, but I looked instead at the menu &#8222;Advanced&#8220; in my &#8222;Draw Things&#8220;: There is indeed already a solution, that means a configuration option named &#8222;High resolution fix&#8220; (description &#8222;[&#8230;] it avoids duplicate objects when generating directly&#8220;), which I simply had to enable in order to avoid double heads in my results.<\/p>\n<p><em>First result after enabling &#8222;High Resolution Fix&#8220;:<\/em><\/p>\n<p><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/highresfix-young_woman_sits_at_a_red_table_1433456194.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"image with model SDXL Refiner v.10 8-bit\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/highresfix-young_woman_sits_at_a_red_table_1433456194.png\" alt=\"image with model SDXL Refiner v.10 8-bit\" width=\"400px\" \/><\/a><br \/>\n(click to enlarge)<\/p>\n<p>That&#8217;s the problem with news articles regarding the topic IT or AI: they become obsolete faster than you can think &#8211; I don&#8217;t mean any offense &#8211; and next time, I will go through the advanced options even when I don&#8217;t want to experiment deeper with a software.<\/p>\n<p>At last, I can start generating images with my local installation of Stable Diffusion via App &#8222;Draw Things&#8220;:<\/p>\n<p><a href=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/screenshot-drawthings.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" title=\"Draw Things Screenshot\" src=\"https:\/\/www.idethloff.de\/blogfiles\/20240127\/screenshot-drawthings.png\" alt=\"Draw Things Screenshot\" width=\"400px\" \/><\/a><br \/>\n(click to enlarge)<\/p>\n<p>Thanks to the developer of &#8222;Draw Things: AI Generation&#8220;!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It would be nice to have a local installation of the open source text-to-image model Stable Diffusion&#8230; that was my idea this weekend. As I didn&#8217;t find any convincing installation manuals and even wasn&#8217;t sure if my Windows PC&#8217;s hardware would be sufficient, a very simple article about &#8222;Draw Things&#8220; came to my attention: https:\/\/www.unidigital.news\/draw-things-ki-bilder-kostenlos-unterwegs-generieren\/ &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.idethloff.de\/wordpress\/?p=2529\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eStable Diffusion locally on MacBook Air via App &#8222;Draw Things&#8220;\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,22,4],"tags":[],"class_list":["post-2529","post","type-post","status-publish","format-standard","hentry","category-e-learning","category-ki","category-software"],"_links":{"self":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2529"}],"version-history":[{"count":6,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2529\/revisions"}],"predecessor-version":[{"id":2535,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2529\/revisions\/2535"}],"wp:attachment":[{"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.idethloff.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}