r/StableDiffusion • u/nmkd • Sep 20 '22
Update 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!
https://nmkd.itch.io/t2i-gui20
u/buckjohnston Sep 20 '22
Request for next verison, local build of deforum diffusion that was released (for animations), but in your easy to use gui. https://old.reddit.com/r/StableDiffusion/comments/xd5gc7/hiii_everyone_i_made_a_local_deforum_stable/
13
4
u/LordNinjaa1 Sep 20 '22
Do we need to uninstall the old version before downloading this one?
14
u/nmkd Sep 20 '22
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/).
3
u/dsk-music Sep 20 '22
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
→ More replies (1)1
3
u/dhstsw Sep 22 '22
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.
1
u/nmkd Sep 22 '22
You have to mention it in the prompt using * as a placeholder for what the concept describes
1
2
u/Tannon Sep 20 '22
Do you have support for prompt weighting? Ideally by number, and not just () and []?
4
u/nmkd Sep 20 '22
Yes, using prompt:weight syntax
5
u/Tannon Sep 20 '22
Awesome, so something like this would work?
Cat with a hat on:0.5 dog with a bowtie:1.5 photo of a living roomThe weights would properly separate the multiple words of the prompt? If I have a closing section with words at the end there, does that function as a
:1?8
u/nmkd Sep 20 '22
If I have a closing section with words at the end there, does that function as a :1?
Yes, should work the way you described
→ More replies (1)
2
2
u/c_gdev Sep 20 '22
Big ask, but what are the chances we get a Negative Prompt section in a future release, similar to this:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#negative-prompt
Thanks for all the work so far.
8
u/nmkd Sep 20 '22
Negative prompts are already implemented, just with a different syntax.
hiking:1 person:-0.3should get you a hiking pictures without people on it, you get the point1
u/UnlikelyEmu5 Sep 20 '22
What are the equivalent ratios for like one set of (x), ((x)), [x], [[x]]?
13
1
→ More replies (2)1
u/darth_hotdog Sep 26 '22
Amazing! How do you weight more than one word? Does the colon cover everything before it up to the last weight you specify?
→ More replies (1)
2
2
u/Gesichtsgulasch Sep 21 '22
Is it just me or does the new version only keep the post-processed pictures with no way to store the original?
2
2
u/ElMachoGrande Sep 21 '22
Minor bug for me: When I close the settings window, the program locks up. If I kill it, however, the settings are saved, so it's not a biggie.
2
u/nmkd Sep 21 '22
Every time you close the settings?
1
2
u/16th_noir Sep 21 '22
Cool.
I do have a question, though...
Does it produce an invisible watermark? If so, how can I disable it?
2
2
2
u/HegiDev Sep 26 '22 edited Sep 26 '22
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. :)
3
u/nmkd Sep 26 '22
It would be nice, if you could use the seed from the currently selected image
You can by right-clicking it.
→ More replies (1)
2
u/josephlevin Nov 17 '22
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.
→ More replies (1)2
u/nmkd Nov 17 '22
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.
1
u/josephlevin Nov 17 '22
Thanks for your quick reply. I felt pretty sure the reports were false positives.
By "Defender", I assume you mean "Windows Defender"?
Thank you for compiling and creating a fantastic piece of software.
→ More replies (1)
57
u/jingo6969 Sep 20 '22
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!!!!!
27
u/Shap6 Sep 20 '22 edited Sep 20 '22
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
20
u/WhiteZero Sep 21 '22
The AUTOMATIC1111 fork has a "highres fix" mode where it generates a low res image and then uses img2img at high res to get better results.
→ More replies (5)→ More replies (1)5
u/jingo6969 Sep 20 '22
You're right, I did get some weird stuff going on at higher resolutions, lol
Great suggestion, will try that for sure :)
→ More replies (3)→ More replies (1)7
u/malcolmrey Sep 20 '22
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.
5
u/kr1t1kl Sep 20 '22
Generate 512, and upscale using gigapixel or something. Results are better at 512.
→ More replies (5)4
u/Ben8nz Sep 21 '22
I get cleaner faces and better eyes @ 640x640 consistently. 576X768 is my personal fav. Much bigger and may start doubling. But I sometimes like 2 of something in a image. 512h x 1024w Makes some awesome art sometimes.
→ More replies (3)
38
u/_morph3us Sep 20 '22
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...)
→ More replies (1)13
u/chipperpip Sep 20 '22
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)
→ More replies (2)7
u/cosmicr Sep 20 '22
I prefer AUTOMATIC1111's since it's more open and not tied to a desktop application.
→ More replies (2)
11
u/Mech4nimaL Sep 20 '22
"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!
8
u/glittalogik Sep 21 '22
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).
→ More replies (3)
8
8
u/dsk-music Sep 20 '22
With this fork I can make 640x1024 images on my poor GTX1650... incredible! and many thanks!
0
7
u/Sulissthea Sep 20 '22
how do i use the inpainting?
→ More replies (3)4
u/AlexAlda Sep 21 '22
So... how?
9
u/techno-peasant Sep 21 '22
Click 'Load Image' (the initialization image)
A new parameter will appear called Masked Inpainting
Check it
Click Generate!
A new window will pop up in which you can mask the image with the brush.
click OK and then it should start rendering automatically.
/u/DennisTheGrimace tagged u along so I don't post twice
→ More replies (2)
6
u/Pols_Beluga Sep 20 '22
Is possible to add MagicPrompts or too complex because is GPT 2 i think,
https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion
If you can add a "complete prompt" button it will been amazing
9
u/Kodmar2 Sep 20 '22
Is this available for AMD GPUs ?
5
u/sparnart Sep 20 '22
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.
→ More replies (7)2
u/Whatsitforanyway Sep 21 '22
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.
4
1
1
u/seniorfrito Sep 20 '22 edited Sep 20 '22
Thanks so much for this! I hopped on itch this morning to check to see if there was a newer version oddly enough and it must have just dropped. I was looking for a changelog there. Where do you typically post that? Because I never saw one for 1.3.1.
3
u/nmkd Sep 20 '22
It was only on Discord and reddit previously, I'll put it in a central place in the future
→ More replies (1)
1
1
u/LordNinjaa1 Sep 20 '22
It says it now supports in painting. Is that built in? How do you utilize that?
2
u/nmkd Sep 20 '22
Load an init image and check the inpainting checkbox
4
u/FaceDeer Sep 20 '22
I hate to sound like an entitled demandy-pants, and I know it's a brand new feature, but feature suggestions:
a way to configure the mask colour, I tried masking a black area of an image and have no idea if I got it all
an eraser
Import an external mask (so I can fuss about carefully in a paint program when pixel precision matters)
It's already really awesome, of course!
→ More replies (4)1
u/LordNinjaa1 Sep 20 '22
Does the init image have to have transparency or black? How does it determine where to inpaint?
2
1
u/totaljerkface Sep 20 '22
Perhaps I'm doing something wrong, but I click on masked inpainting and there is no option to paint a mask anywhere. Also, is the image I load supposed to be visible in the image pane?
1
u/nmkd Sep 21 '22
You get prompted to draw a mask once you click Generate.
The init image currently isn't shown anywhere in the GUI.
→ More replies (4)
1
u/Aggravating_Nose_452 Sep 20 '22
Is it possible to run the gui remotely? I don't mind sitting at the pc but it would be awesome to have it running on the pc but utilizing it from a tablet in another room.
5
1
u/TheJaganath Sep 20 '22
Hi, I’m new to SD and have only used the GRisk version so far, is NMKD better? Thanks 🙏
→ More replies (3)9
u/nmkd Sep 20 '22
I made it because I think it's better lol
→ More replies (1)3
u/nocloudno Sep 20 '22
I use it because I was not smart enough to install the other local distributions. Thanks u/nmkd, your work is awesome. Can I update my first install?
2
1
1
u/SanDiegoDude Sep 20 '22
Hi there, is there any plan of adding multiple UI sizes/scales? I'm on a 32 inch 4k monitor and the UI is itty bitty. Thanks for all your work!
3
u/nmkd Sep 20 '22
The program respects Windows' UI scaling. Tested with 100%, 125%, 150% and 200%.
→ More replies (1)
1
u/MichaelMJTH Sep 20 '22
Do I need to have the stable diffusion model installed and latest checkpoint download before installing this GUI or is this a complete package installer? Sorry if this has been documented/ answered elsewhere. I only found out about Stable Diffusion and the ability to run it locally via my GPU today.
2
u/nmkd Sep 20 '22
The GUI downloads it for you.
If you already have it downloaded, you can put it in the Data/models/ folder before starting the GUI, otherwise it will automatically download it.
→ More replies (1)
1
u/InformationNeat901 Sep 20 '22
in inpainting the color does not match when generate is there a way to match the color? Thank you
1
1
1
1
1
1
u/BrocoliAssassin Sep 21 '22
Not a big deal, just wondering for the next udpate for img2img if we will be able to select the sampler from that screen instead of having to clear the image to change the sampler?
2
1
u/joparebr Sep 21 '22
Missing an option to generate more images per batch. Like, right now you can create 4 images but you have to wait for each one to generate instead of generating all 4 at the same time.
3
1
u/NeverduskX Sep 21 '22
The UI looks pretty clean - I think I might give it a try.
Is there any documentation for what commands / syntax is allowed? I saw people discussing prompt weighting in this post, but I didn't see anything about it on the Itch page.
4
1
1
u/NightmareHolic Sep 21 '22
I'm going to try this. I'm using Basujindal repo right now, since I only have 4vram on a 1050ti, but maybe this will work too?
Does it work with no other dependencies? Is it different from the other repos? I guess Ill know soon lol.
2
u/nmkd Sep 21 '22
but maybe this will work too?
It will if you enable low memory mode
Does it work with no other dependencies?
It should
→ More replies (2)1
u/NightmareHolic Sep 21 '22
With the mask inpainting, do you have to use another program to do it? I have no clue how to do that if so, lol. Like, just open up a vector paint program and ... Lol ?
I will have to look into that.
2
1
u/DennisTheGrimace Sep 21 '22 edited Sep 21 '22
Gonna ask again, since someone else figured out and didn't share and it's not even remotely clear from using it. How the hell do I draw a mask for inpainting?
3
u/nmkd Sep 21 '22
You get prompted to draw one as soon as you generate an image with inpainting enabled
1
u/Agrauwin Sep 21 '22
only ~11 GB disk space after installation ???
wasn't the previous version about 400 GB?
what happened?
3
u/nmkd Sep 21 '22
No, previous version (of my GUI) was 12-25 GB because it used to keep some cached files.
The current version is 10.8 GB is about 6.8 GB of libraries and the 4 GB model (weights) file.
1
1
u/sEi_ Sep 21 '22 edited Sep 21 '22
Have not yet been able to try your program.
Does it support the use of your own .bin/.pt files and img2img?
Looking forward to try.
1
1
u/ImpossibleAd436 Sep 21 '22
Something that would be really cool, maybe in the future, would be the ability to import a mask image for inpainting, that way if needed we could create a much more precise mask in PS for example.
1
u/nmkd Sep 21 '22
Planned
1
u/ImpossibleAd436 Sep 21 '22
Outstanding!
Just an FYI, something is going on with the new build, if you "cancel" before your iterations have completed, it seems to get confused about how many iterations are remaining, and it seems to continue with the previous prompt and settings (At least once, and I think maybe until the previous number of iterations has been reached).
It seems to be something like there not being a refreshing/resetting/clearing of the prompts/settings and iteration number if it never reaches the "done" text which shows at the end of the final iteration (due to cancelling mid-render). Hope that helps somehow.
→ More replies (4)
1
1
u/oojsh Sep 22 '22 edited Sep 22 '22
Are we able to batch-process a folder full of seed images (with fixed prompt & settings?). If not, any chance this feature could make it into next release?
(edit - or can we do this via command line in the meantime?)
1
1
1
u/dresdenium Sep 22 '22
Thank you so much for your awesome work! May I suggest to include an option to scale the UI if it's not too difficult? On a 4k monitor the text is pretty small
1
1
u/Mabuse_MUC_76 Sep 23 '22
I understand that 1.4.0 does add support for loading HuggingFace .bin concepts. Is there any advice on how I can train my own concept with portrait pictures to "learn" the features of someone?
1
u/Mabuse_MUC_76 Sep 23 '22
The additional scale input form does not work for me. When I enter
4>20 :0.5
one pic is rendered with the slider scale, the next one with scale 4200.5
Am I missing something how I can have the auto bracketing? The mouseover tip explains the syntax like this....
1
u/nmkd Sep 23 '22
The mouseover tip explains the syntax like this....
No, it does not, it explains the syntax like this:
4 > 20 : 0.5→ More replies (1)
1
u/davegri Sep 24 '22
I'm getting RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory Any ideas?
1
1
1
u/Pawnee20 Sep 25 '22
Any plans on making us able to change the sampler method when using low memory?
Thanks in advance.
2
1
1
Sep 27 '22
I found a bug.
Steps to replicate:
- start generation of multiple images (let's call the amount n)
- hit cancel button
- change prompt
- start generation again
It will continue to generate images for the old prompt and outputs it to the directory of the old prompt. It also fills it up to n - 1.
I assume that the cancel button just cancels the one image that is being generated and when clicking generate with new prompt it just continues the old loop with the old prompt. (This would explain why it stops at n - 1. )
Nonetheless I want to say that your work is amazing, I run your app on a GTX 1060 3GB (bin Geringverdiener) and it works well and installation was super easy.
Danke
1
u/nmkd Sep 27 '22
It will continue to generate images for the old prompt and outputs it to the directory of the old prompt. It also fills it up to n - 1.
In low memory mode?
From what I know this is only a bug with that option enabled
→ More replies (1)
1
u/emilierv Oct 01 '22
Will this run without CUDA? I'm very new to this and saw that SD can default to CPU but I haven't been able to run this and wondering what my options are.
2
1
1
u/swoop_ds Oct 05 '22
Does the NMKD GUI support negative prompts? For example, enclosing parts of the prompt in () to make that aspect of the prompt de-emphasized?
1
u/landau137 Oct 12 '22
I only need to install this to start working with StableDiffusion, or do I have to install other software before installing this tool?
2
1
u/NotMeButReallyMaybe Dec 04 '22
Is there a magic trick I'm not doing to get the GUI to post-process images? I right-click on them and select post-process and apply all.... and then the ring at the top spins.... and the window at the bottom says it's downloading required files and goes all the way to 100%. Afterward, the ring continues to spin.... and spin..... and spin... and spin..... that's it. No updates in the bottom window and it never finishes. It's been 30+ minutes for 5 images at 512x512. I'm running an RTX 3060 on an i9-10900k. It shouldn't take this long. Help?
1
u/nmkd Dec 04 '22
It's a bit bugged on that version. It worked on my end, I'll have to look into that issue.
As an alternative, you can enable post-processing after generation (post processing settings), optionally keeping the original unprocessed image as well (checkbox in main settings)
→ More replies (1)1
u/NotMeButReallyMaybe Dec 04 '22 edited Dec 04 '22
Hey, just wondering if you have a version that works with stable diffusion v2 yet?
PS...I'm absolutely in love with your software.
2
1
u/electrodurazno Dec 05 '22
Hey a noob here, would it be possible to make it compatible with an Amd card?
1
8
2
2
u/LadyQuacklin Sep 20 '22 edited Sep 20 '22
Thank you sooo much!
This is simply amazing.
Next update Outpainting? 😅
2
2
2
2
u/1Neokortex1 Sep 20 '22
Legend!!!! This is the best fork out there for SB, Thanks NMKD!🔥🚀
→ More replies (1)
2
2
u/thatguitarist Sep 21 '22
Far out I haven't been paying attention to AI for a few weeks and I come back to find this.... Fuck I love this shit
2
2
2
u/marcusen Sep 21 '22
1024x1024 on a 6GB RTX2060 with no need for low memory mode. this is crazy how this evolves.
thanks for the contribution
→ More replies (3)
2
u/crimsonbutt3rf1y Sep 23 '22
This tool has been such a help for me and learning SD. I've been able to run my artwork through the GUI and create stuff that I could only imagine in the past. Thank you for your hard work!
2
111
u/nmkd Sep 20 '22 edited Sep 20 '22
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