<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rob Laughter on Medium]]></title>
        <description><![CDATA[Stories by Rob Laughter on Medium]]></description>
        <link>https://medium.com/@roblaughter?source=rss-5e3229595596------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KICCfP88hMDYVv2V</url>
            <title>Stories by Rob Laughter on Medium</title>
            <link>https://medium.com/@roblaughter?source=rss-5e3229595596------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:49:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roblaughter/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[10 Handcrafted Style Codes to Make Your Midjourney Images Pop]]></title>
            <link>https://roblaughter.medium.com/10-handcrafted-style-codes-to-make-your-midjourney-images-pop-36f8cde9b0a9?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/36f8cde9b0a9</guid>
            <category><![CDATA[image-generation]]></category>
            <category><![CDATA[midjourney-prompts]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[midjourney]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 18:24:40 GMT</pubDate>
            <atom:updated>2025-04-10T18:45:48.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iGrvIPa39w0jmoZcBS-5Gw.jpeg" /></figure><p><em>Find these codes and more on my A.I. learning community, </em><a href="https://roblaughter.com/collaborative"><em>the AI Collaborative</em></a><em>.</em></p><p>I have a simple rule about image generation.</p><p><strong>If your <em>prompt</em> is the only way that you’re communicating with an image model, you’re missing out on 90% or more of what image generation can do.</strong></p><p>In a <a href="https://roblaughter.medium.com/a-i-image-generation-4-features-you-might-not-know-about-but-you-should-a8df2dd21a89">previous post</a>, I told you about <em>style references—</em>how you can transfer the overall look and feel of an uploaded image to one that you generate with AI. In this post, we’re going to look at Midjourney’s <em>style codes.</em></p><p>Style codes are style references on steroids—a simple code that can capture the style from <em>dozens</em> of uploaded images and apply them to your image generation.</p><p>In this post, I’ll share ten of my favorite style codes with you. But first, let’s look at how style codes work and how you can use them.</p><h3>What are Midjourney Style Codes?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpepZu7t3__cYtgRNBeJCQ.png" /><figcaption>Midjourney Mood Boards via <a href="https://updates.midjourney.com/profiles-and-moodboards/">Midjourney</a></figcaption></figure><p>Midjouney style codes are <strong>personalization codes</strong> that you can use to change the look and feel of your images without prompting.</p><p>There are a few ways that you can create and share Midjourney style codes:</p><ol><li>With <em>personalization, </em>which lets you rank the images you like best and then fine tunes Midjourney’s style to your preferences.</li><li>With <em>mood boards,</em> which let you upload a set of reference images and then create images of a similar style.</li></ol><p>You can learn more about profiles and mood boards from <a href="https://updates.midjourney.com/profiles-and-moodboards/">Midjourney’s blog</a>.</p><p>All of the style codes I share below are created with mood boards using images I’ve curated with various styles.</p><h3>How do I use a style code?</h3><p>To use a style code that you’ve created or that someone has shared with you, simply paste the code to the end of the prompt. This works both on Discord and on web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_qn_CTO8illr06RrxgfJ-g.png" /></figure><p>You can use multiple style codes in one image by including all of the codes after the <em>profile </em>tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1JxHSKLjlmgCu67m" /><figcaption>Changing the stylization parameter with style codes increases the overall influence of those styles. Source: <a href="https://docs.midjourney.com/hc/en-us/articles/32433330574221-Personalization">Midjourney</a>.</figcaption></figure><p>You can adjust the overall influence of style codes with the <em>stylization</em> parameter. The stylization parameter ranges from 0 (weakest influence) to 1,000 (strongest influence). You can set this in your prompt <em>or </em>in the generation settings in the web interface.</p><h3>My hand-crafted, ready-to-use Midjourney style codes</h3><p>Without further ado, here are the codes! Each code is paired with an image and the prompt used to generate that image for quick reference. Experiment with different stylization strengths to dial each style in to your desired aesthetic.</p><h4>Style Code #1: 60s Space Sci-Fi</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XsoJKE93z2V9lQV2.png" /></figure><pre>--profile 6pkc93r</pre><p>An astronaut exploring the surface of an alien planet with strange rock formations and bioluminescent plants, distant gas giant visible in the sky, red and purple tones, low gravity indicated by floating dust particles, futuristic spacesuit with glowing visor, wide angle shot, epic and mysterious atmosphere</p><h4>Style Code #2: Animated Cartoon Style</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hik-aXTLp7OPjWwf.png" /></figure><pre>--profile uyqqja9</pre><p>A young couple laughing while walking through a city park in autumn, fallen leaves around them, casual clothes, candid moment, soft afternoon light, warm tones</p><h4>Style Code #3: Ferrania Solaris (Vintage Film)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cT8r1m7U9kyJ5sts.png" /></figure><pre>--profile 5e6pvsm</pre><p>A candid photo of a young woman working on a laptop in a modern cafe, wearing casual clothes, sunlight streaming through large windows, warm tones, shallow depth of field, soft bokeh in the background, relaxed vibe, natural lighting, shot from side angle, digital nomad aesthetic, cozy</p><h4>Style Code #4: Fisheye Lens</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZsbZe06THXRJu4MU.png" /></figure><pre>--profile wjkwyzz</pre><p>A portrait of a smiling barista holding a cup of coffee in a hip coffee shop, industrial decor in the background, warm lighting, shallow focus, friendly and welcoming mood</p><h4>Style Code #5: Awkward Yearbook Photos</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KN--nVGqVbWzAhn7.png" /></figure><pre>--profile fdjmh19</pre><p>An awkward 80s style yearbook photo of a high school girl with curly hair and big glasses holding a pet iguana</p><h4>Style Code #6: Travel Photography</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yv2T_FaKLofXws1z.png" /></figure><pre>--profile urv6e6j</pre><p>A mountain landscape with a hiker standing on a cliff edge looking out over a valley, mist in the distance, sunrise light casting long shadows, wide angle, adventure vibe, epic feel</p><h4>Style Code #7: Vintage Polaroid</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xMKlVkdUZGXV8zTe.png" /></figure><pre>--profile 89bdin7</pre><p>A photograph of a golden retriever sitting attentively in a field of wildflowers. The dog has soft fur and gentle brown eyes, with a pink tongue slightly visible as it gazes directly at the camera. Behind the dog, a blurred background showcases a vibrant array of yellow, purple, and white wildflowers bathed in the warm glow of the late afternoon sun. A weathered wooden fence softly frames the scene, adding a touch of rustic charm.</p><h4>Style Code #8: Courtroom Sketch</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F4w_iydCtA6Kou25.png" /></figure><pre>--profile 3g3baot</pre><p>A group of coworkers collaborating around a whiteboard in a modern office, brainstorming session, bright interior light, candid energy, teamwork concept, business casual attire</p><h4>Style Code #9: AGFA B&amp;W (Vintage Film)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SVV0v0lDribQ3DHr.png" /></figure><pre>--profile nt3q2ft</pre><p>A close-up of a person’s hands typing on a mechanical keyboard, tech setup in the background with RGB lights, low-key lighting, moody gamer or developer aesthetic</p><h4>Style Code #10: Children’s Book Illustration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*99hYQ4_JQjEoTrNF.png" /></figure><pre>--profile ad7olsz</pre><p>A young child playing with building blocks on a colorful rug in a playroom, natural light from a window, bright and cheerful mood, educational theme, candid and playful moment</p><h3>Where can I get more style codes?</h3><p>If you want more style codes, I’d first encourage you to try creating some yourself! You can learn more about personalization in the <a href="https://docs.midjourney.com/hc/en-us/articles/32433330574221-Personalization">Midjourney documentation</a>.</p><p>If you appreciate these and want more like them, I have a growing library of curated style codes in my A.I. learning community, the <em>A.I. Collaborative.</em> You can <a href="https://aicollaborative.circle.so/c/midjourney-styles/">get free access here</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36f8cde9b0a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Image Prompting Mistakes—and how to avoid them]]></title>
            <link>https://roblaughter.medium.com/10-image-prompting-mistakes-and-how-to-avoid-them-244f972d0c2a?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/244f972d0c2a</guid>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[midjourney]]></category>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Wed, 12 Feb 2025 18:17:34 GMT</pubDate>
            <atom:updated>2025-02-18T03:56:37.246Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qx4pw7ITvDkGfqKzlTk5Rg.png" /></figure><p><em>This post is brought to you by the AI Collaborative. Get free generative AI resources and community by </em><a href="https://roblaughter.com/collaborative/join"><em>signing up here</em></a><em>.</em></p><p>Writing prompts for AI image generators such as Stable Diffusion, Flux, or Midjourney is far more of an art than a science. Unlike LLMs, which are trained to follow instructions and reason through a response, image models are still a bit of an enigma when it comes to finding the perfect prompt.</p><p>I’m all for throwing word salad at the wall and seeing what sticks, but in my workshops and coaching, I’ve come across several common mistakes that can affect your ability to generate the image you’re imagining.</p><p>In this article, I’ll walk through some of those mistakes, and offer some suggestions on how to avoid them.</p><h4>1. You’re prompting like you’re talking to a chatbot.</h4><p>I know you’ve been told that you should say “please” when you’re interacting with AI, either to get better results or to make sure that our future robot overlords destroy you last when they inevitably take over the world.</p><p>That’s all well and good if you’re interacting with ChatGPT. It’s counter-productive when you’re prompting an image model. Lanugage such as “Please create an image of…” or “the image should contain elements such as…” is unnecessary and distracts from the descriptive elements that the model can act on.</p><p>Instead, just describe the details of the image that you want the model to produce. See my <a href="https://www.youtube.com/watch?v=fqjW-ZGG-gQ"><em>Prompt Pyramid </em>method</a> for structuring effective image prompts.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfqjW-ZGG-gQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfqjW-ZGG-gQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfqjW-ZGG-gQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bbb7eaaba54b65fb3c73541fb0b44e2/href">https://medium.com/media/0bbb7eaaba54b65fb3c73541fb0b44e2/href</a></iframe><p>Of course, if you’re using a model such as DALL-E 3 or Ideogram’s Magic Prompt, you <em>are</em> talking to a chatbot, which is then writing the prompt for the image model.</p><h4>2. Your prompts are too long.</h4><p>Each image model can only process a finite amount of information. There are two areas where prompt length will cause problems—first in the <em>text encoder</em> and second in the model itself.</p><p>The text encoder is responsible for converting your human language into an <em>embedding</em> that the model can understand. Rather than words, models understand concepts in discrete units called <em>tokens.</em></p><p>Each generation and family of image models uses a different set of text encoders, and each of those text encoders has a hard limit on the number of tokens it can process in a single embedding.</p><ul><li><strong>Flux: </strong>T5 encoder handles 512 tokens (~375 words), while the secondary CLIP-L encoder handles 77 tokens (~50 words). Keep the most important features at the beginning of the prompt.</li><li><strong>Stable Diffusion 3.5: </strong>SD 3.5’s implementation of T5 can encode 256 tokens (~200 words), while the CLIP-L and CLIP-G encoders can handle 77 tokens (~50 words).</li><li><strong>Older Stable Diffusion models: </strong>SD 1.5-based models use CLIP-L, while SDXL models use CLIP-G and CLIP-L. Both of these encoders handle 77 tokens (~50 words).</li></ul><p>There are ways to split your prompt and generate embeddings for smaller chunks at a time, but long story short, if your prompt is longer than the text encoder can handle, anything after the cutoff will be ignored. Be descriptive, but be efficient, and make sure the most important concepts come at the beginning of your prompt.</p><p>The second area where length will work against you is in the sheer volume of details that you try to cram into a prompt. When the model generates your image, it looks at all of the concepts in your prompt and takes one shot at what that image might look like. Even if the concepts can all be encoded, the model can only do so much to include them.</p><h4>3. You’re indecisive.</h4><p>I see endless prompts for “generate an image with <em>this</em> or maybe <em>that.” </em>On the whole, an image model can’t follow instructions. By including both <em>this</em> and <em>that </em>in the prompt, you’re telling the model that you want it to produce both, not one or the other.</p><p>Be decisive and clear about what you want to see in the image. If you’re not sure whether you want the model to include one element or another, pick one, and then generate another image with the other option.</p><h4>4. Your prompts contradict themselves.</h4><p>No joke, I saw a prompt not too long that was asking the model to produce an image of “a bald man with yellow hair.”</p><p>If you contradict yourself in a prompt, the model will still generate an image. It just might not be exactly what you were going for.</p><p>You <em>can</em> use contradictions strategically to balance out concepts in a prompt, in which case, go for it. Otherwise, keep an eye out for clashing concepts in your prompt.</p><h4>5. Your prompts aren’t written for the model you’re using.</h4><p>Every image model is trained on images with captions that describe what is in the image. As the model is trained, it learns the relationships between features in the caption and the image, so that when it’s time to generate an image from a text prompt, the model can recall what it learned.</p><p>The most effective prompts for image models are those that reflect the captions on which the model was trained.</p><p>Back in the days of Stable Diffusion 1.5, image datasets were largely captioned by hand, scraped from the internet, or captioned with a predictive tagging tool. Prompts were just a jumbled array of keywords and phrases that might be associated with the style of image we want, and the model often didn’t capture the nuance of what the user was going for.</p><p>As models have matured, however, so has the role of captions in the training process. Today, images are being <a href="https://cdn.openai.com/papers/dall-e-3.pdf">captioned automagically with LLMs</a>, leading to richer and more accurate captions.</p><p><strong>SD 1.5/SDXL-based models </strong>are typically captioned with tag based prompting. Succinct, get to the point, tell the model what you want.</p><p><strong>SD 3.5/Flux/DALL-E models</strong> are typically captioned with a combination of human written captions and synthetic captions written by LLMs. They tend to be more nuanced and written in natural, descriptive language.</p><p>When in doubt, check the model card and note how the sample images have been prompted for, then emulate that prompting style. My <a href="https://chatgpt.com/g/g-OndbVJ3Et-image-prompt-generator">Image Prompt Generator</a> custom GPT has been instructed on how to prompt for various models to eliminate the guesswork.</p><h4>6. You’re writing poetry, not an image prompt.</h4><p>LLMs are particularly prone to writing image prompts that have more abstract, emotional language than actual descriptive details. “The image evokes a sense of curiosity and wonder, drawing the viewer in…”</p><p>That’s great for writing your next Harlequin romance novel, not so much for prompting an image model. As we covered above, your image prompts will be most effective if you prompt the image model like it was trained.</p><p>Effective image prompts tend to be clear, concise, and focused almost entirely on the visual elements of the scene. Write your prompt as if you were describing the scene to someone who couldn’t see.</p><p>Sure, concepts such as “curiosity” or “peace” may have a desirable effect on the overall image, but those details should be concise and relegated to the end of the prompt after the important details are out of the way.</p><p>Refer back to my <a href="https://youtu.be/fqjW-ZGG-gQ"><em>Prompt Pyramid</em> method</a> for ideas on how to incorporate these details.</p><h4><strong>7. You’re using negative prompts incorrectly.</strong></h4><p>Out of the box, most image models have some sort of implementation for negative prompts—prompts that describe to the model what you <em>don’t</em> want. Some models—such as current versions of Flux—don’t support negative prompts.</p><p>There are three areas where you may use negative prompts incorrectly.</p><ol><li>You’re describing what you don’t want in the main prompt, such as “An image of a cute puppy dog with no collar.” Image models don’t follow instructions, so it will just see “collar” in the prompt and assume you want the puppy to be wearing a collar.</li><li>You’re using the wrong syntax. I’ve seen users try to include operators like <em>-something -another thing</em> in their prompts. Generally speaking, models that support a negative prompt will have a separate field. This typically doesn’t work unless whatever app you’re using to generate your images has built functionality to support that. (An exception is Midjourney, which uses the syntax <a href="https://docs.midjourney.com/docs/no"><em>--no something</em></a> to delineate the negative prompt.)</li><li>You’re trying to use a negative prompt with a model that doesn’t support it. Flux, for example, doesn’t use the standard implementation of CFG (classifier free guidance) that is required for negative prompts, and therefore negative prompts don’t work with Flux models.</li></ol><p>If the model you’re using <em>does</em> support negative prompts, they can be a valuable tool, but you need to understand how they work in order to use them effectively.</p><p>Negative prompts aren’t firm instructions for the model to follow. Negative prompts are more of a <em>nudge </em>that guides the model <em>away</em> from the concepts in your negative prompt.</p><p>If the subject of your prompt is more strongly correlated with a concept than your negative prompt—such as trying to prompt for <em>Tom Selleck </em>without his iconic <em>mustache—</em>it may still win out in the tug-of-war between the two.</p><h4>8. You’re using the wrong syntax.</h4><p>Every image generator has its own syntax—the markup that you add around your prompt to make the model behave differently. This isn’t a feature of the image model itself; the markup is parsed by the front end/UI and it makes the adjustments before sending the request to the model.</p><p>For example, Midjourney uses <em>--no something</em> for a <a href="https://docs.midjourney.com/docs/no">negative prompt</a>, or a <a href="https://docs.midjourney.com/docs/multi-prompts">double-colon syntax</a> to separate concepts or to give more weight to a part of the prompt (e.g. <em>a hot:: dog::2</em>).</p><p>By contrast, many Stable Diffusion UIs use the syntax <em>(hot:2) dog </em>for prompt weighting. Many image models—particularly commercial models that you access online—don’t support weighting at all.</p><p>If you see anything other than text in an image prompt you encounter online, make sure that the image generator you’re using supports that syntax. If it doesn’t, the model will still generate an image; it will just consider the unsupported syntax to be part of the prompt.</p><h4>9. You’re relying on prompting alone.</h4><p>When it comes to the overall creative pipeline, prompting may be the most trivial task for executing our creative vision with image models. I know, that upsets some people who fancy themselves “prompt engineers,” it’s true.</p><p>I often see it play out like this:</p><ul><li>A user generates an image. It may be close, but not exactly what they’re going for.</li><li>They change up their prompt a bit and generate a new image. This one gets some of the details right, but now it’s missing others.</li><li>This continues for the next dozen or so images, and then they give up because “this image model is the worst.”</li></ul><p>Here’s the thing.<strong> Prompting alone often isn’t sufficient for creating the image you’re envisioning. </strong>There is a whole suite of tools to help you produce a final image, and many of them offer more control than prompting alone.</p><p>The secret to producing stunning images with AI image models is to use <em>all</em> of the tools available to you to emphasize the strengths of what AI models can do, and to mitigate their weaknesses.</p><p>Here’s an overview of some of the tools that you may want to consider integrating into your creative workflow.</p><ul><li><strong>Inpainting—</strong>masking and regenerating a portion of the image with a new, specific prompt.</li><li><strong>Character references—</strong>uploading an image of your character to help the model produce consistent characters across generations.</li><li><strong>Style references—</strong>same as character reference, but this time for style. Midjourney’s <a href="https://updates.midjourney.com/profiles-and-moodboards/"><em>moodboards</em></a> feature is one of the most underrated tools for guiding style.</li><li><strong>LoRA models—</strong>a LoRA is a <em>low rank adaptation </em>model, a tiny model trained to produce a specific character or style. You can train your own LoRAs with online tools such as <a href="https://fal.ai/models/fal-ai/flux-lora-fast-training">Fal</a> or <a href="https://education.civitai.com/using-civitai-the-on-site-lora-trainer/">Civitai</a>.</li><li><strong>ControlNet—</strong>a set of tools that can guide the model’s output based on a sketch, a depth map, edge detection, or other techniques.</li><li><strong>Image-to-image—</strong>using a base image to guide the general tone and structure of the generated image.</li><li><strong>Edit/Instruct models—</strong>models trained to make adjustments to an image based on instructions in a text prompt.</li></ul><p>You can see how I use several of these tools together to create a final scene in the video below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRd7cLJ9cYXg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRd7cLJ9cYXg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRd7cLJ9cYXg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/78cd1c7523c466e855599ee5715f1d81/href">https://medium.com/media/78cd1c7523c466e855599ee5715f1d81/href</a></iframe><h4>10. You’re not experimenting.</h4><p>At the end of the day, these are a bunch of suggestions that I’ve gleaned after generating hundreds of thousands of images with AI image models.</p><p>Prompting an image model is more of an art than a science. Sometimes totally random and seemingly contradictory concepts can blend together to guide the image to something really unique.</p><p>Follow the guidelines above, but let them be just that—<em>guidelines</em>. Part of the fun of using AI tools in the creative process comes from pushing them to do things they weren’t designed to do, or using them in unorthodox and creative ways.</p><p><em>This post was brought to you by the </em><a href="https://roblaughter.com/collaborative"><em>A.I. Collaborative</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=244f972d0c2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is that image AI? Here are 14 telltale signs to look for.]]></title>
            <link>https://roblaughter.medium.com/is-that-image-ai-here-are-14-telltale-signs-to-look-for-d40e5cff2d0a?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/d40e5cff2d0a</guid>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[ai-ethics]]></category>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[misinformation]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Thu, 02 May 2024 03:31:04 GMT</pubDate>
            <atom:updated>2024-05-02T18:00:10.747Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xGg1_pY19T7KGQSJjw1mcw.png" /></figure><p>One of the most common fears I hear with regard to AI generated images is that image generation will become so good that we won’t be able to distinguish between <em>real images</em> and <em>synthetic images.</em></p><p>First, I hate to break it to you, but <a href="https://www.boredpanda.com/ai-photos-boomer-didnt-notice-comments/">we</a> <a href="https://www.digitaltrends.com/computing/this-ai-generated-image-of-pope-fooled-everyone/">are</a> <a href="https://news.sky.com/story/fake-ai-images-keep-going-viral-here-are-eight-that-have-caught-people-out-13028547">already</a> <a href="https://marinaamaral.substack.com/p/ai-is-creating-fake-historical-photos">there</a>, and we’ve been there for some time. I’ve personally seen friends sharing AI generated images believing that they were real photos, who seemed downright betrayed when I told them that they weren’t authentic.</p><p>Second, AI image generation isn’t going anywhere, and it’s only going to get <em>more</em> convincing from here. And not just images. <a href="https://openai.com/sora">Video</a> and <a href="https://www.cbsnews.com/baltimore/news/maryland-framed-principal-racist-ai-generated-voice/">audio</a>, too.</p><p>Reactions to this reality setting in are wide ranging—from demands to ban all AI to just assuming that <a href="https://adage.com/article/special-report-super-bowl/jesus-he-gets-us-super-bowl-commercial-causes-ai-confusion-and-lesson-marketers/2541256"><em>everything </em>on the Internet is AI</a>—but one thing is for certain. We’re living in a time when convincing—but completely fake—images can be generated out of the ether with a few strokes on a keyboard, and we need to be more discerning about the content we engage with in the world around us than ever before.</p><h3>How I learned to spot a fake</h3><p>When I was a young lad, I worked as a cashier in a fast food restaurant. This was an era when most people paid with cash, so I’d handle hundreds of bills in a single shift.</p><p>One morning, a customer handed me a bill that felt “off.” The paper was too smooth. A little too thin. The ink didn’t have the contrast of all of the other bills I had handled that day.</p><p>At the cash register, I had a counterfeit detector pen—one you’d use to mark a bill, and the ink would change color if it were a fake—but I didn’t have to use it. Because I had handled so many examples of the real thing, I could tell it was a fake from the moment it touched my fingers.</p><p>In the same way, I’m in a unique position to spot AI generated images. As a photographer, I’ve edited hundreds of thousands of my own photos, peering at the subtle details of images down to the pixel. And as an AI enthusiast, I’ve generated <em>at least</em> 100,000 images using every mainstream image model under the sun—and a lot of obscure ones, too.</p><p>That exposure has given me a fine sensitivity between what a <em>real</em> image looks like and what a <em>fake</em> image looks like.</p><h3>How <em>you</em> can spot AI generated images</h3><p>But what if you—unlike me—have a life, and you haven’t seen a bajillion photos and AI generated images? How can you tell them apart?</p><p>At first glance, an image may be super convincing, but it turns out that there are common traits that many AI generated images share, and if you learn to look for them, you’ll be much more likely to spot AI generated images.</p><p>So buckle up; I’m going to help you differentiate between the real deal and the fakes. Here are 14 things to look for if you suspect that an image has been generated by AI.</p><h3>1. Bad hands</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXIaDVXZtsQabROIzUWQCw.png" /><figcaption>Either that guy was born with an extra digit, or this image was generated with AI.</figcaption></figure><p>A common and long-standing refrain with AI generated images has been, “It can’t do hands!” To quote the great poet Homer Simpson, <a href="https://www.reddit.com/r/TheSimpsons/comments/jsfa2/its_funny_cause_its_true_was_coined_on_the/">it’s funny because it’s true</a>.</p><p>While image models have gotten better at generating coherent images of hands, this observation holds. Because there there is a virtually infinite number of positions in which a hand and its digits can be posed, fine details such as hands are tough for image generators to get right.</p><p>AI can generate images where hands are the main focus just fine. But look closely at images where hands aren’t prominent and you’ll often see subtle incoherencies—extra digits, fingers blending together, strange hand positions, etc.</p><h3>2. Malformed text</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wq4SIyshMgoZpcWhHVGP4g.png" /><figcaption>Repeated and malformed text on the left, imitation text on the right.</figcaption></figure><p>In the same way that AI image generators struggle with hands, they are also notoriously bad at generating coherent text. That’s because they’re <em>image generators,</em> not <em>text generators.</em> Their primary job is to arrange pixels into images that look good together, not to write <em>War and Peace.</em></p><p>As with hands, image models are getting better at creating text when the text is the focal point of the image, but merely <em>imitates</em> text in the fine details. If you suspect that an image has been generated with AI, look closely at places where text would appear in an authentic image.</p><h3>3. Skin and hair textures</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pmdA8m-ebRJHEt0b8pCQ8Q.png" /><figcaption>AI generated skin textures can have a plasticine quality, or have repeated unnatural textures.</figcaption></figure><p>Image models are often trained to recognize the big picture details first, which means that some of the finer details get overlooked. (You’re probably starting to detect a pattern here.)</p><p>That includes details such as skin textures. AI generated skin textures can look flat, “photoshopped,” or plasticine in quality. Certain features such as freckles or wrinkles may be exaggerated or generated in a repetitive pattern, kind of like they were clone stamped in Photoshop.</p><h3>4. Lifeless, unfocused, or misshapen eyes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JBa6mcJZ9B5_EdNYs9zakA.png" /><figcaption>The eyes here have a lifeless quality to them, and the iris and pupil are misshapen.</figcaption></figure><p>Again, models continue to get better here day by day, but another detail that AI image models tend to struggle with are the eyes. There are a few telltale signs here that might tip you off to an AI generated image.</p><p>The first clue is that the eyes often have a lifeless or unfocused quality to them. Granted, my <em>actual</em> eyes probably have that sort of quality at the end of a long day, so it’s not a dead giveaway.</p><p>Another telltale sign is misshapen irises or pupils. This could be inconsistent sizing, blurred irises, or other unnatural traits that feel out of place.</p><h3>5. Repeating patterns and textures</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXQxRbaGcbBxm-Q_7L-i9g.png" /><figcaption>The fur here should be more chaotic. The repeating pattern and texture is a sign the image was generated with AI.</figcaption></figure><p>Another common trait that you’ll find in AI generated images is repeated patterns where you would normally expect randomness or chaos. You’ll often see this in hair and fur, foliage, wood, and other similar textures that should have a chaotic quality up close, but have the <em>appearance</em> of repetition at a distance.</p><p>In these cases, the image model is just approximating the <em>idea</em> of the texture, without the nuance and sophistication that you would find in the same texture in the real world.</p><h3>6. Repeating patterns and textures (again)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MCz_kw0laKjxic96iuXKw.png" /><figcaption>The orderly lines of a roller coaster start to break down in the distance.</figcaption></figure><p>Patterns and textures deserve a second mention here, but in reverse. Previously, we looked at <em>patterns</em> where you’d expect <em>disorder.</em> Now, we’re looking at <em>disorder</em> where you would expect <em>patterns.</em></p><p>These are areas where you would expect to see repeating patterns, but they aren’t there.</p><p>Things like parallel or perpendicular lines, tiles, and other such patterns where you’d expect order will often be misaligned or deformed in AI generated images.</p><h3>7. Subject blending</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzZYnKHSMYzGZWNVrfLY_A.png" /><figcaption>Look at that sweet family OF CREEPY CLONES!</figcaption></figure><p>Subject blending happens when the image model applies the same traits to multiple subjects in an image. You’ll get this a lot in faces, clothing, and colors, particularly when the image generator is prompted with generic terms— such as “a family” in this case.</p><p>If your image feels like a clone army, it’s probably generated with AI.</p><h3>8. Broken and incoherent lines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgJcxmhzd8t74S_SC8ZK2g.png" /><figcaption>Totally incoherent lines found in the chains of a swing set.</figcaption></figure><p>To be fair, I struggle with this one when I’m sketching, so I can’t be too critical when an image model gets it wrong. Fortunately for us, this telltale sign helps us recognize images when they’re generated with AI.</p><p>If you look closely at AI images, you’ll often see that if a line—trim on a wall, a window sill, a pipe, a tree— is partially obscured by an object in the foreground, it will often be “broken” when it emerges from the other side.</p><h3>9. Light rays, reflections, refraction, and shadows</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POqQZ20RoGfBKaBaQudJWg.png" /><figcaption>These reflections look good on first glance, but don’t make any sense when you take a second to think about them.</figcaption></figure><p>As we’ve been exploring, image generators are good at <em>mimicking</em> reality, but they’re not necessarily good at <em>simulating</em> reality. That is, it can make details such as reflections and shadows look plausible, but it can’t simulate what they should <em>actually</em> look like if the light was obeying the basic laws of physics.</p><p>In the image above, you should be seeing more of the underside of the car reflected in the wet pavement, but instead you see the glare from the <em>top</em> of the car, as if the image of the car was just flipped over. Similarly, with the car in the distance, its headlights are reflecting in the pavement—while it’s driving in the opposite direction.</p><p>Shadows and refraction (the way light bends as it passes through a material) also often break the laws of physics as AI mimics, but doesn’t simulate, those optical qualities.</p><h3>10. Inconsistency in fine details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*liUHDBAyGv_lHo_3uoBWuQ.png" /><figcaption>This image looks good at first, but quickly fails the photographic Turing test as you examine it.</figcaption></figure><p>AI images can look stunning at first glance, but as I read in a <a href="https://www.reddit.com/r/StableDiffusion/comments/1cgswbu/summer_is_here_in_germany_enjoy_the_sun/">Reddit post</a> last week, some AI images “get worse the longer you look at it.” That is, the more you notice, the more obvious the AI quirks become. A clock has four hands. A teapot has two spouts and no handle. A man is flipping a burger with a wooden spoon.</p><p>If you suspect an image is AI, look for the subtleties that are out of place.</p><h3>11. Incorrect or inconsistent proportions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fI5H-yvzcfuSK0ayRk1uSw.png" /><figcaption>That guy is cooking 2 pound burgers. I’d comment on the three grills, but that’s not out of the ordinary for a man.</figcaption></figure><p>AI can generate all sorts of incredibly realistic imagery, but on closer inspection, you may notice that proportions are just a bit off. On a person, limbs might be just a bit too long, or facial proportions might be close, but the eyes are too large. The relative sizes of objects within the scene may not make sense, as the AI does its best to reconstruct them, but doesn’t understand the relationships between them.</p><h3>12. Perspective and orientation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-jzeA1pBO5_9Zj3ZX48AQ.png" /><figcaption>Not quite…</figcaption></figure><p>Image models need to understand not only what an object (such as the Space Shuttle) looks like—they need to understand how that object is oriented in space relative to the viewer. When it’s time to generate an image, the model needs to coherently arrange all of the features of that object relative to the scene around it.</p><p>This is fine for simple objects, or objects that have very clear ups and downs, fronts and backs. It’s trickier for objects that can look radically different from different angles and perspectives, such as airplanes, wielded items (bats, clubs), or objects with straight lines (handles, railings, ropes).</p><p>Frankly, I’ve always had a hard time drawing wings on airplanes and space shuttles, so I’m not surprised that image models struggle here, too.</p><h3>13. Incoherent relationships between objects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P-xd_0hXT9oQDy-4Gjq97Q.png" /><figcaption>That’s an unconventional technique for pouring a glass of whiskey.</figcaption></figure><p>In a similar manner as above, AI image models can often understand individual objects very well, but when it comes to the relationships <em>between</em> those objects, they begin to struggle a bit.</p><p>In AI generated images, you might find the right objects in the scene, but you’ll find them in places they shouldn’t be, in arrangements that defy the laws of physics, and with other objects that shouldn’t go together.</p><h3>14. Items that are out of place</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N1IUY_y1q0qINzoISp-Udg.png" /><figcaption>Pens in pots with dirt. Pens in full cups of coffee. And how much coffee does this person need?!</figcaption></figure><p>If you <em>don’t</em> prompt for something when generating an AI image, the model will often fill in the details for you. And when it does, you can get some strange items in stranger places.</p><p>Like everything else in this guide, things will look fine on first glance, but the more you look, the more obvious it becomes that the image was created by a machine that is mimicking reality rather than understanding it. Look for objects that wouldn’t typically belong in a scene, like the pens in random places in the image above.</p><h3>Developing your AI image detection skills</h3><p>As I mentioned in my preamble, we are now officially living in a time when using discernment is more important than ever.</p><p>As the early Christian author, Lactantius, is attributed as having said:</p><blockquote><strong>“The first point of wisdom is to discern that which is false; the second, to know that which is true.”</strong></blockquote><p>We learn to recognize what we are familiar with, and the more you <em>use</em> AI image generators, the more you’ll learn to recognize when they’ve been used.</p><p>I hope this guide serves as a starting point to help raise an alarm when you see images that display some of these telltale signs of being generated with AI. But none of them are foolproof, and image models are only going to get better from here.</p><p>Be wise. Use discernment. Think twice before you share.</p><p><em>This post is brought to you by the </em><a href="https://roblaughter.com/collaborative"><strong><em>A.I. Collaborative</em></strong></a><strong><em>.</em></strong><em> Learn and practice generative A.I. skills in a community of like-minded peers. If you want to see more examples of realistic A.I. generated images, check out my side project, </em><a href="https://pixhub.replit.app/"><em>PixHub</em></a><em>, an “Unsplash” for A.I. imagery.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d40e5cff2d0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A.I. Image Generation: 4 features you might not know about (but you should)]]></title>
            <link>https://roblaughter.medium.com/a-i-image-generation-4-features-you-might-not-know-about-but-you-should-a8df2dd21a89?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8df2dd21a89</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[ai-art]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 14:44:59 GMT</pubDate>
            <atom:updated>2024-04-23T14:44:59.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dJSvEZKsQmqZ1ijJcJHqxg.png" /></figure><p><em>This post is brought to you by the </em><a href="https://roblaughter.com/collaborative"><strong><em>A.I. Collaborative</em></strong></a><strong><em>.</em></strong><em> Learn and practice generative A.I. skills in a community of like-minded peers.</em></p><p>If you’ve been around the generative A.I. world for any length of time, you’ve <em>probably</em> generated an image or two. Whether you’re using one of the <a href="https://roblaughter.medium.com/an-overview-of-a-i-image-generators-january-2024-a33db88e8513">popular online image generation tools</a> or you’re a mad scientist <a href="https://roblaughter.medium.com/a-crash-course-on-local-image-generation-with-stable-diffusion-f72dfd3de3df">running Stable Diffusion models</a> on your local machine, image generation has become super accessible for the general public.</p><p>There’s a difference, though, between simply <em>generating</em> an image and <em>crafting</em> an image that matches your creative vision, and oftentimes, the gap between the two seems uncrossable. No matter how carefully you craft your prompts, or how many times you generate variations of your image, the image model just doesn’t seem to want to cooperate.</p><p>In this post, I’m going to show you four advanced image generation features that will give you much more intentional, fine-grained control over the image generation process so that you can begin to execute on your creative vision with A.I. tools.</p><h3>1. ControlNet: Ultimate Composition Control</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9RCLWBM_sxGIq5fHpM83Q.png" /><figcaption>Images generated with various ControlNet preprocessors.</figcaption></figure><p><strong>The Gist:</strong> ControlNet models let you control the composition of your images by using an input image as a reference.</p><p><strong>The Details: </strong>Creating images with a specific structure can be a challenge with prompting alone. ControlNet models guide the image generation process by first <em>preprocessing</em> the input image into one of several guidance images, giving the artist detailed control over the overall structure and composition of the final image.</p><p>A few of the more common ControlNet models include:</p><ul><li><strong>Depth to image.</strong> Your input image is converted to a depth map, which is then used to constrain the structure of your image.</li><li><strong>Edge to image (canny, line art).</strong> The preprocessor detects the edges in your input image, and then uses the structure to guide the generation process.</li><li><strong>Pose to image (OpenPose).</strong> This preprocessor detects the pose from your input image, and then generates an image with the subject in that pose.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vp8vP11Vr4c3bufeswG0lA.png" /><figcaption>Several images generated from the same source image using the <em>depth ControlNet.</em></figcaption></figure><p>Others include the <em>scribble</em> ControlNet (for generating images from rough sketches), the <em>reference</em> ControlNet (which uses the input image to influence the overall “vibe” of the final image), and the <em>recolor</em> ControlNet, which is used for colorizing black and white images.</p><p>ControlNet models can be used to guide the subject only (e.g. pose to image), or can be used to guide the structure of the entire image (e.g. depth, line art).</p><p><strong>How to Use: </strong>ControlNet is built into most Stable Diffusion web UIs. It’s also available in <a href="https://roblaughter.com/try/leonardo">Leonardo.ai</a> as “image guidance.”</p><h3>2. IP-Adapter: Style and Character Transfer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lVf5gH_vSYyHoAFJ" /><figcaption>Using IP-Adapter in ComfyUI to apply the style of a source image to the output image.</figcaption></figure><p><strong>The Gist: </strong><a href="https://github.com/tencent-ailab/IP-Adapter">IP-Adapter</a> has been described as a “one-click LoRA.” It’s a fast, lightweight, model for applying the style, composition, and/or character from an input image to generated images.</p><p><strong>The Details: </strong>IP-Adapter works by adjusting the weights of the image model based on the characteristics of an input image. It’s super fast, requires no specialized training, and works very well.</p><p>IP-Adapter can transfer several details from the input image, together or independently:</p><ul><li><strong>Style. </strong>Transfers the overall style or vibe from the input image to the generated image.</li><li><strong>Composition. </strong>Transfers the overall composition of the input image, independently of the style. This also transfers some of the details about the character.</li><li><strong>FaceID. </strong>Transfers <em>only</em> the details about the character from the input image to the generated image. FaceID has fairly good results, but may not be a perfect likeness.</li></ul><p>When using IP-Adapter, users can adjust the weight, or amount of influence, that each element has on the final generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70jFUgbnpzQkCKeWKUUQuQ.png" /><figcaption>Image generated using Midjourney’s Style Reference feature, which is similar to IP-Adapter</figcaption></figure><p><strong>How to Use: </strong>Most Stable Diffusion web UIs have IP-Adapter support, either natively or through an extension. For ComfyUI, see <a href="https://github.com/cubiq/ComfyUI_IPAdapter_plus">IPAdapter plus</a>.</p><p>Many online image generation services are starting to support IP-Adapter features. Midjourney recently released <a href="https://docs.midjourney.com/docs/style-reference"><em>style reference</em></a><em> </em>and <a href="https://docs.midjourney.com/docs/character-reference"><em>character reference</em></a> features, which function in the same way. <a href="https://roblaughter.com/try/leonardo">Leonardo.ai</a> also has a <em>style reference</em> feature in the <em>Image Guidance</em> tab.</p><h3>3. Inpainting: Clean Up the Fine Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpyEdvERBHAcjdiqOySd2g.png" /><figcaption>Inpainting with DALL-E’s Edit Selection feature in ChatGPT.</figcaption></figure><p><strong>The Gist: </strong>Inpainting gives you fine control for correcting or changing small details by regenerating and replacing a specific area of your image.</p><p><strong>The Details: </strong>We’ve all generated an <em>almost</em> perfect image with one obnoxious detail out of place—whether it’s a misshapen hand, some errant text, or another flaw that we can’t unsee.</p><p>Inpainting lets you correct tiny details or create more sophisticated images by adding new features. Simply select the area of the image that you want to adjust and type in a new prompt for the replacement.</p><p>Because inpainting works by <em>denoising</em> the selected area and regenerating that part of the image, it helps when the image has existing structure to edit, and some features are easier to add than others. Advanced tools (such as Stable Diffusion web UIs) give the user finer control over the inpainting process.</p><p><strong>How to Use: </strong>Inpainting is supported in <em>most</em> of the common image generation apps at this point. All Stable Diffusion Web UIs have some level of inpainting support. ChatGPT/DALL-E allows inpainting with the <em>edit selection</em> feature. Midjourney calls it <em>vary region, </em>and <a href="https://roblaughter.com/try/leonardo">Leonardo.ai</a> allows users to inpaint in its <em>canvas editor. </em>Photoshop also includes a <em>generative fill</em> feature, which inpaints your image natively in Photoshop using Adobe’s Firefly model.</p><h3>4. Transparency: I’m Looking Through You</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNFTx062cRIDAE44QDqikw.png" /><figcaption>Comping a transparent images of water glasses (generated with Leonardo) into a scene using Photoshop.</figcaption></figure><p><strong>The Gist: </strong>Better than a simple background removal, some AI image generators can generate images with <em>actual</em> transparency. Perfect for generating assets to use in more creative compositions.</p><p><strong>The Details: </strong>Support for generating images with transparency is still growing. As of the time of this writing, the code to use this technique was just released a few weeks ago, but some image generators are already integrating it into their apps.</p><p>The difference between generating images with <em>actual</em> transparency and just knocking out a background is that portions of the generated image can be <em>partially</em> opaque, letting the image blend with a larger composition.</p><p><strong>How to Use: </strong>Transparent image generation is currently supported in Stable Diffusion’s SD Forge and ComfyUI with the <a href="https://stable-diffusion-art.com/transparent-background/">Layer Diffusion</a> extension. You can also generate transparent images with <a href="https://roblaughter.com/try/leonardo">Leonardo’s</a> <em>Transparency</em> feature. Just flip the switch when generating an image.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8df2dd21a89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run LLMs on your local computer—for free]]></title>
            <link>https://roblaughter.medium.com/run-llms-on-your-local-computer-for-free-bf42565cbe31?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf42565cbe31</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Tue, 16 Apr 2024 19:00:44 GMT</pubDate>
            <atom:updated>2024-04-16T19:00:44.191Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3JmfyGoC7ZnwEdhwM0S6BQ.png" /><figcaption>“For freeeeeee?” —Adam Sandler, <em>Bedtime Stories</em></figcaption></figure><p><em>This post is brought to you by the </em><a href="https://roblaughter.com/collaborative"><em>A.I. Collaborative</em></a><em>.</em></p><p>It’s April 2024. Chatbots are, as my mother says, “a dime a dozen.” You can use perfectly capable models for free from just about any service provider—Gemini from Google, Claude from Anthropic, ChatGPT from OpenAI. These proprietary models are fast, accurate, and often have helpful integrations like custom GPTs, the ability to run code, or the connections to services like your email and calendar.</p><p><strong>So why would anyone want to run a language model locally, on their own computer?</strong></p><p>There are a few reasons. First, if you’re a tinkerer, it’s <em>cool.</em> But more practically, running local language models:</p><ul><li>Keeps your data safe, as your data never leaves your local machine.</li><li>Is customizable, giving you the ability to choose between a growing library of foundational models and fine-tuned variants.</li><li>Is extensible, with features like retrieval augmented generation to access your docs and data, the ability to create agents to work together to accomplish tasks, access to your local file system, and the ability to run code on your local machine.</li></ul><p>If any of these use cases sound intriguing to you, let’s dive into how you can set up a local LLM on your own hardware and get started experimenting.</p><h3>Hardware for running local LLMs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*VlN80KdqOgJJ9PXzCJ7qYw.png" /><figcaption>Nana Dua on <a href="https://unsplash.com/@nanadua11">Unsplash</a></figcaption></figure><p><strong>Let’s start by addressing <em>hardware—</em></strong>the physical computer you’re going to use to run your LLM.</p><p>As a general rule in the world of generative A.I., your graphics card (GPU) is king, as most A.I. models are currently designed to be run on powerful graphics cards. Specifically, the more video memory (VRAM) you have, the larger and more sophisticated models ou’ll be able to run. Many A.I. models <em>can</em> technically run on your CPU, but it’s slooooooow and your mileage may vary.</p><p>Personally, I have a Windows machine with an RTX 3080 graphics card, which has 10 GB of VRAM. This is on the low side, and while I can run medium-sized models at a slower speed, I can’t run the largest and most sophisticated models.</p><p>I also use a MacBook Pro M1 with 64GB of unified memory. Because the MBP’s unified memory is shared between CPU and GPU, I’ve found that I can in fact run much larger models.</p><h3>What LLMs can I run locally?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vd3oqLR_OwaCoNfG-E-Xwg.png" /></figure><p><strong>Let’s take a second and explore models. </strong>Just like <a href="https://roblaughter.medium.com/a-crash-course-on-local-image-generation-with-stable-diffusion-f72dfd3de3df">A.I. image models</a> or hosted LLMs, there are a gazillion options to choose from, each with their own strengths and weaknesses, and it may be overwhelming to parse through them. Let’s simplify.</p><p>You’ll often see models listed in a format something like this: <em>llama2:7b </em>or <em>mixtral:8x22b.</em></p><p>The first part of that string is the model’s name. There are lots of variats, but some of the most common open weight LLMs at the time of this writing include:</p><ul><li>llama2 (from Meta)</li><li>gemma (from Google)</li><li>mistral (from Mistral)</li><li>mixtral (a “mixture of experts” model from Mistral)</li><li>WizardLM (from Meta)</li><li>command-r (from Cohere)</li><li>phi (a lightweight model from Microsoft)</li></ul><p>The second part of the string (e.g. <em>7b</em> or <em>8x7b</em>) represents the size of the model, represented as the number of billions (b) of <em>parameters</em> that the model contains. Generally speaking, large models with more parameters will be more sophisticated in terms of knowledge and accuracy, at the trade off of requiring much more storage space and more VRAM to run.</p><p>Common model sizes and their VRAM requirements include:</p><ul><li>7b models (at least 8GB of RAM)</li><li>13b models (at least 16GB of RAM)</li><li>30b models (at least 32GB of RAM)</li><li>70b models (at least 64GB of RAM)</li></ul><p>Personally, I have found <a href="https://txt.cohere.com/command-r/"><strong>Cohere’s Command R</strong></a><strong> model </strong>to be the most interesting model I’ve used recently. It was just recently released and performs very, very well—outperforming many much larger open models, and on par with or better than some proprietary models such as GPT-3.5 Turbo.</p><p>Another favorite is <a href="https://llava-vl.github.io/"><strong>LLaVa</strong></a><strong>,</strong> a vision-equipped language model that can interact with images. This is a really cool LLM to integrate into image generation workflows to write image prompts based on an input image, or to caption datasets for training.</p><p>Other capable models that I’ve used include:</p><ul><li><a href="https://huggingface.co/mistralai/Mixtral-8x7B-v0.1"><strong>Mixtral 8x7b</strong></a><strong>,</strong> a mixture of several smaller models that work together for “big model” results with much lower VRAM requirements.</li><li><a href="https://ollama.com/library/wizardlm2"><strong>WizardLM 2</strong></a><strong>,</strong> a brand new model, briefly released by Microsoft before being taken down—but still accessible from sources that downloaded it before it was removed.</li><li><a href="https://huggingface.co/cognitivecomputations/Wizard-Vicuna-30B-Uncensored"><strong>Wizard Vicuna</strong></a><strong>,</strong> an “uncensored” model that can be used for good or for evil. Do the right thing.</li><li><a href="https://huggingface.co/meta-llama"><strong>Llama 2</strong></a><strong>,</strong> Meta’s classic open LLM. I can run the 70b variant on my 64GB M1 MacBook Pro. As of the time of this writing, its successor, Llama 3, is <a href="https://techcrunch.com/2024/04/09/meta-confirms-that-its-llama-3-open-source-llm-is-coming-in-the-next-month/">expected to be released in May 2024</a>.</li></ul><p>If you have the hardware to run them (I don’t), there are some very good, very large models on the horizon. These include WizardLM 2 8x22b and Mixtral 8x22b, both massive models that are expected to perform extremely well.</p><h3>What software do I need to run LLMs on my computer?</h3><p>Just like in the world of models, there are plenty of options that you can use to run local models. I’m going to direct your attention to a few of them that I have used with success.</p><p>Again, each of these will come with pros and cons, and a big part of which one you choose will depend on your use cases and personal preferences.</p><h4>LM Studio</h4><p>LM Studio is a popular and easy-to-use suite for downloading and running local LLMs. It includes a built-in model downloader so you can easily browse and download models, with each model being listed with its compatibility for your hardware.</p><p>LM Studio also includes an OpenAI compatible server for communicating with your LLMs through external apps, and a playground to compare multiple models alongside one another.</p><p>One downside to LM Studio is that it sometimes takes some work to configure the models to run properly, and that could take some technical knowledge.</p><p><a href="https://lmstudio.ai/">LM Studio Bionic - Your Agent for Work and Code</a></p><h4>Ollama</h4><p>This is my preferred application for running LLMs on my Mac, but also has a preview version available for Windows.</p><p>The reason I like Ollama is that, like LM Studio, it works as an API that other applications can connect to, but without the overhead of running a front end application. So I can leave Ollama running on one machine and connect to it through a client on any of my others, including my phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfOI2p9OHKlomFUdJdoZBw.png" /><figcaption>Enchanted for MacOS</figcaption></figure><p>Ollama’s Github page has a long list of <a href="https://github.com/ollama/ollama?tab=readme-ov-file#web--desktop">clients and integrations</a>. I’ve used <a href="https://github.com/AugustDev/enchanted">Enchanted</a> (a no-frills Mac/iOS native client) and <a href="https://useanything.com/download">Anything LLM</a> (which can also interact with your documents natively). Mac users may also be interested in <a href="https://mindmac.app/#pricing">MindMac</a>, which integrates LLM features in other applications as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5sA4vCjeiOlh6HaAN6pTA.png" /><figcaption>Running Ollama from the command line</figcaption></figure><p>Ollama also has its own <a href="https://ollama.com/library">model library</a> with pre-configured templates for many models. It doesn’t always have the latest and greatest (though you can always import them manually) and pulling models is done through the command line, which can be intimidating for some users.</p><p><a href="https://ollama.ai/">Ollama</a></p><h4>Other options for running local LLMs</h4><p>There is no shortage of options when it comes to running local LLMs, and there’s a good chance if you can dream of a feature, it’s out there somewhere.</p><p>If the options above don’t strike your fancy, you may want to check out <a href="https://github.com/oobabooga/text-generation-webui">Text Generation WebUI</a>. This is the LLM equivalent of the Stable Diffusion WebUI for image generation. It’s meant to be a flexible and extensible front end for running language models. It takes a bit more setup than the options above, but gives you more flexibility.</p><h3>Advanced use cases for local LLMs.</h3><p>Once you dip your toes into the waters of local LLMs, there are tons of interesting applications for the technology. Here are a few ways that you may consider putting your LLM to work for you.</p><ul><li>Try <a href="https://python.langchain.com/docs/get_started/introduction/">LangChain</a>. LangChain is a framework for developing applications powered by LLMs. It connects models and features (such as interacting with documents, text to speech, creating embeddings, and custom functions) to help develop sophisticated workflows beyond the simple chatbot.</li><li>Create API workflows. I’ve created simple Python applications to use Ollama’s chat API with LLaVa vision models to caption image datasets, process audio with Whisper and create summaries of meetings and workshops, and more.</li><li><a href="https://www.datacamp.com/tutorial/fine-tuning-large-language-models">Create a model fine-tuned</a> on your data. Because many models have open weights and generous licenses, you can create your own fine tuned version of a model based on your data. This could mean training the model to answer questions about your organization, writing in your style, or accomplishing a specific task.</li></ul><h3>Where will you start?</h3><p>The most important thing to do is to <em>start. </em>If running a local LLM isn’t your thing right now, stick to hosted models. If you want to dabble, pick one model and one application to run it, and give it a try.</p><p>If you want to engage with how to use LLMs for work, creativity, and personal growth, check out my A.I. learning community, <a href="https://roblaughter.com/collaborative">the A.I. Collaborative</a> or <a href="https://roblaughter.com/collaborative/discord">join us on Discord</a>. The Collaborative is a community of like minded A.I. practitioners, with optional access to resources, workshops, and support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf42565cbe31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A First Timer’s Guide to Cooking Up a Fine Tuned SDXL Model]]></title>
            <link>https://roblaughter.medium.com/a-first-timers-guide-to-cooking-up-a-fine-tuned-sdxl-model-446652d018f4?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/446652d018f4</guid>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[ai-art]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Thu, 04 Apr 2024 18:58:45 GMT</pubDate>
            <atom:updated>2024-04-04T18:58:45.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLgxMAIl4pfko7dHCd4S_A.png" /><figcaption>Let’s cook up a personalized Stable Diffusion model. Image generated with the mix I created in this article, RobMix Evolution.</figcaption></figure><p><em>This post is brought to you by the </em><a href="https://roblaughter.com/collaborative"><em>A.I. Collaborative</em></a><em>.</em></p><p><a href="https://roblaughter.medium.com/a-crash-course-on-local-image-generation-with-stable-diffusion-f72dfd3de3df">Stable Diffusion</a> is one of my favorite models for generating images with A.I. because of the flexibility that it offers in creating images that I’ve envisioned. A.I. images get a lot of criticism for being “created by a robot,” or not requiring artistic talent, but I find that using the suite of tools out there to craft an image and execute on a creative vision is an art form of its own.</p><p>Part of the fun is in experimenting with different checkpoints and LoRA models that the community has created and shared on sites like <a href="https://civitai.com/">Civitai</a>. I’m ashamed to admit that I currently have more than 400 GB of SDXL checkpoints on my hard drive, and that’s clearly not enough, because I’ve recently found myself interested in fine tuning my own checkpoint.</p><p>I didn’t <em>really</em> know where to start or what I was doing (in fact, I still don’t), so in this post, I’m going to lay out a “blind leading the blind” approach to how I fine tuned my first couple of checkpoints so maybe you can, too. I’m sure this isn’t the <em>best</em> way to do it, and I’m sure that I may get some technical details wrong, so keep that in mind as you go.</p><h4>Model Merging: More of an art than a science</h4><p>You have a couple of options for creating a fine tuned version of a Stable Diffusion model. The first way — the hard way — is to <em>train</em> a checkpoint with new image data. This gives you control over the inputs and lets you introduce new concepts to the model, but I wasn’t ready for that.</p><p>I opted for the <em>model merge. </em>This approach blends one or more existing checkpoints into a base model, altering the weights of the model and combining properties from each. It can’t introduce new concepts or fine tune the behaviour of specific weights in the model, but it can blend existing qualities — such as style, tone, subject matter, etc. — into a new checkpoint.</p><p>Think of it like a crossover between baking a cake from scratch without a recipe and the “which is better, one or two?” game from the optometrist.</p><p>In this case, I was fine tuning with a <em>model merge, </em>which involves blending two or more models into your base model to combine different properties of each. (One could also add new data to a model by giving it further training with a new dataset. I didn’t.)</p><h4>Step one: choosing model candidates</h4><p>Your model merge project starts with a base model — in this case, I wanted to more deliberately refine <a href="https://civitai.com/models/334323/robs-mix-ultimate">RobMix Ultimate</a>, a Stable Diffusion XL checkpoint that I created a couple of weeks ago in a sort of “happy accident” as I was first playing around with model merging.</p><p>As the name suggests, <em>model merging</em> involves merging one model into another, and to do so, you need to choose which models to blend. In my case, I had some specific objectives that I wanted to accomplish with this merge. I wanted to:</p><ol><li>Improve the overall tone and contrast</li><li>Add detail</li><li>Improve prompt following and coherence</li><li>Make images of people feel more candid and natural and less posed</li></ol><p>I selected models that had elements of these specific qualities. I’ve been collecting checkpoints forever, so I had a good selection to choose from, but you can always browse <a href="https://civitai.com/models">Civitai</a> to find models that fit your style.</p><p>Model choice matters. If you’re going for a photographic style, mixing an anime model may not be the best choice, but there may be elements of that model that you can merge in to produce the result you’re envisioning. It all comes down to experimentation.</p><h4>Step two: narrowing down the selection</h4><p>As I’m writing this, we’re in the middle of March Madness and, while I may not know the first thing about basketball, I still filled out a bracket.</p><p>In much the same way, I started with a selection of 17 initial candidates from my library and narrowed down my selection by pitting model against model. I ranked my preference, “seeded” my bracket, and generated an initial set of images with each model. I kept all of the settings the same — prompt, CFG, samples, sampler, etc. — and only changed the model so I would have an apples-to-apples comparison of what images produced by each model looked like.</p><p>From there, I chose my preferred model for each matchup. I was looking for which model best accomplished the specific goals that I had for my merge. Then I moved to the next round, changed the settings and subject matter, and continued on until I was left with my Final Four.</p><h4>Step three: understand the model</h4><p>As I began tinkering, I wanted to get an idea for how the model worked before I started adjusting dials all willy-nilly without any real idea of what they were doing.</p><p>A Stable Diffusion checkpoint consists of two parts — the <em>model</em> and the <em>text encoder. </em>The model (or Unet) guides the image generation process, while the text encoder affects the way your prompt is understood by the model. It’s undoubtedly more complicated than that, but that’s the gist. Both have a big impact on the final image.</p><p>I noticed a <em>ModelMergeBlocks</em> node in ComfyUI and did some digging, which led me to <a href="https://rentry.org/BlockMergeExplained">this in-depth explanation</a> of what block merging was and how it worked. It’s super technical, but the illustrations are helpful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AeTeRCdXUSDeaiQbvcyGkw.png" /><figcaption>Explanations of block merging from <a href="https://rentry.org/BlockMergeExplained">this article</a>.</figcaption></figure><p>These illustrations, specifically, really drove the concept home for me. They show how a model contains many layers with varying levels of detail. Those layers are collected into blocks, and sorted into <em>input, middle, and output</em> blocks. As we’ll explore in a moment, each of these different areas has a unique impact on the final image.</p><p>A classic model merge is a crude blend of two models with a simple ratio. In a block merge, you can blend different layers from each model at different ratios to <em>really</em> fine tune the result.</p><p>This left me with a question — <em>what</em> exactly is each layer of the model actually doing? I needed to test to see which layers affected which parts of the image — overall structure and composition vs. fine details, subject vs. background, etc.</p><p>If that seems like a lot to you, don’t worry. You can get started with a classic merge using the concepts I’ll outline below. Let’s look at how to actually put this into practice.</p><h4>Step four: build the test kitchen</h4><p>Before I could start experimenting with different recipes, I had to build the test kitchen — the environment where I would experiment and iterate on my merges.</p><p>I chose <a href="https://github.com/comfyanonymous/ComfyUI">ComfyUI</a> for the task because it offers the most flexibility for creating a workflow to accomplish the task at hand. It’s not the <em>easiest </em>tool, especially if you’ve never used a node-based interface, but once you get used to how things work, you’ll never go back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m-OpitrZHt2n6szZJHMwRw.png" /></figure><p>ComfyUI offers a several nodes for merging models, each with varying levels of control.</p><ol><li>ModelMergeSimple. It does what it says — it’s a simple merge between two models, with a simple ratio for mixing the weights. This is what I started with.</li><li>ModelMergeBlocks. This gives you some more control over how different parts of the model — the input, middle, and output blocks — are blended together.</li><li>ModelMergeBlockNumber. Even more fine control over your merge, letting you adjust the merge layer-by-layer.</li></ol><p>There are a few others that get even more complex, up to the ModelMergeSDXLDetailedTransformers node that gives you <em>hundreds</em> of parameters to fine tune. Unless you’re a mad scientist, you probably don’t need this one. I stuck with the ModelMergeBlocks node. You can stick with the simple merge if you want a simple start.</p><p>As we discussed above, checkpoints also include a text encoder, which instructs the model how to interpret your prompt. At a lay level, one checkpoint could associate “a cute puppy dog” with a cocker spaniel, while another could associate it with a golden retriever. That’s way oversimplified, but it gets the point across that the text encoder matters.</p><p>ComfyUI happens to have a ClipMerge node to blend between text encoders. I found that I usually got the best results by using one model’s text encoder, but there were some instances where I would blend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1-YSkgw-4RuLK_WwhoMyg.png" /></figure><p>In my final workflow, I set up a merge between three models. The first merge blends my base model with a second model, then the result is merged again with the third. I used the <em>ModelMergeBlocks</em> node to give myself some room for experimentation without getting too complicated.</p><p>I also added some LoRA loaders to optionally add some LoRA models to the mix before saving the checkpoint. I didn’t use them here, but I used them to tweak my initial base model.</p><h4>Step five: lay out the ingredients</h4><p>Because we’re playing jazz rather than a rehearsed classical piece, we need to figure out what ingredients we’re cooking with (I know, I’m mixing metaphors).</p><p>What I mean is that we need to understand what each model looks like, what qualities they have, and with our understanding of how blocks work generally, how different <em>blocks</em> within the model affect the image.</p><p>Because I could adjust how much of each model — both Unet and text encoder — is mixed in, I created some crude comparisons in which I mixed 100% of Model A into Model B at a specific block — input, middle, or output — to see how it affected the base image.</p><p>For example, I would merge Model A input, Model B middle, Model B output, all at 100%. I repeated this for all of the possible permutations (there were eight combinations per pair of models), and then compared the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*pERlWu673MSNX8GB_iRqUQ.png" /><figcaption>I compiled all of my outputs into a canvas in <a href="https://www.pureref.com/">PureRef</a> to arrange and compare results.</figcaption></figure><p>As I looked at the comparisons, I realized that the middle layers had an almost imperceptible effect on the finest details — useful for getting into the nitty gritty of the fine tune, but not so much for making big changes — while the outer layers had the biggest impact on the image. <em>Input</em> layers had a big impact on the overall structure of the image, while <em>output</em> layers played a significant role in defining the overall tone, the subject, pose, etc.</p><p>I discovered that the text encoder also played a big role in the final image, everything from the style and tone to the subject’s appearance and composition.</p><h4>Step six: mix up the first batch</h4><p>Let’s recap where we are in the process.</p><ul><li>I have a base model — my initial simple merge — that I wanted to refine.</li><li>I had a goal — improve contrast and tone, prompt adherence, and make people feel less posed.</li><li>I had some candidate models to merge in with sample images from each.</li><li>I had an how each <em>layer</em> within the model affected the final image.</li></ul><p>Armed with this info, I could start experimenting with different ratios of those ingredients to get the result that best matched my creative vision.</p><p>A good chef knows <em>generally</em> that some ingredients don’t mix — think chocolate and anchovies — but also knows that some unlikely ingredients pair well together — like strawberries, ice cream, and balsamic vinegar.</p><p>In the same way, I had no way of knowing for sure how different models would blend with my base model, but I had a pretty good idea of what ingredients to combine, with the expectation that I might find some unlikely pairs. Just to be sure I didn’t end up with any chocolate-and-anchovy disasters, I did a quick simple 50/50 merge of each model with my base.</p><p>As I started mixing, my reasoning went something like this:</p><ul><li>For <em>composition,</em> I would experiment with input blocks and text encoder.</li><li>For <em>style and tone,</em> I would experiment with output blocks.</li><li>For <em>pose and subject,</em> I would experiment with text encoder and output blocks.</li><li>For <em>background details,</em> I would experiment with output blocks.</li><li>I would <em>ignore</em> the middle block for now and leave it at 100% base model.</li></ul><p>I could probably get way more granular here and really dial in the details by going layer by layer, but I wasn’t ready for that yet.</p><p>I started with the text encoder, as it’s the first step in the chain, and ran several comparisons to see what balance got me closest to my desired look. I made an X/Y plot of each model’s text encoder merged into the result at 0/25/50/75/100% ratios and narrowed it down to the few that I preferred, noting the values in my PureRef canvas so I could keep track.</p><p>(As a side note, one handy feature of ComfyUI is that you can drag an image into the canvas to restore the workflow that it was created with. This is really handy if you forget things like prompts, etc.)</p><p>With my text encoder candidates, I did the same thing with the models for each of my checkpoints. I ran a few dozen generations tweaking the balance of each model in the same ratios as my text encoder at the input and output stage to “rough out” the overall mix.</p><p>After all of that, I landed on the best model for the first merge into my base. I ran a few more tests, more subtly tweaking each value in the input block, output block, and text encoder to get what I thought most closely aligned with my vision.</p><p>With that locked in, I added a third model to the mix, introducing it more subtly and deliberately to refine the result. I ended up using Model C’s text encoder and output block more heavily because it created the best candid images and fine detail — things my base model was lacking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKLnZg23CcEcM2HN-b2rOg.png" /></figure><p>At the end of the process, I merged Model B into Model A at 20% in the input block and 25% in the text encoder, then merged Model C into the result at 20% in the input, 40% in the output, and 70% in the text encoder.</p><p>When <em>all was said and done,</em> I added a CheckpointSave node and saved the resulting merged model.</p><h4>Step seven: test and tweak</h4><p>Throughout this process, I had been testing the models with a narrow range of prompts — mostly photographic scenes with a single subject. But my base model was a really great, versatile model, and I wanted to make sure I hadn’t inadvertently over-emphasized portraits in the merge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NS4EHz69qNEfuo_Zl8w2Vw.png" /><figcaption>To quickly compare models, I set up a workflow to generate and upscale images with each of my three model candidates so I could see differences at a glance.</figcaption></figure><p>I also only used a couple of resolutions in the merge (3:4 portrait and 16:9 widescreen), so I wanted to test the model to make sure it would do well across more extreme resolutions without running into issues like doubling up the subject or creating incoherent scenes.</p><p>When I tested my initial merge, I created a <em>ton</em> of images with the most random subjects I could think of, including running some prompts from Midjourney’s explore page that matched the kinds of images I hoped my model would be good at. I also tried a wide range of aspect ratios, from 21:9 to 9:21.</p><p>Some of the subject/style points that I wanted to hit included:</p><ul><li>Macro/still life photography</li><li>Nature photography</li><li>Complex subject/style combinations (e.g. “claymation Dolly Parton”)</li><li>Images with text</li><li>Camera angles/focal lengths</li><li>Known figures (e.g. “Abraham Lincoln”) vs. generic subjects (e.g. “a scuba diver”)</li></ul><p>I dumped these into my PureRef board to compare my base model to two contenders for the final merge — Merge A and Merge B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8J_8OXvCBgtduaMkt6N9w.png" /></figure><p>The final decision came down to the same qualities I set out to improve: subject, tone and contrast, detail, and coherence.</p><p>As you can see above, some of the details were <em>really</em> subtle. But if you look closely at things like the snorkel and the squares on the chess board above, you’ll see how Evolution B won out over my base model (Ultimate) and the other merge candidate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*-uj9xsJKC7G-NjHnAa2NuQ.png" /><figcaption>The prompt for this image mentioned <em>jumping in the air and pyrotechnics. Evolution A didn’t include the pyrotechnics, and I thought Evolution B was a more expressive pose.</em></figcaption></figure><p>A lot of this comes down to preference, too. It’s my merge, and I’m the one that is going to use it most, so I can make it look however I want to.</p><h4>Final Tips</h4><p>As I went through this process, I learned a lot about how merges work and noted some tips that would help next time.</p><ol><li>Consistency matters. Be sure to lock in <em>every</em> variable except for the <em>one </em>that you’re testing for. Seed, CFG, prompt, etc. Don’t be tempted to adjust a prompt to suit a model. You want to see how they compare.</li><li>Think systematically. Don’t just charge in and adjust things randomly (unless that’s how you roll).</li><li>Curate your images. Using PureRef was clutch for this process because I could copy and paste generated images straight into a canvas where I could organize and arrange them.</li><li>Document everything. You won’t remember every detail of every setting of every image you create.</li><li>Be patient. Creating a good merge takes a while. Enjoy the process.</li></ol><h4>Conclusion: go forth and experiment</h4><p>All in, this project probably took me about ten hours from start to finish. I generated <em>a ton</em> of images (I didn’t save them, so I can’t give you a total count, but it was probably close to a thousand).</p><p>Even if you never do anything with this, it should help you become a more deliberate creator when it comes to A.I. imagery, and it should give you a sense of appreciation for the hard work that goes into creating the great models that you get to use.</p><p>If you want to learn more about A.I. image generation, and you’d like to hone your skills in a community of like-minded peers, <strong>check out my </strong><a href="https://roblaughter.com/collaborative"><strong>A.I. Collaborative</strong></a><strong> and </strong><a href="https://roblaughter.com/collaborative/discord"><strong>join me on Discord</strong></a><strong>.</strong></p><p>The A.I. Collaborative is a free community with some incredible paid resources and support — a space that I created to share what I’ve learned about generative A.I. through thousands of hours of experimentation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=446652d018f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Crash Course on Local Image Generation with Stable Diffusion]]></title>
            <link>https://roblaughter.medium.com/a-crash-course-on-local-image-generation-with-stable-diffusion-f72dfd3de3df?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/f72dfd3de3df</guid>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[image-generation]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 19:58:57 GMT</pubDate>
            <atom:updated>2024-03-04T21:50:02.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LfyIRu17d8ABVNcUjBZZA.png" /></figure><p><em>This post is brought to you by the </em><a href="https://roblaughter.com/collaborative"><em>A.I. Collaborative</em></a><em>.</em></p><p>In my last post, <a href="https://roblaughter.medium.com/an-overview-of-a-i-image-generators-january-2024-a33db88e8513">An Overview of A.I. Image Generators</a>, I covered a few of my favorite online image generation services.</p><p>As I mention in the post, however, my absolute, number one favorite image generator is one that can’t be purchased. You can’t access it online. There are no subscriptions to buy. It runs locally, on your own machine. No internet access, no subscription required.</p><p>That’s <strong>Stable Diffusion.</strong></p><p>Stable Diffusion is a family of image models from <a href="https://stability.ai/">Stability</a> that is free to use non-commercially. It is designed to be easy to fine tune the model with unique styles and concepts, and there are some really cool extensions that can create incredible images. Backing all of it is a vibrant and active community dedicated both the model and the software used to generate images with it, with new features coming almost every day.</p><p>As of the time of this writing, SDXL is the reigning king of open source image models — though that will almost certainly be upset in weeks, if not days. Older versions include SD 1.5 (which is still popular) and SD 2.1 (which never quite caught on). Upcoming models include <a href="https://stability.ai/news/stable-diffusion-3">Stable Diffusion 3 </a>and <a href="https://stability.ai/news/introducing-stable-cascade">Stable Cascade</a>.</p><p>You need two things to get started generating images with Stable Diffusion: a Web UI and a checkpoint.</p><h3>Step One: Download and Install a Web UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NubQ4mRz3hQw6Hfdk0Ggw.png" /><figcaption>“an eagle in flight taking a selfie, fisheye lens” — <a href="https://civitai.com/models/334323/robs-mix-ultimate">Rob’s Mix Ultimate</a></figcaption></figure><p>A <em>web UI</em> is a front end interface that lets you generate images with Stable Diffusion and other models in your web browser. Basically, a web UI handles all of the back end wizardry, letting you focus on creating cool images.</p><p>There are several web UI options to choose from, and each has its strenghts and weaknesses. I’ll briefly list a few below in order of easiest to use to most powerful, with their pros and cons.</p><p><strong>Fooocus </strong>(<a href="https://github.com/lllyasviel/Fooocus">link</a>)<br><strong>Pros:</strong> Generally regarded as the easiest to use. Enhances prompts similar to Midjourney and DALL-E 3. <br><strong>Cons:</strong> Fewer features than other web UIs.</p><p><strong>InvokeAI</strong> (<a href="https://github.com/invoke-ai/InvokeAI">link</a>)<br><strong>Pros: </strong>Easy for beginners to use, but with advanced features for power users<br><strong>Cons: </strong>Slower to get new features</p><p><strong>Stable Diffusion WebUI</strong> (<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">link</a>)<br><strong>Pros:</strong> The O.G. SD WebUI. Lots of extensions, pretty stable. <br><strong>Cons: </strong>Takes a bit more work to set up, and options can be overwhelming for a first time user.</p><p><strong>SD.Next </strong>(<a href="https://github.com/vladmandic/automatic">link</a>)<br>A fork of the original A1111 web UI. <br><strong>Pros: </strong>Tends to get more cutting edge features faster. Similar interface to A1111.<br><strong>Cons: </strong>More advanced setup and usage.</p><p><strong>ComfyUI</strong> (<a href="https://github.com/comfyanonymous/ComfyUI">link</a>)<br><strong>Pros: </strong>The most flexible and extensible web UI, designed to build custom node-based workflows. <br><strong>Cons: </strong>Crazy overwhelming if you’ve never used something like it before.</p><p><strong>StableSwarm UI</strong> (<a href="https://github.com/Stability-AI/StableSwarmUI">link</a>)<br>My current favorite web UI. Uses ComfyUI as a backend, but with a streamlined front end interface.<br><strong>Pros:</strong> Extensibility of ComfyUI with the ease of use of A1111. Can link multiple computers together to generate faster. <br><strong>Cons:</strong> Also somewhat tricky to set up. UI is still clunky while it’s in alpha.</p><p>Each one will require a bit of technical know-how to set up, but generally speaking, their installation processes are well-documented on their Github pages.</p><h4><strong>Before you get started…</strong></h4><p>Stable Diffusion models can run on a wide range of consumer hardware, but the speed and quality of your generations will vary based on your system specifications. Larger models — such as SDXL models — require more resources, specifically your GPU’s VRAM. If you don’t have a dedicated GPU or you don’t have sufficient VRAM, they <em>can</em> run on your CPU, but images will generate very slowly.</p><p>The <em>minimum</em> amount of VRAM I’d recommend for running SDXL models is 6 GB, preferably 10 GB. I have an RTX 3080 in my desktop, and it is sufficient for most things.</p><p>And while most image generation options run best on Windows machines with NVIDIA GPUs, they can run on Macs. My MacBook Pro M1 with 64GB of unified memory can run most models fine, albeit more slowly than on my GPU.</p><p>If you have a “potato” computer that just can’t run A.I. models, you can rent GPU time with a number of cloud services such as <a href="https://www.runpod.io/">Runpod</a>, or you can run models in the cloud with services such as <a href="https://replicate.com/">Replicate</a>.</p><h3>Step Two: Find some Checkpoints</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lGtJTl4CNrma6C-q" /><figcaption>“A serene landscape photograph of a tranquil lake reflecting the rugged peaks of the Rockies, surrounded by dense pine forests. Early morning, with mist rising off the water, natural light, wide angle shot, shot on Canon EOS R5 with a 24mm f/11 lens” — <a href="https://civitai.com/models/334323/robs-mix-ultimate">Rob’s Mix Ultimate</a></figcaption></figure><p>The SDXL 1.0 base model is generally automatically downloaded by your web UI so you can get started right away, but some of the real fun lies in experimenting with user-created checkpoints.</p><p>Checkpoints are fine tuned variants of the SDXL base model. Anyone can fine tune a model by curating a data set of images and running a training script, but most users will download checkpoints trained by the Stable Diffusion Community.</p><p>The most common place to download community checkpoints is <a href="https://civitai.com/">CivitAI</a>. Just keep in mind that Civitai doesn’t censor user models or images that users post to the site, so be sure to set your filters to weed out prurient content.</p><p>Checkpoints generally fall in one of two categories: photorealistic or animated/illustrated. There are thousands to choose from, but by sorting the list by all time downloads, you can see which ones the community finds most popular and start there.</p><p>I’m kind of proud of my own checkpoint, Rob’s Mix Ultimate, which I used for all of the images on this page. Check it out <a href="https://civitai.com/models/334323/robs-mix-ultimate">here</a>.</p><p>A couple of all-time heavy hitters include:</p><ul><li><a href="https://civitai.com/models/133005/juggernaut-xl">Juggernaut</a> (SDXL)</li><li><a href="https://civitai.com/models/112902/dreamshaper-xl">DreamShaper</a> (SDXL)</li><li><a href="https://civitai.com/models/139562/realvisxl-v40">RealVisXL</a> (SDXL)</li><li><a href="https://civitai.com/models/15003/cyberrealistic">CyberRealistic</a> (SD 1.5)</li></ul><p>SDXL has a higher base resolution than SD 1.5 (1024x1024 vs. 512x512), but takes more system resources to generate. I strongly prefer SDXL, but there are great SD 1.5 models out there. Be sure to download a checkpoint for the base model of your choice.</p><p>Other variants to look into after you get your feet wet are SDXL Lightning models, which are tuned to generate images super fast but with lower quality, and Stable Cascade, which is a more complex but up and coming model. Playground 2.5 is a closed source (but free for non-commercial use) model that achieves great results, though tends to be more “opinionated.”</p><p><a href="https://stability.ai/news/stable-diffusion-3">Stable Diffusion 3</a> was recently announced. As of the time of this writing, it has not been released, but early previews look very, very promising.</p><p>Support for each model varies amongst web UIs, so be sure to check which models and architecture are supported by your UI of choice.</p><h3>Step Three: Generate!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YenOyL1DifQ1aSDs" /><figcaption>“A worship team leading praise on stage a contemporary megachurch, stage lights cutting through the haze. In the foreground, silhouetted hands are raised. Shot with an ultrawide fisheye lens” — <a href="https://civitai.com/models/334323/robs-mix-ultimate">Rob’s Mix Ultimate</a></figcaption></figure><p>Now that you have your UI installed and you’ve downloaded your first checkpoint, it’s time to warm up that GPU . Fire up your Web UI using the instructions from its Github page, load up a checkpoint, and start generating images!</p><p>Part of the fun of generating images locally is finding settings and workflows that help you dial the images in to achieve your creative vision. If you’re just wanting to crank out images, use Midjourney. If you’re wanting to refine your skills, Stable Diffusion is the way to go.</p><p>As you’re generating images, start with the base settings, but you’ll also want to experiment with some of these basic parameters.</p><ul><li><strong>Resolution. </strong>Don’t get crazy with your resolution. The SDXL base resolution is 1024x1024. You can technically generate larger images, but the model was trained on specific image sizes and things can get a little crazy if you get too far outside of those bounds. The greater the resolution, the more resources and more time it will take to generate as well. You can see a list of “supported” SDXL resolutions <a href="https://replicate.com/guides/stable-diffusion/how-to-use/#:~:text=For%20SDXL%2C%20outputs%20are%20optimised,3%3A2%20(landscape)%3A%201152x768">here</a>.</li><li><strong>Samples. </strong>Samples are the number of steps that the model takes to generate the image. Generally speaking, more samples means higher quality, but you it a point of diminishing returns pretty quickly, and extremely high sample counts can have a negative impact. Most checkpoints work best around 30 to 40 samples. The more samples you choose, the longer the image will take to generate. I generally stick with 40.</li><li><strong>CFG. </strong>CFG stands for “classifier free guidance.” At the most basic level, CFG controls how closely the model will try to stick to your prompt. The higher the CFG, the more closely it will follow your prompt and the more detail the image will contain. If you set your CFG too high, however, you’ll notice that your images start to get a “burned” look, with extreme contrast and oversaturated colors. A good starting CFG is 7. I go as low as 4, and as high as 10.</li><li><strong>Sampler. </strong>You don’t <em>have</em> to change this, but it’s worth knowing what it does. The sampler is an algorithm that guides the image generation process. They do have an impact on the final image, so feel free to experiment. Popular samplers are Euler (the “O.G.” sampler) and DPM++ 3M SDE Karras (my fav).</li><li><strong>Second Pass, Refiner, or “Hi Res Fix.” </strong>As a solution to generating images at a higher resolution than the model was trained to produce, many image generation workflows include a second pass. In the second pass, the generated image is upscaled (typically 1.5x or 2x) and then generation continues. This process not only increases the resolution of the final image, but it also helps to refine the fine details in the result. Each web UI handles this a bit differently, so check the documentation for details on this process. (For what it’s worth, I <em>always</em> use a second pass with a 1.5x to 2x upscale. The difference is incredible.)</li></ul><h3>Step Four: Advanced Features</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UmgXI0YP48LMXsyE" /><figcaption>“A close up fisheye ultrawide cinematic slow shutter action shot of kid driving a power wheels car on a race track, motion blur, drifting around a corner with tires screeching, smoke, dark contrast, underexposed, dutch angle“—<a href="https://civitai.com/models/334323/robs-mix-ultimate">Rob’s Mix Ultimate</a></figcaption></figure><p>The fun doesn’t stop at simply generating an image from a text prompt. The real power and advantage to running image models locally comes with the advanced features that web UIs offer. Some of the workflows that you can build are absolutely mind-blowing.</p><p>I’m not going to get super deep here, but I want to draw your attention to a few features that you may find particularly interesting.</p><ul><li><strong>Image to Image. </strong>The Image to Image uses an input image as the starting point for your image generation. The model will first deconstruct (or “denoise”) the image, and then start building a new image from your prompt. Note that Image to Image doesn’t accept instructions like “give him a hat,” or “change the color of her shirt.” It’s a rather imprecise way to use an image as an input, but simple.</li><li><strong>LoRAs.</strong> LoRAs (Low Rank Adaptation models) are smaller, specialized models for fine-tuning your images. They can be used to create images with a specific style (e.g. <a href="https://civitai.com/models/303330/sketchit?modelVersionId=340557">sketches</a>, <a href="https://civitai.com/models/295530/zavys-dark-atmospheric-contrast-sdxl?modelVersionId=332071">contrasty photo</a>, <a href="https://civitai.com/models/295144/space-nebula-style-sdxl?modelVersionId=331641">space nebulas</a>, or <a href="https://civitai.com/models/331365/cardboard">cardboard</a>), a specific character (e.g. <a href="https://civitai.com/models/286664/mario-and-style-mario-franchise-sdxl">Super Mario</a> or <a href="https://civitai.com/models/313154/charizard-pokemon-lora-xl">Pokemon</a>), or a specific concept (e.g. <a href="https://civitai.com/models/212815/weird-fashion-show-outfits-sdxl-lora">an outfit</a> or <a href="https://civitai.com/models/169074/stardust-xl">vibe</a>). Check your web UI documentation for how to use LoRAs.</li><li><strong>ControlNets. </strong>ControlNets are models that can be used to guide the image generation process from an input image. Some examples include the OpenPose ControlNet (which detects a pose from a source image and generates a new image with a similar pose), the depth ControlNet (which creates a depth map from a source image and creates a new image to match), or the canny ControlNet (which creates an outline from a source image and matches the output to it). You can use multiple ControlNets together to craft the specific image you have in mind. Other ControlNets include Reference (which uses an input image as a style reference) and recolor (which is used to colorize greyscale images).</li><li><strong>IP-Adapters. </strong><a href="https://github.com/tencent-ailab/IP-Adapter">IP-Adapters</a> can be used to transfer a character, object, or style from a source image to the generated image, without the need to prompt for that thing. It’s particularly useful for creating consistent characters between generations. It’s more tricky to use than other tools, but super powerful.</li></ul><p>There are hundreds of tiny features that web UIs include to help you customize your images, and these only scratch the surface. If you decide to dive in, be warned: it’s highly addictive! I’ll often crank out a few hundred images in one session tweaking values and trying new things. The result, though, is that I can use the tool more effectively to execute on my creative vision.</p><h3>Wrapping Up</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SlZZrUjAyZqtHrnl" /><figcaption>”A national geographic photo of a chinese cormorant fisherman, a solitary lantern at the bow of his bamboo raft casting a warm glow on his nets, blue hour, in a karst landscape in yangshuo china, underexposed”—<a href="https://civitai.com/models/334323/robs-mix-ultimate">Rob’s Mix Ultimate</a></figcaption></figure><p>At the end of the day, running image models like Stable Diffusion locally takes more work than jumping into DALL-E or Midjourney, typing a prompt, and getting a great image. But if you’re serious about generating images with A.I. and working toward an artistic vision, there is no better set of tools available to achieve that goal.</p><p>If you want to learn more about A.I. image generation, and you’d like to hone your skills in a community of like-minded peers, <strong>check out my </strong><a href="https://roblaughter.com/collaborative"><strong>A.I. Collaborative</strong></a><strong>.</strong></p><p>The A.I. Collaborative is a free community with some incredible paid resources and support — a space that I created to share what I’ve learned about generative A.I. through thousands of hours of experimentation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f72dfd3de3df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Overview of A.I. Image Generators (January 2024)]]></title>
            <link>https://roblaughter.medium.com/an-overview-of-a-i-image-generators-january-2024-a33db88e8513?source=rss-5e3229595596------2</link>
            <guid isPermaLink="false">https://medium.com/p/a33db88e8513</guid>
            <category><![CDATA[midjourney]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[creative-process]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rob Laughter]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 21:38:01 GMT</pubDate>
            <atom:updated>2024-01-18T21:38:01.419Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past year, I’ve created well over 100,000 images with A.I. image models, jumping on new tools and models as they’ve been released to learn where they shine. I’ve learned <em>a lot</em> in that process, and it’s given me a solid understanding of how image models work, and how different models differ.</p><p>In this post, I’ll share some of the image generators I use most often, exploring how each tool fits into my creative workflow, and examining the strengths and weaknesses of each one.</p><p>We’ll cover:</p><ul><li>Midjourney.</li><li>DALL-E 3 (ChatGPT)</li><li>Leonardo.ai</li><li>Ideogram</li><li>Stable Diffusion</li><li>Honorable Mentions</li></ul><p>Like anything else in the world of generative A.I., all of this will change next week. A new foundation model could shake the image generation landscape. A startup could fold. Anything can happen. But as of January 2024, this should give readers a good starting point for exploring image generation.</p><h3>Midjourney: My “go-to” image generator</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eMOJrUMfp5n5WNVtSFgT8A.png" /><figcaption><strong>Prompt: </strong>a cute puppy dog (2x creative upscale)</figcaption></figure><p>Midjourney is one of the most advanced generative image pipelines in the wild today. As of this writing, Midjourney is developing V6 of their model.</p><p><strong>Bottom Line: </strong>Midjourney is my go-to image generator. In my opinion, it consistently produces the best quality images with the most appealing aesthetic. It’s not perfect, but it’s typically where I start.</p><h4>Midjourney Quick Stats</h4><ul><li><strong>Current Version:</strong> V6 alpha</li><li><strong>Model: </strong>Proprietary</li><li><strong>Access: </strong><a href="https://discord.com/channels/662267976984297473/952771221915840552">Discord</a>, <a href="https://midjourney.com/">Web</a> (coming soon), API (unofficial)</li><li><a href="https://docs.midjourney.com/docs/plans"><strong>Pricing</strong></a><strong>: </strong>Starting at $10/month</li><li><a href="https://docs.midjourney.com/docs/terms-of-service#4-content-rights"><strong>License</strong></a><strong>:</strong> Full ownership, commercial use with paid plans</li></ul><h4>Midjourney Features</h4><p>Midjourney lets users generate images from text prompts, upscale images up to 2048x2048, expand images by panning left/right or up/down, vary image by region, generate images from image prompts, remix images, and create fine tuned styles with their style tuner.</p><p>For help with prompting, the /describe feature can help create prompts from an uploaded image, and the /shorten command can remove unnecessary words from long prompts.</p><p>On the web, users can view and categorize their own creations, as well as browsing other users’ image generations. Midjourney is currently working on enhancements to their web interface, including the ability to generate images from their website.</p><p>A full list of features can be found in Midjourney’s <a href="https://docs.midjourney.com/docs/quick-start">Quick Start guide</a>.</p><h4>Midjourney’s Strengths</h4><p>Of all of the image generators available today, I think that Midjourney has the best level of detail, the widest range of artistic and aesthetic styles, and the best quality for images with a photographic style. Midjourney V6 has exceptional prompt understanding and coherence.</p><h4>Midjourney’s Weaknesses</h4><p>Midjourney is currently only available via Discord. Using Midjourney on their Discord server can be chaotic, so I highly recommend that users generate images by sending a direct message to the Midjourney Bot, or inviting the bot to their own server.</p><p>That said, as of this writing, Midjourney has made web-based image generation available to users who have generated 10,000 or more images with the service, and they have shared that they’ll be rolling it out to even more users soon. By the time you read this, this point may be moot.</p><p>Another weakness of Midjourney is that by default, your images are public. That means that anyone can see the images you create — and copy your prompts. Users on higher subscription tiers can make their images private with stealth mode.</p><h3>DALL-E: Conversational image generation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaCokrml1FiL0EaEy7BeWA.png" /><figcaption><strong>Prompt: </strong>Create an image of a cute puppy dog, cinematic style, wide format. Rewritten with my Photographic Images custom GPT to “cinematic digital photograph of a cute puppy dog, sitting on a soft, plush blanket, with warm, soft-focus lighting, wide angle, shot on Canon EOS 5D Mark IV with a 24mm f/2.8 lens.”</figcaption></figure><p>OpenAI’s DALL-E 2 was one of the first image models to bring A.I. image generation into the mainstream cultural milieu. For many users, it was the first experience they had with generating an image from a simple text prompt. At the time, it was as Arthur C. Clarke wrote in his 1962 book, <em>Profiles of the Future: An Inquiry into the Limits of the Possible, </em>“indistinguishable from magic.”</p><p>DALL-E 2 was quickly leapfrogged by more advanced image models, but in October 2023, OpenAI released DALL-E 3, which made significant advances on image quality, resolution, and coherence. To make image generation accessible to the masses, OpenAI integrated DALL-E 3 directly into ChatGPT, eliminating the hocus pocus of writing image prompts by using GPT-4 to craft prompts based on the user’s request.</p><p><strong>Bottom Line: </strong>Because DALL-E 3 is built into ChatGPT and eliminates the hassle of crafting detailed prompts, I tend to go to ChatGPT when I want to quickly explore new ideas and brainstorm in a back-and-forth conversation.</p><h4>DALL-E Quick Stats</h4><ul><li>Current Version: DALL-E 3</li><li>Model: Proprietary</li><li>Access: <a href="https://chat.openai.com/">ChatGPT</a> (Web/App), <a href="https://copilot.microsoft.com/images/create">Microsoft Bing/Copilot</a>, <a href="https://platform.openai.com/docs/guides/images?context=node">API</a></li><li>Pricing: $20/month (ChatGPT Plus), free with Bing</li><li><a href="https://openai.com/policies/terms-of-use">License</a>: Full ownership, commercial use</li></ul><h4>DALL-E Features</h4><p>DALL-E doesn’t have a lot of bells and whistles, but that’s part of the appeal. Rather than giving users a full suite of advanced features, DALL-E simplifies image generation to the absolute essentials.</p><p>Users can ask ChatGPT to generate an image, and ChatGPT will write an image prompt to generate it with DALL-E 3. Beyond asking for images in square, tall, or wide formats, there isn’t much opportunity for customization.</p><h4>DALL-E’s Strengths</h4><p>DALL-E’s core strength is its simplicity. It just <em>works.</em> Whereas other image models require more careful and deliberate prompting, DALL-E uses ChatGPT to write the image prompt. To illustrate this, I prompted ChatGPT to “Create a photo of a cute puppy dog,” and it will generated the following prompt:</p><blockquote>An adorable puppy with big, expressive eyes and a fluffy coat. The puppy has a playful demeanor, with one ear perked up and the other slightly drooping. It’s sitting on a soft, grassy field, with a few colorful flowers scattered around. The lighting is soft, creating a warm, inviting scene.</blockquote><p>The DALL-E model is one of the most coherent models in terms of picking up nuanced details in prompts. Whereas other models tend to lose or mix up details, DALL-E can often generate compositions that no other model can.</p><p>Additionally, while all generative image models currently struggle with text, DALL-E can usually render several words of legible text with some persistence and a few retries.</p><h4>DALL-E’s Weaknesses</h4><p>DALL-E’s biggest strength is also its biggest weakness. Many users don’t realize that ChatGPT is rewriting their prompts before sending them to DALL-E, and they wonder why the images aren’t quite following what they ask for.</p><p>That would be great if ChatGPT was any good at writing prompts for an image model, but perhaps paradoxically, the A.I. isn’t very good at writing prompts for A.I.</p><p>One common issue is when a user asks to change or remove something from the image, and ChatGPT prompts the model to create an image “with no flowers.” Image models interpret language very differently than language models, and they will often see the word “flowers” without the negative context, and they will generate <em>more</em> of that thing.</p><p>ChatGPT also can’t “see” the image that DALL-E generates, so it will often confidently state that it has removed or changed something in an image, regardless of whether the image actually reflects that change.</p><p>As long as you understand how ChatGPT and DALL-E are working together, you can work around this. I’ve created an <a href="https://chat.openai.com/g/g-pVj6UhiL3-un-opinionated-image-gen"><em>Un-Opinionated Image Gen</em></a> custom GPT to run a user’s prompts verbatim, without any rewrites, for more granular control.</p><p>One other limitation of DALL-E is that it struggles with photographic styles, and images generated with the model often have very painterly or illustrated styles, even when prompting for a photograph.</p><p>This is in part by design. OpenAI takes responsible use of A.I. very seriously, and they understand that if users can create convincing, realistic images, those images could be used for nefarious purposes. DALL-E’s strict content policies also refuse to create images with the likenesses of specific people such as celebrities or public figures, copyrighted characters, images that emulate a contemporary artist’s style, or images that could be use for deceptive ends.</p><p>While content restrictions are enforced on the DALL-E side of the equation, the stylistic preferences of the model can be prompted out, to a certain extent. I created a <a href="https://chat.openai.com/g/g-Bboa63p7M-photographic-images"><em>Photographic Images</em></a> custom GPT to enhance prompts with photographic styles.</p><h3>Leonardo.ai: A creative suite for image generation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Emd1vfWazSoFzTG6tnoQQ.jpeg" /><figcaption><strong>Prompt: </strong>a cute puppy dog (PhotoReal pipeline, cinematic style, Alchemy upscale)</figcaption></figure><p><a href="https://roblaughter.com/try/leonardo">Leonardo</a> is a suite of image generation tools, based on Stable Diffusion. It’s more than a simple image generator — it’s a creative toolkit, presenting the user with a variety of tools to help them execute on their creative vision.</p><p><strong>Bottom Line: </strong>Leonardo usually isn’t my first choice, but I’ll use it when I need more control over my image generation than Midjourney or DALL-E can offer. Their PhotoReal pipeline is excellent at photographic style images.</p><h4>Leonardo Quick Stats</h4><ul><li>Current Version: PhotoReal V2, Alchemy V2</li><li>Model: Stable Diffusion XL, Stable Diffusion 1.5, various fine-tunes</li><li>Access: Web, App</li><li><a href="https://roblaughter.com/try/leonardo">Pricing</a>: Free tier (150 tokens/day). Paid plans start at $12/month.</li><li><a href="https://leonardo.ai/terms-of-service/">License</a>: Full ownership for paid users, image license for free users, commercial use.</li></ul><h4>Leonardo Features</h4><p>Leonardo is one of the most feature-rich image generation apps available today. Based on the highly-extensible Stable Diffusion pipeline, Leonardo gives users a high degree of control over their image generation.</p><p>Users can generate images form text prompts or start with an image, choosing from a library of fine tuned variants of Stable Diffusion models in a wide range of styles, and optionally upscaling their image with a 2x A.I. upscaler.</p><p>Leonardo’s image guidance goes beyond the typical image-to-image pipeline, giving users finer control over the images they generate. Depth-to-image extracts a depth map from the uploaded image and uses it to conform the generated image to the same structure as the original. Pose-to-image extracts a pose from any people or characters featured and generates a new image in the same pose. And edge-to-image extracts the outline of major features in the input image, using those edges to generate a new image. Users can combine two or more image guidance modes for even more control.</p><p>Leonardo also lets users upload a data set and train their own fine-tuned model based on a likeness, character, or style.</p><p>Beyond image generation, Leonardo has a number of unique features that aren’t available in most image generators. These features include realtime generation, which generates polished images in real time as the user sketches out an idea, and the realtime canvas, which allows users to piece together a more complex composition by generating one part of the image at a time. The realtime canvas can also be used to refine or replace portions of a generated image.</p><p>Leonardo recently added Motion, an image-to-video model that animates static images. While generative video is currently in its early stages, the quality of Leonardo’s Motion module is comparable — and often better—than some of the more established players in the space, such as Runway, Pika, and Stable Video Diffusion.</p><h4>Leonardo’s Strengths</h4><p>Leonardo’s greatest strength is the quality of images generated in the Alchemy/PhotoReal pipeline, and the robust feature set that is included at a very manageable price.</p><p>Having multiple models to choose from, users can generate images in a wide range of styles without being limited to a specific aesthetic — and with some work, users can fine tune their own model.</p><p>The PhotoReal pipeline produces images in a photographic style that rival those generated with Midjourney. Some users even prefer Leonardo’s photographic images to those produced by Midjourney.</p><p>The realtime canvas and realtime generation features in Leonardo are also innovative features that you can’t find elsewhere. Personally, I find them to be more fun toys than staples in my daily workflow, but they’re interesting nonetheless.</p><h4>Leonardo’s Weaknesses</h4><p>Like other image generators, Leonardo’s strengths also highlight some of its weaknesses. The robust feature set makes for a cluttered workspace and gives users a steeper learning curve to get started.</p><p>The PhotoReal pipeline is very, very good at producing realistic images, but it is necessarily somewhat inflexible, trading image quality with less diversity in terms of subject matter, style, and composition. Prompting for specific poses, styles, or features can be difficult, and the image guidance options aren’t compatible with the PhotoReal pipeline.</p><p>Lastly, the results of creating personalized fine tuned models are okay, at best, and require some skill and knowledge in curating and preparing datasets.</p><h3>Ideogram: king of design and typography</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGin11VaTUDecLEkae2RAA.jpeg" /><figcaption><strong>Prompt: </strong>A social media graphic in vector illustration style, featuring a cute puppy dog and the text “Cute Puppy Dog”</figcaption></figure><p>Ideogram made some significant waves when it broke into the image generation scene back in August 2023, not because it produced spectacular images, but because it was able to do something that few models could — produce coherent text. Previously, Stability’s <a href="https://github.com/deep-floyd/IF">DeepFloyd IF</a> model was the only image model that came close to producing legible text, and it was a cumbersome install that only ran on hardware with high-end graphics cards.</p><p><a href="https://cogniwerk.ai/model/ideogram">Word on the streets</a> is that Ideogram is built on DeepFloyd, but makes the model more accessible by building it into a front end product.</p><p><strong>Bottom Line: </strong>If I need to quickly brainstorm designs with text, such as typography, social media graphics, or logotypes, I often turn to Ideogram first. Ideogram is also great at creating illustrations for things like tee shirts, stickers, etc.</p><h4>Ideogram Quick Stats</h4><ul><li>Current Version: V0.2</li><li>Model: DeepFloyd (rumored)</li><li>Access: Web</li><li>Pricing: Free tier (25 generations/day). Paid plans start at $8/month.</li><li><a href="https://ideogram.ai/tos">License</a>: Full ownership, commercial use okay.</li></ul><h4>Ideogram Features</h4><p>Ideogram is a pretty straightforward image generator, eschewing the bells and whistles of services like Leonardo to focus on their motto — “helping people become more creative.”</p><p>Community and inspiration are core to Ideogram’s philosophy. Image generation takes place above a public feed of featured images from other users. A simple text field invites users to “Describe what you want to see here,” with a large “Generate” button beside it. Click it, wait a few moments, and you’ll see four images based on your prompt.</p><p>There are a few additional options to customize the generated image, including aspect ratio (square, wide, or tall) and a few suggested styles.</p><p>After a user generates an image, they can “remix” the image, using it as a starting point for the next generation and choosing how much influence the original will have on the new batch.</p><h4>Ideogram’s Strengths</h4><p>Ideogram’s core strength is its ability to create images with coherent text. While no image model generates perfect text 100% of the time — it’s an <em>image</em> model, after all — Ideogram renders text most reliably and creatively, in my experience.</p><p>While models such as Midjourney and DALL-E have since been able to render text as well, Ideogram is still a strong contender.</p><p>Ideogram also excels at styles such as illustrations and vector art. Browsing the public image feed, you’ll see many users creating things such as tee shirt designs, sticker designs, and social media graphics. Within these styles, Ideogram is an extremely coherent and creative model.</p><p>If you’re up for spinning the roulette wheel with copyright infringement, Ideogram can also generate images of specific characters really well. What you do with that information is your business. I would think twice — three times, even—before using such images in the wild.</p><h4>Ideogram’s Weaknesses</h4><p>If you’re looking to create images with a photographic or realistic style, you’ll probably have more luck using one of the other image generators in this guide. While Ideogram can technically produce them — and will occasionally surprise me with really interesting images — it isn’t a strength.</p><p>Ideogram doesn’t have a huge feature set by design. That can be an asset, but it also means that you’ll likely need to use other tools alongside Ideogram as you’re building out your creative toolbox.</p><h3>Stable Diffusion: image generation for the mad scientist</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhrzMei1jToUn6PWriuaeg.png" /><figcaption><strong>Prompt: </strong>A candid photo of a cute puppy dog with brown, white, and black fur romping through the tall grass in a sunny park. Trees and shrubs are visible in the background. Flowers dot the ground, with other various park related things. The sun is setting in the background. Captured on a Nikon z7ii with 105mm f/1.8 NIKKOR lens. Dark, contrasty vibe. (Generated in ComfyUI with the ICBINP XL checkpoint, upscaled to 2688x1536.)</figcaption></figure><p>Unlike the other options on this list, Stable Diffusion isn’t a service — it’s a base model, developed by Stability AI, that powers many online image generators. While you can use it with any number of web based services, such as Leonardo, Stable Diffusion can also be installed on your local machine.</p><p>It’s free to use and the code to run it is open source, which means if you have the hardware to run it, you can generate unlimited images, entirely offline, with no cost. A number of community built apps and UIs are available.</p><p><strong>Bottom Line: </strong>Stable Diffusion is hands down my favorite tool for generating images. It’s not for the faint of heart, but if you’re willing to roll up your sleeves and tinker, no other image generator gives you the level of control and flexibility.</p><h4>Stable Diffusion Quick Stats</h4><ul><li>Current Version: SDXL 1.0</li><li>Model: Open Source</li><li>Access: Local installation, various services, API</li><li><a href="https://stability.ai/use-policy">License</a>: Full ownership, but commercial use may require a paid <a href="https://stability.ai/membership">membership</a></li></ul><h4>Stable Diffusion’s Strengths</h4><p>Stable Diffusion is <em>highly</em> customizable. Users can choose from several well-supported UIs, thousands of fine-tuned models and styles, and hundreds of extensions to add additional functionality to the image generation pipeline.</p><p>Some of the most common web UIs for Stable Diffusion include:</p><ul><li><a href="https://github.com/comfyanonymous/ComfyUI">ComfyUI</a>. Most customizable, but highest learning curve.</li><li><a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">Automatic1111</a>. Balances extensibility with accessibility.</li><li><a href="https://github.com/lllyasviel/Fooocus">Fooocus</a>. Prioritizes ease of use over customization.</li></ul><p>Thousands of fine tuned models can be found on repositories such as <a href="https://civitai.com/">Civitai</a>, along with style and character models called LoRAs that let users further customize generated images.</p><p>Extensions include ControlNet for image guidance, Stable Video Diffusion and AnimateDiff for generating short videos, various upscalers, and more.</p><p>Because it is built on open source models and software, Stable Diffusion has strong community support, with many professionals and enthusiasts contributing their time to develop new and innovative solutions, making them available to intrepid users far sooner than they will be available in commercial products.</p><h4>Stable Diffusion’s Weaknesses</h4><p>Again, the weaknesses here are consequences of Stable Diffusion’s strengths.</p><p>If you don’t have any experience with generative A.I., Stable Diffusion probably isn’t the place to start. Installing the software to run the models can be a cumbersome process, requiring at least some knowledge of how to use the command line and how to manage software such as Python.</p><p>Running Stable Diffusion also requires ample computing resources, including sufficient memory, VRAM, and hard drive space. I have an RTX 3080 graphics card with 10 GB of VRAM, and I routinely crash when I run out of resources. Each checkpoint requires around 6.5 GB of storage on your hard drive — and that can add up fast.</p><p>Living on the cutting edge also means that you’ll frequently run into conflicts, crashes, and bugs.</p><h3>Honorable Mentions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*enRxxojVBbWDJk_HO-stfw.jpeg" /><figcaption><strong>Prompt: </strong>a cute puppy dog (RunwayML, cinematic lens style)</figcaption></figure><p>The image generators above represent the options that I use most often, but this list is by no means exhaustive. There are hundreds of options to choose from, with new one popping up every day.</p><p>Below are a few players that I didn’t think needed a deep dive, but wanted to give an honorable mention.</p><h4>Adobe Firefly</h4><p><a href="https://firefly.adobe.com/">Firefly</a> is Adobe’s suite of proprietary image generation tools. It can be used as a standalone image generator on the web, but it also powers many of the generative features that the company is building into their products, such as Photoshop’s Generative Fill and Illustrators text-to-vector.</p><p>Whereas many image models are under scrutiny for being trained on copyrighted material, Firefly is unique in the fact that it was trained entirely on licensed content. Adobe has also pioneered Content Credentials, bringing transparency to A.I. generated assets.</p><p>Being a part of Adobe’s ecosystem, however, it has strict content guidelines and will become increasingly embedded in Adobe products.</p><h4>Mage.space</h4><p><a href="https://www.mage.space/">Mage.space</a> is similar to Leonardo in that it’s a web based Stable Diffusion front end, but more simple and easy to use.</p><p>Mage.space has a generous <a href="https://www.mage.space/membership">free tier</a>, with paid plans that unlock more features.</p><h4>RunwayML</h4><p><a href="https://runwayml.com/">Runway</a> is an A.I. research company partnered with Stability to train their early image models. Today, they’re best known for their generative video product, Gen-2, but they also offer capable text-to-image generation, as well as a suite of unique generative A.I. tools.</p><h3>Conclusion</h3><p>At the end of the day, there are no shortage of options to choose from when it comes to generating images with A.I. The services I’ve shared here are the ones I use every day, and the ones that I recommend to others.</p><p>Choosing between them is more of an art than a science, and I often use multiple models in concert with each other in my creative workflow.</p><p>With the content in this post, I hope that you’ll start to see that not all image generators are created equal, and each one has its own set of strengths and weaknesses. As you use each one, look for ways to use it as a tool in the creative process, not necessarily an one-click solution.</p><p>If you’d like more deep dives like this, or if you’d like hands on coaching and training on how you can use generative A.I. tools like these in your creative process, check out the <a href="https://roblaughter.com/collaborative/">A.I. Collaborative</a>, a six month cohort where you can learn and experiment in a community of like minded peers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a33db88e8513" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>