A simple desktop clock that displays the time using pieces of pizza.
- Stable Diffusion to generate clock faces π
- NixOS to generate the OS image for the Raspberry Pi Zero 2 W. βοΈ
- SolidPython (OpenSCAD) to model the case. π
- Astro + React to build the clock app, hosted on GitHub Pages. π
.
βββ README.md # This file.
βββ case/ # 3D-printable case. (OpenSCAD, SolidPython)
βββ pizza_generator/ # Pizza image generator. (Stable Diffusion, LLM)
βββ rpi_image/ # Raspberry Pi Zero 2 W image (NixOS)
βββ webui/ # SSG site (Astro, React)To generate an image with the correct number of pizza slices, a two-stage workflow is used.
Stage 1: An image is generated using a relatively strong ControlNet guide strength with an artificially-generated segmentation map. The result tends to be correctly positioned but less realistic.
Stage 2: A depth map of the stage 1 image and the same segmentation map are used to guide image generation, but with a relatively weak ControlNet guide strength. This allows us to obtain a correctly positioned and highly realistic image.
A similar approach can be used to generate images of other "circular objects." An LLM generates a prompt for a Stable Diffusion model. This prompt, along with a segmentation map, is then used as input to generate the image.
pc_hd_greenman_crop.mp4
MIT








