A practical guide to AI image generation, from diffusion to agents

(danielball.com)

112 points | by westsmith 4 days ago ago

31 comments

  • vunderba 4 days ago ago

    Nice article. There's another option for pixel art that's recently been coming into vogue as tool usage improves in LLMs which is procedural graphics.

    I actually experimented with creating a set of skills around rendering early AGI style EGA graphical scenes, and it worked surprisingly well.

    So rather than storing full bitmaps, you instead store sequences of simple drawing instructions designed to recreate some specific scene - like you would an SVG.

    As a result you end up sidestepping a lot of the problems with larger generative models, which can have issues with grid alignment, palette choices, and high-frequency noise.

    https://github.com/scpedicini/agi-stylist

    https://kq-styles.specr.net

    • armcat 5 hours ago ago

      This is very cool! I will try your method for background and tile creation in the asset-generation tool I've built [1]. Would your procedural method work for animations as well, like sprites?

      [1] https://github.com/acatovic/ai-game-studio

    • thijson 4 days ago ago

      Looks great. This could be a form of image compression.

    • nonethewiser 4 hours ago ago

      I suspect your picscript language is an entirely unnecessary abstraction and the prompt (ie the model) is doing all the work.

      • badsectoracula 4 hours ago ago

        How so? Judging from the examples the model does seem to take advantage of the language (creates and uses reusable elements) and AFAICT the language itself compiles down to "real" Sierra PIC commands so in theory it can be used with a Sierra PIC viewer/engine.

        • nonethewiser 3 hours ago ago

          Yeah compiling to Sierra PIC is a unique advantage over asking the model for an image. But the claim im attacking is different. The claim in attacking is that you cant just tell it to produce images like this directly.

          >As a result you end up sidestepping a lot of the problems with larger generative models, which can have issues with grid alignment, palette choices, and high-frequency noise.

          All of these can be avoided with simple prompts and don’t require all this ceremony.

          Convo then the artifact from the convo (sorry, apparently no way to share the pics but they are just captured from the artifact).

          Convo: https://claude.ai/share/78cd63c8-ffdd-4569-8de2-ac8ab5c5cfe0

          Artifact: https://claude.ai/artifact/3M6xiKJKz1oDxTKGWi8FUi

          • nsib96 2 hours ago ago

            the style is completly differrent…

    • satvikpendem 5 hours ago ago

      Exactly, turn something nondeterministic into something more deterministic and AI does a great job at that.

    • westsmith 3 days ago ago

      Neat! I've followed you on Github. I like the idea of going to the past to see what works and adapting it for the LLM age. Nice work!

      • vunderba 3 days ago ago

        Thanks! Yeah, I started building it because I read an interview with the original creators of King’s Quest, Ken and Roberta Williams where they mentioned in passing that it was too expensive (in the 80s) from a storage perspective to store entire bitmaps for each scene, so instead they'd just store a series of very simple drawing instructions and render on demand.

        I’m super excited to see more LLM-driven procedural graphics stuff in the future!

  • __bias 4 hours ago ago

    These models always create pixel art that looks like garbage because the people using it don't know enough about the medium to properly judge the output. This article is no exception. If you want pixel art for your project then learn or hire someone with that expertise

    • sheepscreek 3 hours ago ago

      Are you saying people unfamiliar with the 'pixel arts' can't enjoy it their own way?

      I don't think the author is posing as a professional. These models are like having a 3D printer at home. Very handy in a pinch, but what they make doesn't replace the real thing.

      • stymaar 3 hours ago ago

        > Are you saying people unfamiliar with the 'pixel arts' can't enjoy it their own way?

        The problem isn't that they look shitty to pixel artists or experts, they look shitty for anyone with a bit of observation.

        It's junk art the same way Mc Donald's is junk food.

        • user43928 3 hours ago ago

          It's calorie-dense and high in sodium?

          I think we could do a bit better here with the explanation of what looks bad to you..

          • ramblurr 2 hours ago ago

            I am just a layperson when it comes to pixel art, but to me the example in the article is clearly garbage/low quality.

            - the magenta background is still visible along the edges - the color palette is all over the place - random noise pixels of totally different colors are visible scattered around - the lighting and shading doesn't look that good

          • stymaar an hour ago ago

            > It's calorie-dense and high in sodium?

            There's plenty of real food that is as heavy and as salted, and as such no healthier, than junk food. But it actually tastes good. (I can't exactly put the finger on what makes an Italian pizza better than a US 7/11 one, but it's not about the former being healthier).

    • Aerroon 3 hours ago ago

      But if the user thinks it looks fine, then won't most players think the same?

      I just don't get the complaints about "use proper art" when it comes to games. Most of the time the game has some other, far more glaring, visual issues (anti-aliasing, clipping, icons-not-matching-items).

      • IsTom 2 hours ago ago

        > But if the user thinks it looks fine, then won't most players think the same?

        I have a suspicion that when you're looking at (and generating, because you then look at the results) AI generated images and text more you get desensitized and are more likely to say that something looks okay when to other people it won't.

      • tuna74 3 hours ago ago

        You don't want to anti-alias when having pixel art.

  • turbobutton 5 hours ago ago

    Related question: Whenever I try to run Image generation locally, be it with Flux or Qwen, I seem to be getting results that are about 1-2 years behind what ChatGPT can produce today - and take up to 5 minutes for a single image. Is this a hardware problem (running it on a decent windows gaming PC), a configuration problem or just the reality of what local models can deliver at the moment on consumer hardware?

    • user43928 2 hours ago ago

      I found that for Qwen Image 2.1 the prompt enhancer makes a big difference.

      It won't bridge the gap to gpt-image-2.5 though, and it's going to slow down the process further.

      With a 4090, Qwen Image 2.1 Turbo takes around 15s per image, depending on the resolution. That's without the prompt enhancer.

    • zf00002 2 hours ago ago

      Configuration and maybe prompting problem in my experience. Are you doing the prompting or are you letting claude or something do it?

    • ThrowawayTestr 27 minutes ago ago

      SwarmUI makes things a lot easier. Kroma generates an image in about 90s with a 4070.

    • satvikpendem 5 hours ago ago

      Look into r/StableDiffusion and follow their prompts and download their ComfyUI workflows.

      • turbobutton 5 hours ago ago

        Thanks, I've done that, but with mixed results. I've also tried comfyui wrappers and alternatives that try to hide the complexity and just set sensible defaults, but I'm beginning to suspect its ultimately a consumer hardware vs million dollar NVidia server question.

        • satvikpendem 3 hours ago ago

          What are you trying to generate? I've also noticed that local models aren't as good as cloud models due to hardware but there are still ways of optimizing the process.

    • Karuma 4 hours ago ago

      You can get results a billion times better than the horrible, disgusting look of ChatGPT in less than a couple of seconds with a model like Krea or MOSS, and ComfyUI. With just a 8GB VRAM GPU or so...

      Just visit Civitai, look at the pages for the base models, filter for images with the ComfyUI workflow in them, then you can just download and drag and drop them onto your local ComfyUI app.

  • Lerc 5 hours ago ago

    Are control nets not being used much anymore? I haven't seen anything that provides a similar level of composition control, and yet I do not see them being referenced much at all.

    • search_facility 3 hours ago ago

      They are used a lot, and modern edit models kind of support base cases - depth, canny, openpose - as a reference image. I mean they understand "use image 2 as depth map", result indeed have same depth, etc. But interpretation sometimes arbitrary to model.

      For the tasks where several control nets should be adhered (depth and canny and segmentation) dreaded SDXL is still unmatched. SDXL also the only one handling influence weight for each control net normally, this ability completely vanished on modern models

      Control nets in early post-SDXL models like ZIT or Flux kind of work too, but still much worse in quality when combined. I suspect pure diffusion architecture of SDXL is really favorable to mixing control signals with precision, DITs probably can be trained to similar level for mixing signals - but it is much harder and never seen in practice. At least every post-SDXL model I tried is trained with single one in mind, judging from my attempts. This rant is from personal expirience.

  • tonmoy 5 hours ago ago

    I have been asking opus 5.5 to write python to create logos. It is more consistent and easier to control than gen AI for this purpose

  • armcat 3 hours ago ago

    You mentioned in your README that it was tested with GLM-5.3 but this is not a multi-modal model. Did you mean GLM-5.3-Flash?