Skip to content

NMKD Stable Diffusion GUI 1.4.0 is here! Now with support for inpainting, HuggingFace concepts, VRAM optimizations, and the model no longer needs to be reloaded for every prompt. Full changelog in comments!

Not downloaded yet
nmkd.itch.iohttps://nmkd.itch.io/t2i-gui
789 points406 comments
Open on Reddit
About this post
Posted
Archived
Score
789 · 99% up
Kind
Image
ID
xjacbf

Author

29
posts
1.2k
comments
30
media
View profile

435 comments

nmkdOP54 hidden

SD GUI 1.4.0 Changelog:

  • Stable Diffusion model no longer needs to be reloaded every time new images are generated
  • Added support for mask-based inpainting
  • Added support for loading HuggingFace .bin concepts (textual inversion embeddings)
  • Added prompt queue, allows you to queue up prompts with their settings
  • Added prompt history, allows your to view or load previous prompts
  • Added a progress bar that shows the generation progress of the current image
  • Added option to play sound and/or show notification when finished
  • Added a "Welcome screen" that shows the changelog and patrons
  • Added buttons to use the previous seed or to reset it
  • Added button to expand prompt field to 2x height
  • Added proper support for DPI scaling
  • Post-processing now works with Low Memory Mode
  • Further VRAM optimizations, especially in regular mode
  • Available CUDA GPUs are now listed in window title
  • Windows should not be able to go to sleep while the program runs (untested)
  • Updated GFPGAN model to 1.4
  • Fixed a bug where empty "unknown prompt" folders were created
  • Fixed some issues regarding the python environment
108 points

For those whose screen doesn't wrap the above / format the above:


SD GUI 1.4.0 Changelog:

  • Stable Diffusion model no longer needs to be reloaded every time new images are generated
  • Added support for mask-based inpainting
  • Added support for loading HuggingFace .bin concepts (textual inversion embeddings)
  • Added prompt queue, allows you to queue up prompts with their settings
  • Added prompt history, allows your to view or load previous prompts
  • Added a progress bar that shows the generation progress of the current image
  • Added option to play sound and/or show notification when finished
  • Added a "Welcome screen" that shows the changelog and patrons
  • Added buttons to use the previous seed or to reset it
  • Added button to expand prompt field to 2x height
  • Added proper support for DPI scaling
  • Post-processing now works with Low Memory Mode
  • Further VRAM optimizations, especially in regular mode
  • Available CUDA GPUs are now listed in window title
  • Windows should not be able to go to sleep while the program runs (untested)
  • Updated GFPGAN model to 1.4
  • Fixed a bug where empty "unknown prompt" folders were created
  • Fixed some issues regarding the python environment
11 points

hey i have a gamebreaking bug you may want to look into. The program creates a really long filename that is undeletable, it would cause random issues like it cannot be opened by the image viewer in windows.

might I suggest. Since the exe already performs with some kind of database involved. Can we keep the filename formats short and save the promt text and other details as a txt file inside that folder? Then leave the seed# in the filenames itself

3 points

Love it!!! I have two NVIDIA GPU with 1 cuda device each. Can I run two instances of the gui at the same time, each one on a different cuda device?

1 points

I want to try it out. Will this play nice with other installations of SD in conda environments? Is it an independent environment?

1 points

You are just.....magic man!!!! Thank you a lot. The inpainting/mask feature is really well done, the best I've tested so far.

Congrats GG \o/

1 points
unknown author

Deleted before we saved it.

1 points

i am actually in love with you. making ai models is cool, but making them easy to use is amazing. thank you.

1 points

Thanks A LOT ! IT's definitly the coolest way to run SD without online limitations !

I suggest small improvements : The 1 is the more easy to add and the most important in my eyes:

  1. Option to Put the parameters Numbers in the Image filename : It will helps a lot to remember the good settings that produce the best images

  2. What about a thing that take the last image to create next ones and so makes those cool morpho animations ?

  3. What about a Prompt option with wildcard like * that allow the prompt to increment the prompt by changing only the wildcard by the Word List? Ex : "photo of a *, detailed realistic" And the * use a list that change the word * each line

