Stable Diffusion for Mir Artwork

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
I didn't really look if this has been posted already but oh well...

If you haven't heard about Stable Diffusion, its similar to DALL-E, a text to image generator except that you can download and run the components and models locally (and sell any created works if you are that way inclined).

I would only really recommend it to Windows user with Nvidia GPU's as the setup is easy and has a high success rate vs AMD/Linux.

The point is that when I started typing this post, I started generating images that are attached (limit 20 per forum post but stable diffusion spit out 3 times that before I finished typing, I picked some colourful ones). No effort was required past installing stable diffusion and well, some of them are really quite good starting points (or even entirely useable final images). Between stable diffusion and ChatGPT you can have a Mir themed website setup in about an hour.

################

If you want to check out stable diffusion and you run Windows,

I use the "AUTOMATIC1111's WebUI" which can be found at the links below.

GitHub : https://github.com/AUTOMATIC1111/stable-diffusion-webui

Install instructions (Nvidia) : https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs

Install instructions (AMD) : https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs

Unstable Diffusion's Discord is a good Discord for tips/help too : https://discord.gg/aTzxbWbatn

################

My version of install instructions for Windows/Nvidia:


Install this : https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
-click "add to PATH" or "add to system environment variables" during install.

Install this : https://github.com/git-for-windows/git/releases/download/v2.39.2.windows.1/Git-2.39.2-64-bit.exe
-Again click "add to PATH" or "add to system environment variables" during install.

Download and extract this : https://github.com/AUTOMATIC1111/stable-diffusion-webui/archive/refs/heads/master.zip
-somewhere you wont move it and with at least 20GB of free space

Run webui-user.bat from inside the extracted files and wait until it finishes installing and downloading the required stuff.
If it appears to be stuck, just wait unless there is a clear error.

When its ready, you'll be able to go to http://127.0.0.1:7860 where you will find the UI for Stable Diffusion.
 

Attachments

  • 00289-4275810185.png
    00289-4275810185.png
    1.2 MB · Views: 31
  • 00288-2524561401.png
    00288-2524561401.png
    1.1 MB · Views: 31
  • 00314-3282057905.png
    00314-3282057905.png
    1.1 MB · Views: 26
  • 00313-496050456.png
    00313-496050456.png
    1.2 MB · Views: 23
  • 00312-2155859816.png
    00312-2155859816.png
    1.2 MB · Views: 24
  • 00311-568002620.png
    00311-568002620.png
    1 MB · Views: 23
  • 00310-853316565.png
    00310-853316565.png
    1.1 MB · Views: 22
  • 00308-339992155.png
    00308-339992155.png
    1.1 MB · Views: 22
  • 00305-4197363280.png
    00305-4197363280.png
    1.1 MB · Views: 21
  • 00304-531689227.png
    00304-531689227.png
    1.2 MB · Views: 21
  • 00303-4221682879.png
    00303-4221682879.png
    1.3 MB · Views: 24
  • 00299-210687578.png
    00299-210687578.png
    1.2 MB · Views: 23
  • 00298-1541594540.png
    00298-1541594540.png
    1.1 MB · Views: 20
  • 00297-1627057320.png
    00297-1627057320.png
    1.1 MB · Views: 18
  • 00296-3605797697.png
    00296-3605797697.png
    1.2 MB · Views: 21
  • 00295-2612302538.png
    00295-2612302538.png
    1.2 MB · Views: 23
  • 00293-3151003878.png
    00293-3151003878.png
    1.2 MB · Views: 23
  • 00292-3017397165.png
    00292-3017397165.png
    1.3 MB · Views: 21
  • 00291-1754665751.png
    00291-1754665751.png
    1.2 MB · Views: 23
  • 00301-2443157658.png
    00301-2443157658.png
    1.2 MB · Views: 33
Last edited:

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
I think so ^_^
I'll post some better examples when I'm free next.

The wider implication here is possibly generating entirely new assets that technically belong to the server creator and legally being free of mir, all via batch img2img script... that's a tall order tbh but not completely insane now either...
 
  • Like
Reactions: Jev

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
Some more examples, as promised...

Again, I didn't put much effort in to any of this and its not a perfect solution or the answer to your graphics problems but its certainly a very useful tool to have in the toolbox.

So, maybe you want some new MP potion images....stable diffusion!

1682115027128.png

Oops, Maybe you wanted HP instead?
1682115000926.png

Don't want a background? ...OK!
(see attachment)
1682115379403.png

Don't need potions? no problem...
Being more specific about the style and what you want is up to you really...
1682121190987.png

Sometimes, txt2img doesnt really understand some stuff but you can simply regenerate the problem items with an alternate prompt, over and over until you find your perfect image...

