myByways Simple-SD v1.0 Python script

I refactored my previous Stable Diffusion code, to clean up, OO it a little, and add new features like tiling, upscaling, PNG metadata. As I mentioned before, I don’t understand AI/ML… but I do understand programming! So here is my new, more elegant Simple-SD v1.0 Python script. ...

9 Oct 2022

Adding CLIPSeg automatic masking to Stable Diffusion

I have more ideas for Stable Diffusion. My nights and weekends are consumed! This time: For inpainting, why create a mask image manually, when A.I. can automatically build a mask from a text prompt? Someone much smarter has already published a paper (arXiv:2112.10003 [cs.CV]), with source code, to do just this! ...

28 Sep 2022

Stable Diffusion script with inpainting mask

More Stable Diffusion! This time attempting to add inpainting / masking based on my previous code, to merge both txt2img.py and img2img.py capabilities, disregarding the out-of-box inpainting.py code, which does not have parameters for positive or negative prompts. Keyword being attempting… ...

26 Sep 2022

My simplified Stable Diffusion Python script

I’ve been playing around with the Stable Diffusion scripts a little (to be exact, Ben Firshman’s version). To help me understand the script, I decided to re-write it the way I prefer to use it… either breaking or optimizing it in the process :P ...

21 Sep 2022

Stable Diffusion image-to-image mode

Following from my previous post, AI-generated images with Stable Diffusion on an M1 mac: This time, using the image-to-image script, which takes an input “seed” image, in addition to the text prompt as inputs. In this case the model will use the shapes and colors in the input image as a base for the output AI-generated image. ...

17 Sep 2022

AI-generated images with Stable Diffusion on an M1 mac

There has been a lot of buzz about Stable Diffusion for text-to-image synthesis, which saw its Public Release around 22 Aug 22. You can read more on the Stability.AI blog and try it at Hugging Face. What’s groundbreaking is is that is open source, with a pre-trained downloadable model and modest system requirements, so anyone can try it on their own computer… anyone… like me! ...

16 Sep 2022

macOS Automator PDF Actions

Here is a macOS Automator script to watermark a PDF, and also set metadata like author and title. Followed by a more advanced script to do all that an also set an owner password and access permissions… auto-magically. ...

31 Aug 2022

Global hotkeys for macOS with skhd

I’m never quite satisfied with the various methods of creating keyboard shortcuts (hotkeys) on macOS… Here I go again, this time using a small open source utility called skhd - a simple hotkey daemon for macOS. ...

26 Aug 2022

Browser support for HTTP/3 QUIC

It’s been over a year (or two) since three major browsers enabled HTTP/3 using the QUIC protocol over UDP. Chrome and Edge enabled HTTP/3 by default in April 2020 and Firefox followed “shortly after” in April 2021. I am not sure - does Safari in macOS Monterey 12.5, released July 2022, enable HTTP/3 by default? ...

31 Jul 2022

Script to re-map MacBook Pro function keys

In my last post, “Re-mapping physical function keys on MacBook Pros” I used the hidutil tool to re-map the function keys on a Mac without a touchbar. I’ve since created a script to more easily apply changes. ...

19 Jun 2022