Best

1 points

Added support for loading HuggingFace .bin concepts (textual inversion embeddings)

Wait, does this mean it has textual inversion functionality? Or am I missing something? Cause nothing else I've got does it easily.

0 points

I am absolutely loving this! Bear in mind that I am using a RTX2060 with 6GB VRAM:

Previous version (1.3.1) - max resolution 640 x 640

Version 1.4.0 - max resolution 1280 x 1280 (or 1472 x 832 for a more 16:9 aspect ratio)

Admittedly, rendering is slightly slow (1min 40 secs for 1280 x 1280), but WOW!!!!!

56 points

remember though the model was trained at 512x512. going too far beyond that things will start coming out weird with much reduced accuracy. the big killer feature is now being able to generate much larger batches of images at once, if you haven't tried that give it a go for sure

27 points

that makes me anxious to try this version, the resolution you speak of is something I would not expect from such a card.

I own a 2080 TI with 11 GB so I might push it even higher, I reckon.

6 points

I tried previous version on my rtx 3050 but max resolution I got was 64x64 .

1 points

YES!!! Finally my favourite SD program goes into the next round! Thank you!!

​

You didnt get putting info into the metadata to work?
Also, did you ever think about adding iterative rendering? (Where the image is shown every step, so you can decide wether its worthy to keep on rendering...)

40 points

How does it compare to the AUTOMATIC1111 UI?

(Keeping in mind that thing's getting updated daily, so if anyone used it a week ago they're already out of date on its features)

13 points

Auto SD has some of those features, allowing you to pivot on CFG scale, steps, or even samplers. From a workflow standpoint, those features are invaluable.

Unfortunately, that's all Auto SD does. Still, I start with Auto SD, then reproduce those settings in the AUTOMATIC1111 web gui, where I can do inpainting, etc.

2 points

Some suggestions:

Allow people to point to a custom folder for the model files. That way they can use them from other installs without having to duplicate files that eat up more hard drive space.

I think a person can do this manually if they go to data > repo > configs > models.yaml and edit it appropriately to point to the proper directory, with each "." before the directory being something that tells the program to go a folder back, so you'd add the appropriate number of dots to go back the appropriate number of directories. Or I think you could simply use the full drive and folder path.

But it should be an option in the GUI settings to choose a directory, for simplicity.

Also, clicking an image makes it fullscreen, clicking it again should go back to the GUI, more intuitive.

12 points

There is a better way, you put all your model (SD like ckpt, .pth, etc) in an organized folder somewhere, and you just create Symbolic Links.

I'm on Windows, so I have one folder with different subfolders, with one that has all the trained models, the SRGAN stuff, etc. I use this application : https://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html - You use it with a right click on a file "Pick Link Source", then you go in the folders the model (or whatever file) needs to go, and you right click "Drop as > Symbolic Link"

Before that I had so many duplicates of these files everywhere

5 points

Yeah I'll probably do that in the future

4 points

"It is completely uncensored and unfiltered - I am not responsibly for any of the content generated with it."

Noob question: Which GUIs are uncensored or can be used as such? I've just installed AUTOMATIC1111 for example.. Thanks!

10 points

Seems like pretty much all of the locally installable ones are uncensored. I've been playing with Basujindal's optimized version and the Gradio UI, super basic but it lets me do whatever.

That said, my few attempts at NSFW images so far have been 100% body horror dysmorphia nightmare fuel. I may have accidentally turned Janice Griffith into my new sleep paralysis demon (not in a good way).

6 points

Is this available for AMD GPUs ?

9 points

It wouldn’t be difficult at all to make any one of these GUIs work with the AMD/ONNX pipeline, it’s officially supported. No one with the basic know-how seems to have bothered trying though, which sucks cos it runs pretty well through ONNX. Probably not as fast as nVidia, but I get about 2 seconds per iteration on a Radeon 5700.