1682149157382.jpeg

You could possibly, maybe, even get new maps out it...
(i assume you would need way to load .png as a map etc...)
1682124716334.png

"That's cool and all but i'd just be happy to find high quality versions of the old stuff"
Well, thats fair, and ... Stable diffusion!

With img2img you can get "effectively the same image" but really, its a unique regeneration, and you can change the resolution, giving the appearance of upscaling. for example...

The old image, on the left. A basic img2img upscale in the middle. Img2img loopback on the right.
1682118288644.jpeg 1682119020103.png 1682128913153.png
1682139338106.jpeg 1682139694187.png 1682142542443.png

Is it the same character, not really... but thats good when they lawyers come knocking.... Is it close enough, yeah pretty much and you can continue to re-generate with different settings until it's right or get close enough (and drop it into photoshop still.)

Other artwork for websites or whatever, as seen in previous post, you can get a very similar look and simply changing the "prompt" will give some amazing results, for example, adding "photorealistic"
1682126866978.png 1682126899132.png

or adding "wearing a Helmet"..
1682127858981.png 1682127894744.png

Its really quite capable and gives the avarage joe a chance to create some great art/graphics etc


I'm not sure what other examples to give really, I don't have any mir assets to hand either...

I hope the above adds something anyways...

Any questions or anything?
 

Attachments

  • 1682114823680.png
    1682114823680.png
    771.7 KB · Views: 16
  • no_background.png
    no_background.png
    166.5 KB · Views: 14
Last edited:

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
It'll be perfect when it can create fully useable sprite sheets
You could feed it sprite sheets until it knows what they are and can create them to your spec ...
Useful if you wanted your sprite sheets in a specific order/style etc.

Or its possible it can do it already with some persuasion to be fair, it has batch and API capabilities too.
You would just need to get the prompts correct etc.

but as example, someone has actually done the above already for, i want to say Stardew valley, so i can show you its possible, if nothing else...
obviously this was fed a walking sprites but i personally generated the below using the model.
1682151756673.png

If you had a way to generate sprite sheets for what is already available that you have and want more of, then you're winning i guess.
 
Last edited:

Lilcooldoode

LOMCN Developer
Developer
May 10, 2003
2,230
729
360
Yes
I can generate sprite sheets from current armours/mobs/weapons if you think it's possible
 

Hercules

Prime Hunter
Banned
Jun 4, 2018
1,922
887
145
Asda
I can generate sprite sheets from current armours/mobs/weapons if you think it's possible

I don’t care what WS says about u LCD, I think your alright 😉
Post automatically merged:

Some more examples, as promised...

Again, I didn't put much effort in to any of this and its not a perfect solution or the answer to your graphics problems but its certainly a very useful tool to have in the toolbox.

So, maybe you want some new MP potion images....stable diffusion!

View attachment 31325

Oops, Maybe you wanted HP instead?
View attachment 31324

Don't want a background? ...OK!
(see attachment)
View attachment 31326

Don't need potions? no problem...
Being more specific about the style and what you want is up to you really...
View attachment 31330

Sometimes, txt2img doesnt really understand some stuff but you can simply regenerate the problem items with an alternate prompt, over and over until you find your perfect image...

View attachment 31343

You could possibly, maybe, even get new maps out it...
(i assume you would need way to load .png as a map etc...)
View attachment 31331

"That's cool and all but i'd just be happy to find high quality versions of the old stuff"
Well, thats fair, and ... Stable diffusion!

With img2img you can get "effectively the same image" but really, its a unique regeneration, and you can change the resolution, giving the appearance of upscaling. for example...

The old image, on the left. A basic img2img upscale in the middle. Img2img loopback on the right.
View attachment 31328 View attachment 31329 View attachment 31336
View attachment 31337 View attachment 31338 View attachment 31339

Is it the same character, not really... but thats good when they lawyers come knocking.... Is it close enough, yeah pretty much and you can continue to re-generate with different settings until it's right or get close enough (and drop it into photoshop still.)

Other artwork for websites or whatever, as seen in previous post, you can get a very similar look and simply changing the "prompt" will give some amazing results, for example, adding "photorealistic"
View attachment 31332 View attachment 31333

or adding "wearing a Helmet"..
View attachment 31334 View attachment 31335

Its really quite capable and gives the avarage joe a chance to create some great art/graphics etc


I'm not sure what other examples to give really, I don't have any mir assets to hand either...

I hope the above adds something anyways...

Any questions or anything?

Fantastic stuff 👍🏻
 

Martyn

Smir.co.uk
Staff member
Administrator
Mar 24, 2003
3,799
2
844
400
Kent - UK
@meacher can it be used to make a banner for Discord?

