Fast Stable Diffusion using Core ML on M1

Recently (around 14 December 2022), Apple’s Machine Learning Research team published “Stable Diffusion with Core ML on Apple Silicon” with Python and Swift source code optimized for Apple Silicon (M1/M2) on Github apple/ml-stable-diffusion. Here I’m trying it out on a MacBook (though the code also works on iPhones and iPads)… ...

18 Dec 2022

Lock Screen "Launcher" Widget with Scriptable

iOS 16 introduced new lock screen widgets! Rather that installing various third party widdgets, I want to create my own using Scriptable. Here is a simple “universal” widget to launch an application or a Shortcut (bonus: or even the home screen too!) ...

2 Dec 2022

Disabling macOS Print Job History Files

Did you know the macOS Printer service (Common UNIX Printing System, or CUPS) keeps a copy of every single print job ever? Here’s how to change this default behaviour. ...

11 Nov 2022

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

iOS 12.5.6 for 8-9 year old iPhones!

Last Wednesday, August 31st 2022, Apple released iOS 12.5.6. This Security Update fixes a WebKit vulnerability that “may have been actively exploited.” Users of newer devices will not care, but I cannot overstate how significant this is as a demonstrable commitment to security. ...

4 Sep 2022