avatarJim Clyde Monge

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1873

Abstract

AM and it could generate up to 1088x1088 images. Going for higher resolution ends up in memory resource issues. It’s important to note that in the original repo, the maximum resolution I got was only 512x512 in similar hardware specs.</p><h2 id="d083">Step#1: Setup your environment</h2><ul><li>Download and install the latest Git <a href="https://git-scm.com/download/win">here</a>.</li><li>Download the optimized Stable Diffusion project <a href="https://mega.nz/file/TEw3HCxA#SbDyov9ZXIGH8FEJ1OeXyOU7D_G4ykqg8WkZdvIr1nM">here</a>.</li></ul><p id="1b92">Mind you, the file is over 8GB so while you wait for the download to finish, grab a coffee.</p><p id="ea8c">Extract the zip file to your local drive and you should see these folder contents.</p><figure id="54c7"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*a5ixLjf_kdMsJqbkemjbJQ.png"><figcaption></figcaption></figure><h2 id="1811">Step#2: Install the dependencies</h2><p id="3253">Double-click the <i>“1) install.bat” </i>file.</p><p id="bef8">A success message should appear at the bottom of the screen to confirm the installation.</p><figure id="ae9c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*P6BhxdNolbzwdcrGeRrbFQ.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="7254">Next, run the batch file <i>“SD_OPT) run optimized txt2img.bat”.</i></p><p id="8180">For a brief period, the command prompt could seem frozen. It’s simply loading the 4GB model, so don’t freak out. When it’s finished, this message should appear on the screen.</p><figure id="a44b"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*OGv3HnXOSKDQITotXEl_7w.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="fb94">An error message might show up, just close it. It doesn’t mean anything.</p><figur

Options

e id="2080"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*zKKn-kMzMLf8oFMGoYb1hg.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><h2 id="ee15">Step#3. Generate Image</h2><p id="5f20">Visit <a href="http://127.0.0.1:7860/">http://127.0.0.1:7860/</a> in your browser to bring up the Gradio UI. If it doesn’t, try this <a href="https://16787.gradio.app">link </a>instead.</p><p id="8fff">All that needs to be done now is to generate a sample image. Let’s try the prompt below and see the result.</p><div id="2bef"><pre>photo of miniature Australian <span class="hljs-keyword">Shepherd </span>puppy on pier in front of <span class="hljs-keyword">breathtaking </span>mountain lake, epic <span class="hljs-keyword">scene, </span><span class="hljs-keyword">beautiful </span>colors, high resolution</pre></div><figure id="a582"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*r7EhXDaJOc9gXYVlPceaXA.png"><figcaption>Image by <a href="undefined">Jim Clyde Monge</a></figcaption></figure><p id="1160">Awesome. I got a cute little puppy. Now it’s your turn to be creative and turn your ideas into images.</p><h2 id="19e4">Final Thoughts</h2><p id="ad9e">With the advent of new technologies comes new ways of creating art.</p><p id="2780">Stable Diffusion went open source just a couple of weeks ago, but it’s already having a profound effect on the way human artists create their work.</p><p id="d68a">The technology is still in its early stages and has yet to be perfected. For now, the software still struggles to comprehend long prompts, and generate texts, hands, and limbs.</p><p id="1a68">But make no mistake, Stable Diffusion is a disruptive force that could upend the entire art industry. It will be interesting to see how the art world adapts in the face of this new technology.</p></article></body>

An Easy Way To Run Stable Diffusion With GUI On Your Local Machine

Images generated with Stable Diffusion

A few days ago, I published a guide on how you can run Stable Diffusion on your local PC. While some were able to set it up properly, others ran into various problems.

So I wrote this article to show you an easier way to set up and run Stable Diffusion locally on your PC.

The tool comes with a Graphical User Interface (GUI) for an easier image generation process. This is what the Gradio UI looks like.

Image by Jim Clyde Monge

By the way, for those who are not familiar with the AI tool, here’s a short description:

Stable Diffusion is an AI model developed by Stability.AI. It takes a natural language text description and translates it to an image using a process called “diffusion”.

This repo is an optimized version of Stable Diffusion that use less VRAM than the original. Thanks to the awesome guy Viacheslav Ivannikov for the fork.

I tried it on my RTX3060 Ti with 8GB VRAM and it could generate up to 1088x1088 images. Going for higher resolution ends up in memory resource issues. It’s important to note that in the original repo, the maximum resolution I got was only 512x512 in similar hardware specs.

Step#1: Setup your environment

  • Download and install the latest Git here.
  • Download the optimized Stable Diffusion project here.

Mind you, the file is over 8GB so while you wait for the download to finish, grab a coffee.

Extract the zip file to your local drive and you should see these folder contents.

Step#2: Install the dependencies

Double-click the “1) install.bat” file.

A success message should appear at the bottom of the screen to confirm the installation.

Image by Jim Clyde Monge

Next, run the batch file “SD_OPT) run optimized txt2img.bat”.

For a brief period, the command prompt could seem frozen. It’s simply loading the 4GB model, so don’t freak out. When it’s finished, this message should appear on the screen.

Image by Jim Clyde Monge

An error message might show up, just close it. It doesn’t mean anything.

Image by Jim Clyde Monge

Step#3. Generate Image

Visit http://127.0.0.1:7860/ in your browser to bring up the Gradio UI. If it doesn’t, try this link instead.

All that needs to be done now is to generate a sample image. Let’s try the prompt below and see the result.

photo of miniature Australian Shepherd puppy on pier in front of breathtaking mountain lake, epic scene, beautiful colors, high resolution
Image by Jim Clyde Monge

Awesome. I got a cute little puppy. Now it’s your turn to be creative and turn your ideas into images.

Final Thoughts

With the advent of new technologies comes new ways of creating art.

Stable Diffusion went open source just a couple of weeks ago, but it’s already having a profound effect on the way human artists create their work.

The technology is still in its early stages and has yet to be perfected. For now, the software still struggles to comprehend long prompts, and generate texts, hands, and limbs.

But make no mistake, Stable Diffusion is a disruptive force that could upend the entire art industry. It will be interesting to see how the art world adapts in the face of this new technology.

Technology
Stable Diffusion
Artificial Intelligence
Ai Art
Machine Learning
Recommended from ReadMedium