Skip to content

likeablob/pizza-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pizza Clock

A simple desktop clock that displays the time using pieces of pizza.

Project structure

.
β”œβ”€β”€ 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)

How to generate a pizza image

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.

Photos

pc_cmatrix_slow_crop_s.mp4
pc_pizza12p_dog_crop.mp4
pc_hd_greenman_crop.mp4

LICENSE

MIT

About

πŸ•πŸ•πŸ•

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published