News for hackers. Stuff that matters.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by aivoyeur on Sunday September 11, 2022 @10:32PM (#32805396)
This really is a one-click installer, which is excellent. As far as I know it's the first and only one for M1. It's quite a polished UI, but there are a lot of features missing. The first ones that come to mind are:

- No way to specify a seed. This is an important part of SD workflows, letting you redo an image with a slightly tweaked a prompt.

- No way to specify a custom model. Alternative models (such as Waifu Diffusion) are fun to play with too.

- No way to generate batches of images.

- No way to specify which sampler to use.

- No way to adjust the weight of specific sub-phrases, or use negative weights.

There's also no img2img yet, but it sounds like that's a planned feature.

Other GUIs such as https://github.com/sd-webui/stable-diffusion-webui, https://github.com/AUTOMATIC1111/stable-diffusion-webui have many more features - but not all will be trivial to port to M1.

P.S.: For the people asking - yes, it can do NSFW images. I checked.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by Reason077 on Monday September 12, 2022 @07:26AM (#32808522)
Unfortunately they did not include a one-click uninstaller! Besides removing the .app, you also need to delete the 4GB+ model that it downloads and other files that it scatters about:

  $HOME/.diffusionbee
  $HOME/Library/Application\ Support/DiffusionBee
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by cwizou on Monday September 12, 2022 @09:32AM (#32809947)
To be fair, this is a long standing issue between how Apple wants people to uninstall their app (by throwing them in the trash) and how modern apps really work in practice (some apps need/generate temp data in AppSupport, and sometimes it's a non trivial amount).

As a developer the best you can usually do is put some instructions somewhere (website, somewhere in a menu in UI), or do a package install that puts an uninstaller somewhere (more of the Windows way, but it breaks many expectations from users like having your app be one icon in `Applications`, and not it's own folder with your app and maybe a "Uninstall" app there too). For Aerial I give uninstall instructions on the website, but there's not much of a standard on how to handle this (that I know of, at least).

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by Angostura on Monday September 12, 2022 @12:04PM (#32812357)
Not quite sure why this couldn't sit in the Application bundle itself.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by cwizou on Monday September 12, 2022 @12:13PM (#32812495)
As far as I understand this is downloaded data and they may offer model selection later on? If so they have little choice and putting your data in the user `/Library/Application Support` (or maybe `/Library/Caches` but that's a mess in itself) is what you're supposed to do.

With the various security changes in "recent" macOS, you can't modify your bundle and download files inside it, as it would change its signature and break the notarisation system.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by remram on Monday September 12, 2022 @12:20PM (#32812580)
Do you mean that it should be distributed with it, or that it should write it in there when it downloads it at runtime?
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by Angostura on Tuesday September 13, 2022 @03:33AM (#32821574)
The latter. A model update would then just be an application update. To answer my own question - if they want to allow a choice of downloadable models, then Application Support is the perfect place.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by Reason077 on Wednesday September 14, 2022 @07:25AM (#32835662)
And also to allow updating the app independently of the model, without a 4GB download every time.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by swyx on Monday September 12, 2022 @12:42AM (#32806163)
for those with stable diffusion running, an acquaintance and I have been working on another GUI https://github.com/breadthe/sd-buddy/

which offers custom seed and batches of images (we are also working on parametric prompting https://github.com/breadthe/sd-buddy/discussions/12#discussi... )

i'd love to get to img2img and alt models next.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by liminalsunset on Tuesday September 13, 2022 @02:57AM (#32821386)
A note that this appears to be, at the time of writing, shared source and not strictly "open source" as it claims to be.

"Stable Diffusion Buddy is open source and free for personal use.

You may not use Stable Diffusion Buddy for any commercial purpose. That means you may not sell or profit in any way from the compiled app, from compiling the app yourself, from the source code, or a fork of it. The images generated by using this app do not fall under these limitations for obvious reasons."

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by mrtksn on Monday September 12, 2022 @05:14AM (#32807697)
Hey, that's very nice. However I wasn't able to actually generate images because I need to have a specific conda environment enabled first.

A couple of suggestions, maybe you can implement:

1) option to switch the conda environment since I had setup the dependencies in a specific environment (for me, the command is "conda activate ldm")

2) It would be nice to know what was the error when there is an error.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by benreesman on Monday September 12, 2022 @08:41AM (#32809250)
Looking good over here too: M1 Max.

God I would hate to be whoever OpenAI blames this on.

I’m going to leave that DALL-E beta approval email unread like a food delivery recruiter email.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by ihateolives on Sunday September 11, 2022 @11:19PM (#32805709)
> This really is a one-click installer, which is excellent. As far as I know it's the first and only one for M1.

There's https://www.charl-e.com/

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by aivoyeur on Sunday September 11, 2022 @11:27PM (#32805750)
That's a very pretty landing page, but it entirely avoids describing any features, or showing what it looks like beyond a thumbnail-sized image. Do you have any insights?
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by ihateolives on Monday September 12, 2022 @12:06AM (#32805975)
Unfortunately, no, haven't had time to try it yet, bookmarked it few days ago. Just wanted to comment that there are others and probably will be many more coming shortly.

I'm used to troubleshoot all kinds of stuff but I'm not a Python guy and wrangling with dependencies and virtual environments is not fun in my book. I've got lstein repo working but can't wait to have cleaner way of doing things.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by NonNefarious on Monday September 12, 2022 @03:56AM (#32807295)
I've tried it. The first time it did generate an image, albeit missing one of the few elements I mentioned.

Now it only generates black frames, even after being restarted. Not impressed at this point.

The options are sizes up to 768 x 768, "steps," and "guidance scale." You can do text-to-image or image-to-image.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by radley on Sunday September 11, 2022 @11:31PM (#32805773)
I tried Charl-E and got Python errors. (Maybe because I don't have Python installed?)
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by fragmede on Sunday September 11, 2022 @11:52PM (#32805905)
`mkdir ~/Desktop/charl-e/samples` to fix that.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by Tagbert on Monday September 12, 2022 @01:14AM (#32806335)
Why do you need a folder on the desktop? I never put files there and it seems like a strange requirement.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by fragmede on Monday September 12, 2022 @01:53AM (#32806547)
It’s just a bug in the code that assumes that folder is there. (Not my app)
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by divamgupta on Sunday September 11, 2022 @11:33PM (#32805785)
I just tried it as well. I also got errors. Well, for a one-click install app, you don't need python preinstalled.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by natch on Monday September 12, 2022 @12:02AM (#32805956)
Can it be built from source? (Am thinking if yes, then the seed feature should be easy to add).
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by ZiiS on Monday September 12, 2022 @02:02AM (#32806598)
The seed problem is in upstream GPU libraries provided by Apple. The community is working on solutions, but they are not easy.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by natch on Monday September 12, 2022 @02:22PM (#32814602)
Can you elaborate? Isn’t the seed a simple int (or long int)?
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by ZiiS on Monday September 12, 2022 @05:09PM (#32817009)
Currently reusing the same seed dose not produce repeatable results on Apple silicon. I assume this UI hides it as missleading.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by natch on Tuesday September 13, 2022 @12:24AM (#32820629)
The logs for the app (logs tab) state it's just repeatedly using the number 42 as a seed. But yes in the UI the results are different each run, even with an unchanged prompt. Didn't quite parse your last but if you're saying it's misleading, yeah kind of, because you can't share or save a prompt to redo the same result.

Weird that it's considered a big challenge to fix… something in Metal? Core ML? SIMD libraries? Some translation layer? Something is not being said here.

Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by totetsu on Monday September 12, 2022 @12:33AM (#32806122)
has anyone got a frok with img2img working for M1? I keep getting errors no matter what I try.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by ZiiS on Monday September 12, 2022 @02:05AM (#32806613)
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by divamgupta on Monday September 12, 2022 @12:41AM (#32806161)
I will add it to diffusion bee soon.
Re:Diffusion Bee: Stable Diffusion GUI App for M1 Mac by pronlover723 on Monday September 12, 2022 @02:57AM (#32806921)
PRs welcome!