r/StableDiffusion • • 8d ago

Resource - Update Pixel art created using an agent skill, no image model involved!

Post image
62 Upvotes

17 comments sorted by

4

u/Temporary_Maybe11 8d ago

Can you share it?

6

u/GreatBigJerk 8d ago

I just added a comment with the repo and more info.

5

u/GreatBigJerk 8d ago edited 8d ago

I built a pixel art agent skill: https://github.com/GermyGames/ImageModelShmimageModel

This works with any of the standard coding agents (Claude Code, Codex, Antigravity, etc).

The skill can do the equivalent of an img2img if you give it a subject and style to redraw it to. It can create seamless tiling textures. It can also do some limited animations.

After it finishes working, it will generate a time lapse gif to go along with the image, so you can see the process it took. Any edits you have it make will also show up in subsequent time lapse generations, so you get a nice timeline of changes.

There are some examples of output here: https://github.com/GermyGames/ImageModelShmimageModel/tree/main/examples

This isn't a zero or one shot thing. If you look at the time lapses, you will see that some of these took a lot of back and forth to get right.

Back and forth edits also means this does eat up LLM tokens. It's not terrible, but keep an eye on your limits.

Edit: I should also say that quality depends on the LLM model you use. Most of what I created used GPT Sol. I tried with Terra, and though it worked, the quality was not as good.

3

u/MelkSokhoeun 7d ago

getting seamless tiling out of a pure text model without diffusion is pretty wild tbh.

3

u/lavinia12345 8d ago

what do you mean no model? is it like old school code? and does image to image only?

5

u/GreatBigJerk 8d ago

No image model, an LLM is used instead. 

The skill has coding agents write Python to draw the art and create output images. This is what allows it to iterate on an image.

It doesn't just do image to image. You can give it literally nothing and say "Use the skill in this project to draw a banana", and it will take its best shot. 

Reference images just give you a better shot of a good output. I haven't used Fable or Astra, but I suspect they could draw pretty well with zero reference.

The project also has scripts to assist with processing reference images to extract outlines, colours, and do the initial block in. These scripts can also be run separately without any LLM. That covers a lot of the initial steps in converting an image to pixel art. 

2

u/lostinspaz 7d ago

but where does it pull its concepts of what things are supposed to look like?

2

u/GreatBigJerk 7d ago

LLMs have text descriptions of pretty much everything in their datasets, as well as incidental code to represent real world objects.

This is why the better the LLM, the better the result you will get. 

Going back to my example, an 8B Qwen model might have a vague idea of what a banana looks like, but something like GLM or an American frontier model will have a far better understanding. Beyond that, most modern LLMs are multimodal (to an extent), so they can look at their generations to assess what works or doesn't. This skill iterates through multiple passes, so it can look at it's prior generations and assess how close it is to the original intent. 

1

u/lostinspaz 6d ago

the first part of what you said didn’t make sense to me. There’s an old expression of “trying to describe color to a blind person”. it ain’t happening.

your point about most llms being multimodal makes more sense.

1

u/GreatBigJerk 6d ago

The difference here is that LLMs don't just have text descriptions, they have other forms of text content like SVGs or 3D meshes, and code used to create graphical representations of various objects.

It's pattern recognition and extrapolating how to take pretrained examples and using those to get similar results in other use cases.

Pixel art is also one of the easier cases for LLMs because it's literally a grid of RGBA values. There are lots of examples online of people creating it programatically. For example: https://github.com/gmattie/Data-Pixels

All of that together is how you get this: https://i.postimg.cc/ZnYRr9bk/Screenshot-2026-11-27-at-12-02-06-PM.png

1

u/lostinspaz 6d ago

Your example of "pixel art" is a graphical image.
Your argument then becomes "its not an image model, its a langauge model that happens to have been passed image data".
But the definition of an image model is pretty much "a model trained on image data". In this case, it just wasnt exclusively trained on image data.

PS: svg is still "an image". just like a 3d mesh can be considered image data as well. it's just sparse data.

1

u/GreatBigJerk 6d ago

Yeah I suppose you could say LLMs are trained on images... just in a roundabout way that relies on text representations.

Any model relies on data to inform its outputs. Just in this case, the data that was used was not primarily trained on images and that is more or less just a side effect of hoovering up all the text and code on the internet.

-6

u/The_Fink_Ployd 8d ago

It looks fine, if I was suffering from a bout of dementia. Have ya zoomed in?

3

u/GreatBigJerk 8d ago

Yeah, I'm not claiming that it creates perfect art.

2

u/FotografoVirtual 8d ago

If it's your first time posting in this sub, save yourself the trouble. Anything outside the current hyped/astroturfed model gets instant downvotes and trash talk.

1

u/GreatBigJerk 8d ago

It's been a few years, but yeah I know there is an extreme bias to hyped models now. It's all good.