Skip to content

Instantly share code, notes, and snippets.

View pangyre's full-sized avatar

Ashley Pond V pangyre

View GitHub Profile

Z-Image AI: Free Fast S3-DiT Image Generator

Z‑Image Turbo is a bit different from “classic” Stable Diffusion, so a lot of old prompting habits don’t quite apply. I’ll walk through how to prompt it deeply and safely, with special focus on controlling content (nudity, stereotypes, unwanted artifacts) even though the model does not support traditional negative prompts at all. ([Hugging Face][1])


1. How Z‑Image Turbo thinks (and why “negative” prompts don’t work)

Key facts that matter for prompting:

@pangyre
pangyre / gist:fe0688a40993a0deee9a84f99c98a04d
Last active June 16, 2019 18:51 — forked from pjlsergeant/gist:2556399
Concise map-reduce in Perl
#!/usr/bin/env perl
use strictures;
use List::Util "reduce";
use Path::Tiny;
use YAML;
# Given a list of filenames, return a hash of each word and the number
# of times it occurs.
my $reduced = word_count(@ARGV);