if you could try, it would be appreciated, recommended and ratio 960x540 16:9
 
  • Like
Reactions: zedina

LightBringer

Primordial GM
Veteran
Primordial
Game Master
Feb 13, 2014
3,831
1
1,742
260
Honestly looks really good.

Something I can't get side tracked with or I will end up tinkering with it for months
 
  • Like
Reactions: Jev and Sanjian

FloppyQ

LOMCN Member
May 12, 2020
107
2
49
30
It can even be used to create an avatar!

"A fat Pikachu eating a pile of ****" perhaps.
 
  • Haha
Reactions: zedina

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
I can generate sprite sheets from current armours/mobs/weapons if you think it's possible
To be honest its probably a tall order for me to pull it off, i'm not all that good with stable diffusion yet and haven't done any model training before. that said, I can see people have done it and there are a few guides on the internet so, let me have a proper look at what's required and get back to you.

@meacher can it be used to make a banner for Discord?

if you could try, it would be appreciated, recommended and ratio 960x540 16:9
I suspect that's probably pretty easy, here's 20 (forum post limit). some better than others. Slap "The Legend of Mir" or whatever on them at your convenience.

Happy to do some more, i just used that last prompt from the realistic ones in previous post and changed resolution though really, if you want a different style, anime or whatever just let me know and i'll generate some more.
 

Attachments

  • 00871-2066377033.png
    00871-2066377033.png
    861.2 KB · Views: 10
  • 00821-2393259274.png
    00821-2393259274.png
    875.1 KB · Views: 11
  • 00830-1869418383.png
    00830-1869418383.png
    863.3 KB · Views: 10
  • 00835-3498798328.png
    00835-3498798328.png
    884.9 KB · Views: 11
  • 00839-3498798328.png
    00839-3498798328.png
    855.2 KB · Views: 8
  • 00840-3498798328.png
    00840-3498798328.png
    881 KB · Views: 8
  • 00841-3498798328.png
    00841-3498798328.png
    857.8 KB · Views: 7
  • 00844-2770317928.png
    00844-2770317928.png
    768 KB · Views: 6
  • 00845-1349929533.png
    00845-1349929533.png
    821.8 KB · Views: 6
  • 00848-3045606653.png
    00848-3045606653.png
    804.7 KB · Views: 6
  • 00851-1926025187.png
    00851-1926025187.png
    800.2 KB · Views: 7
  • 00857-1696722384.png
    00857-1696722384.png
    958.3 KB · Views: 7
  • 00871-2066377033.png
    00871-2066377033.png
    861.2 KB · Views: 9
  • 00873-283197814.png
    00873-283197814.png
    843.4 KB · Views: 8
  • 00879-3514683494.png
    00879-3514683494.png
    828.8 KB · Views: 8
  • 00882-4188506346.png
    00882-4188506346.png
    836.8 KB · Views: 8
  • 00890-132524514.png
    00890-132524514.png
    939.7 KB · Views: 8
  • 00892-1698985232.png
    00892-1698985232.png
    924.2 KB · Views: 12
  • 00901-2318802183.png
    00901-2318802183.png
    919.6 KB · Views: 11
  • 00897-204579138.png
    00897-204579138.png
    811.8 KB · Views: 15
  • Like
Reactions: Nostalgic

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
Someone asked for those icon images, heres the link however, people are better off getting the software and doing their own to get what they want or to automatically remove backgrounds etc, rather than my hap-hazard "this could work" technique.

StableDiff_RPG_Icon_Run
 

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
maybe for now i try and use stable diffusion to upscale some of the assets where possible.
probably still a fair size job ... but if there is some interest in trying etc

A quick example upscale being like:

1682204387551.jpeg 1682204580939.png

1682205257604.jpeg 1682205194777.png

1682212303019.jpeg 1682212439195.png

1682212092726.gif



Get the settings/workflow right and possibly batch process everything
 
Last edited:

Hercules

Prime Hunter
Banned
Jun 4, 2018
1,922
887
145
Asda
  • Like
Reactions: meacher

meacher

Dedicated Member
Dedicated Member
Mar 16, 2004
214
89
75
Isle of Man
Have you tried it on maps/tiles?
see what happens i guess...

not sure how well it would all work to be honest, the more i look at it...

some random tiles...
1682222512210.jpeg 1682222535886.png

1682222725021.jpeg 1682222784706.png
1682223335458.jpeg 1682225505377.png
1682224083979.jpeg 1682225344540.png

bit hit n miss really, bonus is the tiles are all the same size so batch process would be easier on them.
 
Last edited:
  • Like
Reactions: Nostalgic and Lose