5 points

Haven't seen a GUI for the AMD ports yet. But like you.. keeping an eye out. Not buying an NVIDIA anytime soon so command line for now.

2 points

Thank you so much for this. I have made 1000`s of pictures.

9 points
unknown author

Deleted before we saved it.

9 points

With this fork I can make 640x1024 images on my poor GTX1650... incredible! and many thanks!

8 points

Do we need to uninstall the old version before downloading this one?

4 points

Yeah it'd be best to delete the old one for a clean install, just the folder.

If you don't wanna redownload the model file, you can back it up and then copy it to the new installation (Data/models/).

14 points

Found a small bug, I have a GTX1650.

I run in full presicion mode and low memory mode. All works fine!!

But if I use post processing upscale I always get "grey" images:

with upscaled:
https://i.postimg.cc/h40sgWM2/1.jpg

Without it:

https://i.postimg.cc/65jh2rkR/2.jpg
If I deactivate upscale, all wors fine. And face correction works nice too.

I use this prompt to this example, so you can see the prompt isnt the problem:
ultrarealistic photo of an astronaut cat, hq, intrincate, high detailed

3 points
unknown author

Deleted before we saved it.

1 points

Noob question: how to use HuggingFace .bin concepts?
Loading one model (or style) leads to no noticeable changes in the results from a prompt.
Thanks.

2 points
nmkdOP5 hidden

You have to mention it in the prompt using * as a placeholder for what the concept describes

1 points

This is a fantastic piece of software. I've been enjoying using it since 1.4.0.

I have a question: with each version from 1.4.0 on up, after using the software for a while, maybe a week off and on, AVG Antivirus always starts to claim that CMD.EXE is infected with IDP.Generic, and I have to make a temporary exception for the software to run.

VirusTotal finds no such infection of cmd.exe.

I submitted my cmd.exe to AVG for testing, and eventually the IDP.Generic warning went away as, I am assuming, that as promised, AVG updated its own processes or signatures, what have you, and the flag was a false positive.

Today, StableDiffusionGui.exe 1.7.0 was flagged as Ransomware by Malwarebytes.

VirusTotal reports the following:

Cynet, Malicious (score: 100), SecureAge

https://www.virustotal.com/gui/file/8200c41a886d1d85ee582c67170a336eb232722663e498324d9b4ebbfd871d28

I am assuming this is also a false positive.

I've not installed any other new software on my PC since NMKD SD GUI 1.4.0 and subsequent versions.

My daily scan by Malwarebytes did not find anything, so I am at a loss as to what is going on.

Has anyone else experienced this issue?

​

Anyway, whomever reads this, please support u/nmkd . The SD GUI software is too good NOT to support it in some way.

2 points
nmkdOP2 hidden

Friendly reminder to ditch all Antivirus software except Defender, they're useless.

Anyway, feel free to compile it yourself if you're paranoid about it. There's nothing malicious in there.

2 points

I just ran into the same problem, StableDiffusionGui.exe 1.7.0 was quarantined by Malwarebytes as ransomware. The Malwarebytes report says: "Event: RTP detectionEvent, details: Malware.Ransom.Agent.Generic". I don't know what to make of this

1 points

1024x1024 on a 6GB RTX2060 with no need for low memory mode. this is crazy how this evolves.

thanks for the contribution

2 points

Don't forget that the model was trained on 512x512 images. By setting a higher resolution for generation, you won't always get a better detailed image. Instead, you'll get weird artifacts, duplicate objects, and other glitches. After some time of pain, you will get the idea to reduce the resolution of the image. Unfortunately, there is no such thing as magic, even if the new technology looks like magic. :)

1 points

Great job. Best SD GUI so far!

It would be nice, if you could use the seed from the currently selected image with just a button click. And may be being able to copy prompt + settings in one set. To make sharing easier. :)

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.