Access to this dataset has been disabled

This content infringes our Content Policy - see https://huggingface.co/content-policy

Malfoid AI leftover catalog vs official live prices audit (Dataset Card v15, 2026-11-26)

Snapshot built November 26, 2026, around 18:22 CST (UTC+8), by the builder of malfoidai.com, an independent, unofficial studio for still Malfoid (Female Malfoy / Fem Draco) portraits. First-party audit of already-fetched public files, not an independent benchmark, and not a re-run of the 24 November policy-copy leftover audit (card v14). Dataset card v15.

Malfoid AI sells a still 3:4 1K portrait, from a photo or without, at $4.99 / 2 credits. Packs are $13.99/30, $35.99/100, $59.99/200, one-time, account required. There is no subscription. This dataset asks a narrower price question than card v14: does the leftover "What each meme costs" table on this stills-only studio still disagree with the other studios' own official pricing pages, and do the leftover "across 8 memes," "image or video at 480p," and "prices vary by model" lines remain on the public pages?

What was audited

catalog_live_audit.py reads the already-fetched bodies in the 26 November 18:22 live snapshot (no extra paid APIs, no extra network). Official comparison prices come from each studio's own pricing.md twin, except Tiny Desk Outstanding, whose pricing.md was HTTP 404 today; that row uses the visible https://tinydeskoutstanding.video/pricing/ page, including the 998 / 1,298 / 2,498 / 3,998 credit singles and the $19.96 / $44.98 / $69.98 / $119.98 packs. Each leftover single is compared on cash and on credits. Three copy flags are scored separately.

Results (17 records)

14 leftover singles, all compared. 10 cash prices agree, 4 disagree (both Bama Bound rows and both Tiny Desk Outstanding rows). 2 credit counts agree (the two Malfoid 1K rows, $4.99 / 2). 12 credit counts disagree. 2 rows agree on both cash and credits. 12 leftover singles. 3 copy flags, all leftover. The auditor exits 1 on this snapshot.

The leftover disagreements include:

  • Bama Bound 480p catalog $7.99 / 58 vs official $7.98 / 798; 720p catalog $9.99 / 126 vs official $9.98 / 998. Official also lists 1080p $16.98 / 1923 and 4k $24.98 / 3921, which the leftover table omits, and packs $22.99/3, $59.99/10, $99.99/20.
  • Hit the Road Dude 480p catalog $9.99 / 107 vs official $9.99 / 6; 720p catalog $12.99 / 235 vs official $12.99 / 14. Cash agrees, credits do not. Official packs $27.99/30, $71.99/100, $129.99/200.
  • Tiny Desk Outstanding 480p catalog $9.99 / 106 vs official $9.98 / 998; 720p catalog $12.99 / 231 vs official $12.98 / 1,298. Official also lists 1080p $24.98 / 2,498 and 4K $39.98 / 3,998, omitted from the leftover table, and packs $19.96/1,996, $44.98/4,990, $69.98/9,980, $119.98/19,960.
  • Paws at You 480p catalog $6.99 / 34 vs official $6.99 / 6; 720p catalog $8.99 / 75 vs official $8.99 / 13. Cash agrees, credits do not. Official packs $17.99/30, $47.99/100, $79.99/200.
  • Chipmunks Dance 480p catalog $9.99 / 107 vs official $9.99 / 1; 720p catalog $12.99 / 235 vs official $12.99 / 2. Official packs $27.99/3, $71.99/10, $133.99/20.
  • Check One Check Two 480p catalog $8.99 / 72 vs official $8.99 / 12; 720p catalog $10.99 / 157 vs official $10.99 / 26. Official packs $22.99/60, $59.99/200, $99.99/400.

The two Malfoid rows, from a photo and without, agree with this studio's official 1K SKU: $4.99 / 2 credits.

The three copy flags: the phrase "across 8 memes" appears 6 times across pricing.html and home.html; the homepage still contains "One finished image or video at 480p per run."; llms.txt still contains "Prices and required credits vary by model and settings; checkout refreshes the current quote."

Tests: 3 passed on this snapshot's counts and on the distinctive Bama / Malfoid rows.

Do not treat leftover catalog rows as those other studios' official prices. Official prices were re-checked on each studio's own pricing page, 26 November 2026, 18:22–18:23 Asia/Shanghai.

Malfoid AI Policy-Copy Leftover Audit 2026-11-24: Waffo Prompt-Check Text, Stills-Only Claims, and Short Markdown Twins

Snapshot built November 24, 2026, around 18:21 CST (UTC+8), by the builder of malfoidai.com, an independent, unofficial studio for still Malfoid (Female Malfoy / Fem Draco) portraits. First-party audit of already-fetched public files, not an independent benchmark, and not a re-run of the 18 November stills-copy audit or the 17 November price-source-drift audit. Dataset card v14.

Malfoid AI sells a still 3:4 1K portrait, from a photo or without, at $4.99 / 2 credits. Packs are $13.99/30, $35.99/100, $59.99/200, one-time, account required. There is no subscription. There is no video, no clip length and no soundtrack, and there is no prompt box. This dataset asks a narrower policy-copy question than card v13: do the public policy pages still leak a Waffo text-prompt check, video language, a "prices vary by model" line, or short markdown twins with a split date stamp, while the official stills SKU and the no-prompt-box sentences agree?

What was audited

policy_copy_audit.py reads the already-fetched bodies in the 24 November 18:21 live snapshot (no extra paid APIs, no extra network). Each JSONL row has source, field, value, expected, agrees, leftover, and fetched_at (plus byte counts on the twin-length rows). A row is a leftover when the value is policy or price-policy copy that does not match the stills / no-prompt / single-SKU contract β€” even if a different file on the same site already tells the truth.

Sources include pricing.md, the terms and FAQ visible text, the create page, faq.md, index.md, the acceptable-use HTML and its short markdown twin, llms.txt, and the refunds / privacy / terms HTML headers and markdown twins.

Results (26 claims)

26 claims: 17 agree, 9 disagree, 9 leftover flags. Every disagreement is a leftover flag. The official $4.99 / 2-credit SKU agrees across pricing.md, the terms visible sentence, the FAQ pack line, and the create page. The no-prompt-box contract agrees on faq.md, index.md, and the create page. index.md still has the stills sentence. The short acceptable-use.md twin does not repeat the Waffo leftover. llms.txt still opens with $4.99 each. The markdown twins are all Updated: 2026-10-31, and the HTML "About this page" blocks also show 2026-10-31.

The leftover disagreements are:

  • Acceptable-use HTML visible text: Only the final text prompt is checked through Waffo’s free text-check interface before a generation is submitted.
  • The neighbouring line: No additional media-review process checks uploaded or generated images or videos.
  • llms.txt: Prices and required credits vary by model and settings; checkout refreshes the current quote.
  • Refunds, privacy and terms HTML headers: Last updated 2026-10-26, against the markdown twins' Updated: 2026-10-31.
  • Short twins: privacy.md 372 bytes vs HTML 176165 (visible 8986); terms.md 361 vs 171387 (visible 5576); refunds.md 787 vs 169630 (visible 3054).

fetched_at is taken from the HTTP Date header of each file, converted to Asia/Shanghai. Pricing HTML, for example, is 2026-11-24T18:21:33+08:00. The auditor never re-fetches. If you re-run it on a later snapshot, use a new date in the filename and a new card section; do not overwrite this jsonl.

Why this is not a near-duplicate of v13 or v12

Card v13, copy_consistency_stills, scored stills-only copy (the homepage "image or video at 480p" sentence, video language, "8 memes," and a first pass at prompt-check / images-or-videos wording) and reported 30 claims, 14 agree, 16 disagree, 16 leftover flags, plus a JSON-LD Offer count. This audit does not re-score those 30 stills-copy claims and does not re-count JSON-LD Offers. It scores policy-page leftovers and short twins against a stills / no-prompt / single-SKU contract, with official price rows included only where they agree, as a baseline, and with measured byte lengths for privacy.md / terms.md / refunds.md.

Card v12, price_source_drift, walked dollar figures and credit counts across five price sources. This audit does not re-score those 49 price claims.

How to load it

from datasets import load_dataset
ds = load_dataset("conan123/malfoidai-guides", "policy_copy_leftover_audit")

The default config on this card is policy_copy_leftover_audit. Previous configs, including copy_consistency_stills and price_source_drift, remain and are not deleted. Auditor and tests: policy_copy_audit.py, test_policy_copy_audit.py. Data file: data/policy-copy-leftover-audit-2026-11-24.jsonl.

Malfoid AI Stills-Copy Leftover Audit 2026-11-18: Homepage 'Image or Video at 480p' vs index.md's Stills-Only Claims

Snapshot built November 18, 2026, around 18:23–18:24 CST (UTC+8), by the builder of malfoidai.com, an independent, unofficial studio for still Malfoid (Female Malfoy / Fem Draco) portraits. First-party audit of already-fetched public files, not an independent benchmark, and not a re-run of the 17 November price-source-drift audit. Dataset card v13.

Malfoid AI sells a still 3:4 1K portrait, from a photo or without, at $4.99 / 2 credits. Packs are $13.99/30, $35.99/100, $59.99/200, one-time, account required. There is no subscription. The pricing HTML says "Credits never expire." There is no video, no clip length and no soundtrack. This dataset asks a different question from yesterday's price audit: do the public pages agree that the product is stills only, or does leftover video copy still leak through?

What was audited

copy_consistency_stills.py reads the already-fetched bodies in live/raw/ (no extra paid APIs, no extra network). Each JSONL row has source, field, value, expected, agrees, leftover, and fetched_at. A row is a leftover when the value is catalog or policy copy that describes a video product, an "8-meme" pack, or another site's Offer β€” even if a different file on the same site already tells the truth.

Sources include index.md and faq.md (the stills contract), the homepage, about, FAQ, create, and compare HTML, terms and privacy leftover wording, llms.txt, the /pricing/ HTML and its JSON-LD OfferCatalog, and the 404 shells for llms-full.txt and /swarm-public-site-catalog.json.

Results (30 claims)

30 claims: 14 agree, 16 disagree, 16 leftover flags. Every disagreement is a leftover flag. The stills contract holds where it was written on purpose; the leaks are leftover copy.

The load-bearing leftover, on the homepage, is verbatim:

One finished image or video at 480p per run.

The same homepage also contains with no video, no clip length and no soundtrack. The auditor records both: the leftover pack-help line (agrees=false, leftover=true) and the stills FAQ line (agrees=true, leftover=false). A page can tell the truth and still leak.

index.md agrees with itself on all three of its rows: the no-video sentence, the still-1K sentence, and the absence of "image or video." faq.md, faq.html, and about.html also agree as stills-only pages. create.html and compare.html do not carry the 480p leftover sentence in this snapshot.

llms.txt still contains "Prices and required credits vary by model and settings; checkout refreshes the current quote." That is leftover price policy (both presets are $4.99 / 2 credits) and is flagged as leftover, not re-litigated as a full price-source table. Yesterday's price_source_drift config remains in this card for that work.

JSON-LD on /pricing/: raw=21, unique=17, malfoid=5, leftover=12. The five Malfoid Offers are the two 1K stills and the three credit packs. The twelve leftover Offers are Seedance 2.0 and other-site 480p/720p rows. Visible comparison names (Bama Bound, Hit the Road Dude, Tiny Desk Outstanding, Paws at You, Chipmunks Dance, Check One Check Two) are each their own leftover row. Pack cards still say "across 8 memes."

Terms leftover: "generates images or videos"; "Prompt text can be checked before generation." Privacy leftover: "images, videos or audio." Privacy HTML train / training hits: 0. The 404 shells for llms-full.txt and /swarm-public-site-catalog.json agree as missing endpoints, not as a second catalog.

Why this is not a near-duplicate of v12

Card v12, price_source_drift, walked five price sources (pricing.md, index.md, llms.txt, visible pricing HTML, pricing JSON-LD) and asked where a dollar figure or a credit count agreed. It reported 49 claims, 27 agree, 22 disagree, 21 leftover flags, and the same JSON-LD 5+12 split, because those leftover Offers are also wrong prices. This audit does not re-score those 49 price claims. It scores copy consistency for a stills-only product: video language, 480p leftover, "8 memes," "images or videos," a prompt-text check on a studio with no prompt box, and whether the privacy page even mentions training (it does not). The JSON-LD count appears once, as a catalog leftover, not as a row-per-Offer price table.

fetched_at is taken from the HTTP Date header of each file, converted to Asia/Shanghai. Home, for example, is 2026-11-18T18:24:04+08:00. The auditor never re-fetches. If you re-run it on a later snapshot, use a new date in the filename and a new card section; do not overwrite this jsonl.

A short reading of the 16 leftover disagreements: three on the homepage (the 480p sentence, "across 8 memes", "Use them on all 8 memes"), two on terms, one on privacy media-processing, one on llms.txt, and nine on the pricing HTML (the 8-meme parenthetical, the JSON-LD counts, the leftover Offer names, and six visible comparison rows). The 14 agreements are the stills contract in index.md, faq.md, faq.html, about.html, create, compare, the homepage stills FAQ, the privacy training-word count of 0, the llms.txt still-portrait opening line, and the two 404 shells.

That split is the story. The studio can describe itself correctly in Markdown and still hand a crawler a homepage sentence about video at 480p, and an OfferCatalog with twelve leftover video SKUs. This dataset is the row-level record of that fact, as of 18 November 2026, 18:24 CST.

How to load it

from datasets import load_dataset
ds = load_dataset("conan123/malfoidai-guides", "copy_consistency_stills")

The default config on this card is copy_consistency_stills. Previous configs, including price_source_drift, remain and are not deleted. Auditor and tests: copy_consistency_stills.py, test_copy_consistency_stills.py. Data file: data/copy-consistency-stills-2026-11-18.jsonl.

This is unofficial fan art documentation, not an official character source, and not a claim that leftover video rows are this studio's prices. The official still SKU is $4.99 / 2 credits. The leftover Offers are leftover.

Malfoid AI Price Source Drift 2026-11-17: pricing.md, HTML, JSON-LD, llms.txt and index.md β€” Where the Quotes Agree

Snapshot built November 17, 2026, around 18:22 CST (UTC+8), by the builder of malfoidai.com, an independent, unofficial studio for still Malfoid (Female Malfoy / Fem Draco) portraits. First-party audit of already-fetched public files, not an independent benchmark. Dataset card v12.

Short answer: the new default config, price_source_drift, has 49 rows (one claim per row) from a fetch of pricing.md, the /pricing/ HTML (visible Malfoid rows and leftover-SKU flags), the JSON-LD OfferCatalog on that page, llms.txt, and index.md. Each row records a source, a field, a value, the canonical expectation, whether it agrees, and whether it is a leftover SKU rather than a stale policy. It answers a question people ask before citing the studio: do the machine-readable price files actually agree?

They do not, not completely, and the disagreements come in two kinds. On this fetch 27 claims agreed with the canonical still list and 22 disagreed. 21 of the disagreements are leftover-SKU flags. The remaining one is a policy sentence in llms.txt. pricing.md itself agreed on all 9 of its claims; index.md agreed on all 4 of its.

Canonical still prices, quoted only from pricing.md and confirmed on the visible Malfoid rows (Updated 2026-10-31 for the Markdown list):

  • One still 3:4 1K portrait, from a photo or without: $4.99 / 2 credits.
  • Packs (account, one-time, do not renew): $13.99 / 30, $35.99 / 100, $59.99 / 200.
  • Pack maths: 15 / 50 / 100 Malfoid runs. HTML per-run $0.93 / $0.72 / $0.60, advertised save 81 / 86 / 88%. HTML: "Credits never expire." No subscription. Total on the button before pay.

The audit does not treat leftover video SKUs as official Malfoid still prices, and it does not name any hidden site-data model id.

What disagreed (verbatim kinds, not invented numbers)

1. The llms.txt policy sentence. The file's intro already says "$4.99 each." It also says: "Prices and required credits vary by model and settings; checkout refreshes the current quote." pricing.md does not vary. The row llms.txt / price_policy is the one non-leftover disagreement. The intro dollar amount, on the same file, agreed (intro_single_usd = 4.99). A checker that only greps for $4.99 will miss this.

2. Six leftover rows on the visible /pricing/ comparison table, plus a count row. Today's leftover names and the figures as they appeared (do not cite these as Malfoid stills): Bama Bound 480p $7.99 Β· 58 credits / 720p $9.99 Β· 126 credits; Hit the Road Dude 480p $9.99 Β· 107 / 720p $12.99 Β· 235; Tiny Desk Outstanding 480p $9.99 Β· 106 / 720p $12.99 Β· 231; Paws at You 480p $6.99 Β· 34 / 720p $8.99 Β· 75; Chipmunks Dance 480p $9.99 Β· 107 / 720p $12.99 Β· 235; Check One Check Two 480p $8.99 Β· 72 / 720p $10.99 Β· 157. leftover_visible_row_count = 6, expected 0.

3. Pack-card parentheticals. The three cards correctly say "about 15 / 50 / 100 Malfoid runs." They also say (0–15 across 8 memes), (0–50 across 8 memes), and (1–100 across 8 memes). The integers match 30/2, 100/2, 200/2. The "across 8 memes" ranges are leftover catalog copy and are flagged as such, not as a wrong run count.

4. The JSON-LD OfferCatalog. 17 unique Offer objects: 5 Malfoid, 12 leftovers. The five Malfoid offers agreed (two $4.99 / 2-credit singles, three packs at 13.99 / 35.99 / 59.99). The twelve leftovers include several "Seedance 2.0" 480p/720p rows and Check One Check Two / Chipmunks Dance rows at $6.99–$12.99. The offer_counts row records {malfoid: 5, leftover: 12, total: 17} against an expected {malfoid: 5, leftover: 0, total: 5}.

Home-page copy ("One finished image or video at 480p per run.") is a related still-open issue, documented in the day's ISSUES log; it is not a row in this jsonl, which is limited to the five price sources above. llms-full.txt was HTTP 404 (HTML shell) and /api/catalog returned 404 {"error":"This studio endpoint is not available."}; missing endpoints are not treated as a second price list.

Counts by source

source                  n  agree  disagree  leftover
pricing.md              9      9         0         0
index.md                4      4         0         0
llms.txt                3      2         1         0
pricing_html_visible   15      7         8         8
pricing_html_jsonld    18      5        13        13
total                  49     27        22        21

The visible-HTML "8 leftover flags" are the six table rows, the leftover row-count, and the across-8-memes parentheticals. The JSON-LD "13 leftover flags" are the twelve leftover offers plus the offer-count summary. Those two summary rows are flagged leftover because they record a leftover presence, not because they are themselves SKUs.

Fields (data/price-source-drift-2026-11-17.jsonl)

Field Type Meaning
id int 1-based row id in this snapshot
source str pricing.md, index.md, llms.txt, pricing_html_visible, or pricing_html_jsonld
field str What was read (for example price_policy, pack_30_credits, offer, leftover_table_row)
value any The extracted value (string, number, list, or object)
expected any The canonical still-list expectation
agrees_with_canonical bool True if this claim matches the still list
is_leftover_sku bool True if this is (or records) another product line's SKU, not a stale Malfoid policy
fetched_at str 2026-11-17 18:22 Asia/Shanghai (CST, UTC+8)
site str https://malfoidai.com/
name, price, description, meme, note optional Extra context on Offer rows and leftover table rows
from datasets import load_dataset
rows = load_dataset("conan123/malfoidai-guides", "price_source_drift", split="train")
dis = [r for r in rows if r["agrees_with_canonical"] is False]
print(len(rows), len(dis), sum(1 for r in dis if r["is_leftover_sku"]))
# 49 22 21

The verifier (price_source_drift.py)

The script reads already-fetched files from a --live-dir (no network of its own) and writes the jsonl. It is the same audit that produced the counts above.

rows, summary = audit(live_dir, fetched_at="2026-11-17 18:22 Asia/Shanghai (CST, UTC+8)")
# summary["n_claims"], summary["agree"], summary["disagree"], summary["leftover_flags"]
python price_source_drift.py \
  --live-dir /path/to/live \
  --jsonl data/price-source-drift-2026-11-17.jsonl

Six unit tests ship with it: pack maths 30/2, 100/2, 200/2; pricing.md agrees on every claim; llms.txt policy disagrees while its intro $4.99 agrees; JSON-LD has 5 Malfoid offers and 12 leftovers; the audit summary adds up; a jsonl round-trip preserves the disagree count. They passed.

A related, narrower contract test (fail a CI build when llms.txt contains vary-by-model language while pricing.md lists $4.99 / 2 credits) is staged separately and is not a config of this dataset.

The older configs are unchanged and carried forward, including yesterday's default perspective_selfie. This card is v12, with 14 configs (the new default plus the previous 13).

Previous default: perspective_selfie (2026-11-16)

Malfoid AI Selfie Perspective 2026-11-16: Close-Range and From-Below Distortion, 200 Simulated Captures, Landmark Ratios

Snapshot built November 16, 2026, around 18:00 CST (UTC+8), by the builder of malfoidai.com, an independent, unofficial studio for still Malfoid (Female Malfoy / Fem Draco) portraits. First-party measurements on synthetic images and a pinhole camera model, not an independent benchmark. Dataset card v11.

Short answer: the new default config, perspective_selfie, has 200 rows: each of 8 synthetic sitters Γ— 5 camera distances (2800, 1800, 1100, 750, 500 px) Γ— 5 pitches (0Β°, 10Β°, 20Β°, 30Β° from below, and βˆ’15Β° from above). Every row records projected landmark ratios β€” nose width over inter-ocular distance, jaw width over inter-ocular, forehead height over chin height, and how far down the face the nose sits. It answers a question people ask before uploading a selfie to a one-photo portrait generator: does a close camera or a selfie from below change the jaw and the nose?

The studio's photo guide says: "Hold the phone at eye level. A selfie from below changes the jaw and nose in ways that carry into the portrait." This config puts numbers on that sentence, and on the close-camera "big nose" effect, using the known landmarks of make_test_portrait.py (no new face renderer, no real faces, no AI). What they say (all computed by perspective.py):

  • A close camera enlarges the nose relative to the eyes. At pitch 0, median nose_over_iod goes 0.5238 (distance 2800, a far talking-distance) β†’ 0.5267 (1800) β†’ 0.5321 (1100) β†’ 0.5386 (750) β†’ 0.5493 at 500 px, a +0.0308 rise vs the unprojected drawing (56/108 β‰ˆ 0.5185). That's about a 5.9% relative increase far-to-close, from depth alone.
  • A selfie from below shrinks the forehead relative to the chin and widens the jaw. At distance 1800, median forehead_over_chin goes 0.8040 (level) β†’ 0.7821 (10Β°) β†’ 0.7620 (20Β°) β†’ 0.7442 at 30Β° (Ξ” βˆ’0.0686). jaw_over_iod goes 2.2253 β†’ 2.3076 (Ξ” +0.0947). From above (βˆ’15Β°) does the opposite: forehead/chin 0.8382, jaw/iod 2.1835.
  • The two stacked. Close (500) + 30Β° from below vs far (2800) + level: nose_over_iod 0.5725 / 0.5238 = 1.093, jaw_over_iod 2.5912 / 2.2209 = 1.167, forehead_over_chin 0.5778 / 0.8071 = 0.716. That's a 9% wider nose, a 17% wider jaw, and a forehead that's only 72% as tall, relative to the chin, as it was at a sensible distance and eye level.
  • nose_share (eyesβ†’nose / eyesβ†’chin) drops from below (0.2791 level β†’ 0.1420 at 30Β°, 0.1273 close+below) because the chin comes forward and takes more of the face. From above it rises (0.3422).

The older configs are unchanged and carried forward, including yesterday's default dark_selfie.

Medians over 8 sitters (verbatim output)

======== TABLE 1: medians over 8 sitters, pitch = 0 (camera distance only) ========
  dist  nose/iod    Ξ”nose  jaw/iod     Ξ”jaw fore/chin     Ξ”f/c nose_share
  2800    0.5238   0.0052   2.2209   0.0079    0.8071  -0.0057     0.2782
  1800    0.5267   0.0082   2.2253   0.0124    0.8040  -0.0089     0.2791
  1100    0.5321   0.0135   2.2333   0.0203    0.7983  -0.0145     0.2807
   750    0.5386   0.0201   2.2429   0.0299    0.7916  -0.0212     0.2828
   500    0.5493   0.0308   2.2581   0.0452    0.7812  -0.0317     0.2861

======== TABLE 2: medians over 8 sitters, distance = 1800 (pitch only) ========
 pitch  nose/iod    Ξ”nose  jaw/iod     Ξ”jaw fore/chin     Ξ”f/c nose_share
     0    0.5267   0.0082   2.2253   0.0124    0.8040  -0.0089     0.2791
    10    0.5290   0.0105   2.2537   0.0407    0.7821  -0.0307     0.2371
    20    0.5310   0.0125   2.2815   0.0685    0.7620  -0.0509     0.1926
    30    0.5326   0.0141   2.3076   0.0947    0.7442  -0.0686     0.1420
   -15    0.5228   0.0043   2.1835  -0.0295    0.8382   0.0253     0.3422

======== TABLE 3: close (500) + from below (30Β°) vs far (2800) + level ========
far+level    nose/iod=0.5238 jaw/iod=2.2209 fore/chin=0.8071 nose_share=0.2782
close+below  nose/iod=0.5725 jaw/iod=2.5912 fore/chin=0.5778 nose_share=0.1273
fold close+below / far+level: nose/iod=1.093 jaw/iod=1.167 fore/chin=0.716

Distances are in the same pixel units as the 768Γ—1024 design; 1800 px is about 3.5 face-heights in front of the 310-px-tall face oval, a rough talking distance. Positive pitch is a camera below the face, looking up. Ξ” columns are versus the unprojected design, not versus the far camera (the far camera still has a small depth effect).

The camera model

Each sitter's landmarks are the helper's own coordinates: eyes at (330, 389) and (438, 389), mouth at (384, 475), face oval 250–560, hair 150–760, plus two construction marks for nose width (56 px, on the midline between the eyes and the mouth β€” the drawing has no nose, so those two points are marks, not a drawn feature). Depths sit on a simple face plane: nose tip 40 px forward, jaw slightly forward of the eyes, forehead and hair back. A pinhole at distance d, focal length 1800, pitched around the face centre, projects every point. The recorded ratios are from those projected points. A plane-approximation warp of the drawing is optional (--save-warps) and is not in the jsonl.

Six unit tests ship with the script: the seed-1 face width is 0, the design nose/iod is 56/108, a far level camera stays close to baseline, a close camera enlarges the nose ratio, a +30Β° pitch shrinks forehead/chin and widens the jaw, and a βˆ’15Β° pitch does the opposite. They passed.

Fields (data/perspective-2026-11-16.jsonl)

Field Type Meaning
seed, fw int, float Sitter (1–8) and the helper's face-width offset
distance_px, pitch_deg, focal_px float Camera distance, pitch (positive = from below), focal length 1800
width, height int 768 Γ— 1024
inter_ocular, nose_width, jaw_width float Projected widths in px
forehead_height, chin_height, nose_height float Mid-eyes to forehead / chin / nose tip
nose_over_iod, jaw_over_iod, forehead_over_chin, nose_share float The four ratios
base_*, d_* float The same ratios on the unprojected drawing, and the signed difference
pts object Projected x,y for each named landmark
from datasets import load_dataset
rows = load_dataset("conan123/malfoidai-guides", "perspective_selfie", split="train")
close = rows.filter(lambda r: r["distance_px"] == 500 and r["pitch_deg"] == 30)
print(round(sum(r["nose_over_iod"] for r in close) / len(close), 4))

The script (perspective.py)

# Positive pitch_deg = camera below the face, looking up.
pts = project_points(xy, z, distance=distance, pitch_deg=pitch, f=1800)
rec = ratios(pts)  # nose_over_iod, jaw_over_iod, forehead_over_chin, nose_share
python perspective.py --out-dir work --jsonl data/perspective-2026-11-16.jsonl
python test_perspective.py          # 6 passed

The full script and the test are in this snapshot.

Previous config: dark_selfie (2026-11-14)

Short answer: 510 rows, 30 synthetic cards photographed by a simulated phone sensor in good light and at 1–4 stops under, then fixed four ways (brighten; brighten + NLM; brighten + bilateral; brighten + 3Γ—3 median). No fix beat the retake on SSIM (0 of 30 cards at every darkness, except a median filter that "won" 2 cards at 1 stop by flattening the hair). Brightening multiplied face noise 1.57 β†’ 5.60 at 4 stops and invented texture (hf_ratio 1.43). Denoisers traded noise for hair strands. The full v10 card, with the verbatim median table and dark_selfie.py, is at the 2026-11-14 revision of this README (dataset default at that date).

Previous config: placeholders (2026-11-13)

Short answer: the config placeholders, has 900 rows: each of the 30 synthetic test_cards Γ— 30 placeholder settings. A placeholder (LQIP, "low-quality image placeholder") is what a page shows in the 3:4 slot before the real portrait loads: one average colour, a BlurHash string, a ThumbHash, or a tiny WebP / AVIF / JPEG inlined as a data: URI. Every row has the payload itself, its size in the HTML attribute, whether it needs a JavaScript decoder, and how far the decoded placeholder is from the real picture in CIELAB (Ξ”E, whole frame and face / hair / tie boxes). It answers a question people ask when they put a portrait on a site: which placeholder should I use, and what does it cost?

What the numbers say on these cards (all computed by lqip_bench.py):

  • A 12–16 px WebP data URI is the best value if you can spend ~200–250 bytes. Median Ξ”E 8.8–9.3, against 15.9 for ThumbHash and 21.5 for BlurHash 3Γ—4, and it needs no JavaScript. On every one of the 30 cards, some tiny WebP beat ThumbHash's error; the cheapest one that did was a median 165 bytes (most often 8 px wide at q20).
  • ThumbHash beats BlurHash at the same size (45 vs 44 bytes in the attribute; Ξ”E 15.9 vs 21.5) and keeps the aspect ratio. But on these portraits it's worse on the hair (Ξ”E 32.5 vs 19.8): its luminance terms smear the platinum hair into the background.
  • BlurHash implementations disagree. The npm blurhash package (2.0.5) scales AC terms by the largest signed value; the C reference encoder uses the largest magnitude. With the npm rule, strong negative terms get clipped, and the placeholder was worse on 120 of 120 card Γ— size combinations (Ξ”E 27.7 vs 21.5 at 3Γ—4). Both produce valid strings; the difference is only in the encoder.
  • More BlurHash components help less than you'd think: 5Γ—7 (90 bytes) gets Ξ”E 19.8 vs 21.5 for 3Γ—4.
  • AVIF has a big fixed overhead at this size. A 16 px AVIF data URI is about 577 bytes vs 243 for WebP at similar error. At thumbnail sizes, AVIF's container costs more than its compression saves. Tiny JPEG is in between.
  • The average colour alone (26 bytes) is Ξ”E 30.6. Fine for a background, useless as a preview.

lqip.py (NumPy port of BlurHash and ThumbHash) was cross-checked against the npm packages (blurhash 2.0.5, thumbhash 0.1.1) with crosscheck_js.py: 37 of 38 cases identical. The full v9 card, with the cross-check output and the lqip_bench.py listing, is at README.md, revision 1b832a8.

Medians over 30 cards (verbatim output)

900 rows from 30 cards. Median over cards (dE = CIE76 vs the card box-filtered to 30x40).

placeholder               HTML B     dE    p90   face   hair    tie  JS?
avg                           26  30.62  50.63  41.05  49.31  32.70   no
blurhash 3x4 abs              44  21.47  37.60  18.86  19.75  23.14  yes
blurhash 3x4 ts               44  27.68  39.36  21.36  23.67  24.03  yes
blurhash 4x3 abs              44  21.50  37.84  20.45  18.73  22.95  yes
blurhash 4x3 ts               44  27.84  38.08  23.40  23.02  23.62  yes
blurhash 4x5 abs              60  21.16  37.45  18.50  19.29  23.96  yes
blurhash 4x5 ts               60  27.23  39.20  20.91  23.43  24.36  yes
blurhash 5x7 abs              90  19.76  37.31  14.15  16.94  23.57  yes
blurhash 5x7 ts               90  25.69  38.27  16.55  20.63  22.64  yes
thumbhash                     45  15.87  29.63  19.73  32.46  22.27  yes
tiny webp 8px q20            165  11.39  24.68  19.18  16.13  25.23   no
tiny webp 8px q40            177  10.81  22.43  16.27  16.30  25.10   no
tiny webp 8px q60            189  10.28  21.48  15.43  16.98  24.88   no
tiny webp 12px q20           173  10.27  20.43  14.19  12.59  26.31   no
tiny webp 12px q40           197   9.26  18.58  13.32  12.15  25.23   no
tiny webp 12px q60           213   8.74  18.20  12.00  11.96  26.03   no
tiny webp 16px q20           209  10.56  21.69  18.80  10.81  22.27   no
tiny webp 16px q40           243   8.81  19.76  14.72  11.13  20.97   no
tiny webp 16px q60           269   8.35  16.89  12.88  11.15  21.72   no
tiny webp 24px q20           253   7.25  14.37  12.79   7.60  20.55   no
tiny webp 24px q40           293   6.30  11.59   9.26   7.30  16.30   no
tiny webp 24px q60           333   5.62  11.25   8.81   6.77  15.79   no
tiny webp 32px q20           329   5.89  10.59   8.87   5.36  13.00   no
tiny webp 32px q40           399   5.18   9.57   8.31   5.13  10.63   no
tiny webp 32px q60           463   4.43   8.97   7.04   4.91  10.40   no
tiny avif 12px q40           557   9.14  18.48  12.90  11.44  25.37   no
tiny avif 16px q40           577   7.69  15.81  10.37   9.01  22.17   no
tiny avif 24px q40           657   5.60  10.66   7.07   6.78  15.72   no
tiny jpeg 16px q40           563   9.28  16.70  11.77  12.06  22.95   no
tiny jpeg 24px q40           641   6.67  12.85   9.75   8.64  19.82   no

BlurHash npm-style signed max vs C-reference abs max: worse on 120/120 card x size pairs, identical on 0
Cheapest tiny image beating ThumbHash's mean dE: median 165 B (30/30 cards); most common setting: webp 8px q20

Fields (data/placeholders-2026-11-13.jsonl)

Field Type Meaning
file_name, variant, seed string, string, int The test card (see test_cards below)
method string avg, blurhash, thumbhash, tiny
setting string e.g. 3x4 abs, 3x4 ts, webp 16px q40; empty for avg and thumbhash
params object cx, cy, max_mode (abs = C reference, ts = npm package) for BlurHash; format, width, quality for tiny images
needs_js_decoder bool True for BlurHash and ThumbHash
payload string The placeholder itself: hex colour, BlurHash string, ThumbHash base64 or the full data: URI
html_bytes int Length of the HTML attribute carrying it
de_mean, de_p90 float CIE76 Ξ”E vs the card on a 30 Γ— 40 grid: mean and 90th percentile
de_face, de_hair, de_tie float Mean Ξ”E inside the face box, hair box and tie box
encode_ms float Wall-clock time to make the placeholder on the build machine; compare only within this file

Settings: BlurHash is computed on the card box-filtered to fit 32 px (24 Γ— 32), ThumbHash on the card box-filtered to fit 100 px (75 Γ— 100), tiny images with Lanczos at the given width (WebP method=6, JPEG optimize=True, AVIF Pillow default speed). Pillow 13.0.

Previous config: encode_ladder (2026-11-12)

Short answer: the config encode_ladder has 1,320 rows: each of the 30 synthetic test_cards at 2 widths (768 px, the 1K 3:4 frame, and 384 px for a blog column) Γ— 22 encodes (JPEG q50–95, WebP q50–95, AVIF q40–90, lossless PNG and lossless WebP). Every row has the file size, bits per pixel, luma PSNR, whole-frame SSIM and SSIM over the hair box, because fine platinum strands are where compression shows first. It answers a question people ask before putting a portrait on a site or in a chat: what format and quality should I export, and how big will it be?

What the numbers say on these cards (all computed by encode_ladder.py). The target is median hair SSIM β‰₯ 0.98:

  • At 768 px: AVIF q60 β‰ˆ 36 KB, WebP q85 β‰ˆ 63 KB, JPEG q90 β‰ˆ 126 KB. All three reach the same hair quality. AVIF is about 3.5Γ— smaller than JPEG there, and lossless PNG is 172 KB.
  • At 384 px you need higher quality settings (JPEG q95, WebP q90, AVIF q80). Halving the width packs the strands closer together, so the same quality setting loses more of them. A small thumbnail exported at "q80 like the big one" looks worse than you'd expect.
  • AVIF's quality scale is steep. q40 β†’ q60 at 768 px goes from 0.93 to 0.99 hair SSIM, so don't copy JPEG numbers into an AVIF setting.
  • AVIF is the slowest: median 279 ms per 768 px encode here, against 45 ms for WebP and 4 ms for JPEG. That doesn't matter for one export, but it does for a batch job on every upload.
  • Lossless WebP is 36% smaller than optimised PNG (111 vs 172 KB) for an identical picture. If you need lossless (for example before further editing), WebP lossless is the cheaper archive.

Lowest quality reaching median hair SSIM β‰₯ 0.98 (verbatim output)

1320 rows from 30 cards. Per format: lowest quality whose MEDIAN ssim_hair >= 0.98, and median size there.

width 768px
  format         quality  median KB  median ssim  ssim_hair  worst hair
  jpeg                90      126.0       0.9765     0.9812      0.9757
  webp                85       63.4       0.9786     0.9865      0.9793
  avif                60       36.1       0.9906     0.9919      0.9754
  png                  -      172.1       1.0000     1.0000      1.0000
  webp_lossless        -      110.6       1.0000     1.0000      1.0000

width 384px
  format         quality  median KB  median ssim  ssim_hair  worst hair
  jpeg                95       44.0       0.9925     0.9906      0.9875
  webp                90       21.1       0.9894     0.9849      0.9799
  avif                80       18.0       0.9898     0.9845      0.9793
  png                  -      118.4       1.0000     1.0000      1.0000
  webp_lossless        -       76.5       1.0000     1.0000      1.0000

Fields (data/encode-ladder-2026-11-12.jsonl)

Field Type Meaning
file_name, variant, seed string, string, int The test card (see test_cards below)
width, height int Encoded size: 768 Γ— 1024 (native) or 384 Γ— 512 (Lanczos); square cards are 768 Γ— 768 / 384 Γ— 384
format string jpeg, webp, avif, png, webp_lossless
quality int or null Encoder quality (null for lossless)
bytes, bpp int, float File size, and bits per pixel
ssim float Gaussian SSIM (Οƒ 1.5) on Rec.601 luma, whole frame, vs the uncompressed image at the same width
ssim_hair float Mean of the same SSIM map over the card's regions.hair box
psnr_y float Luma PSNR in dB (99 = identical)
encode_ms float Wall-clock encode time on the build machine; compare only within this file

Encoder settings: Pillow 13.0, JPEG optimize=True with Pillow's default chroma subsampling, WebP method=4, AVIF speed=6 (Pillow's bundled libavif), PNG optimize=True.

The script is encode_ladder.py in the repo root (full listing and usage in the 2026-11-12 card revision).

Previous config: caption_contrast (2026-11-11)

Short answer: the config caption_contrast has 2,160 rows: each of the 30 synthetic test_cards x 9 caption placements (a 3x3 grid) x 4 text colours (white, black, silver #C0C0C0, tie green #1A5C34) x 2 treatments (no scrim, 50% black scrim). Every row holds the WCAG 2.x contrast ratio between the text colour and the pixels behind the caption box: the median and the 10th percentile (the darkest or brightest tenth, where letters actually get lost). It answers a question people ask before posting a portrait with a caption: where can the words go, and in what colour?

What the numbers say on these cards (all values computed by caption_contrast.py):

  • Top corners and top-centre: white or silver text passes AA (p10 >= 4.5) on 30 of 30 cards with no scrim (median p10 for white: 13.0-14.9). The dark corridor above the head is the safest caption area.
  • Bottom-left / bottom-right: white or silver passes on 28 of 30 (the 2 failures are the square cards, where the robe edge moves).
  • Middle-left / middle-right (beside the face): no colour passes without a scrim (white p10 1.35). The cell straddles the platinum hair and the dark background, so any single colour vanishes on one half. A 50% black scrim fixes it for white (p10 5.03, 30 of 30).
  • Bottom-centre (over the shirt and tie): nothing reliably passes, even white with a scrim (2 of 30). Don't caption over the tie.
  • Tie green as a text colour fails AA in every cell (median p10 1.0-2.8). The "house colour" is a fill colour, not a caption colour, on a dark portrait.

Share of cards passing WCAG AA (p10 >= 4.5) by placement (verbatim output)

2160 rows from 30 cards. Share of cards where p10 contrast >= 4.5 (WCAG AA, normal text):

scrim=none
cell              white   black  silver   green
top-left           100%      0%    100%      0%
top-centre         100%      0%    100%      0%
top-right          100%      0%    100%      0%
middle-left          0%      0%      0%      0%
middle-centre        0%    100%      0%      0%
middle-right         0%      0%      0%      0%
bottom-left         93%      0%     93%      0%
bottom-centre        0%      7%      0%      0%
bottom-right        93%      0%     93%      0%

scrim=black50
cell              white   black  silver   green
top-left           100%      0%    100%      0%
top-centre         100%      0%    100%      0%
top-right          100%      0%    100%      0%
middle-left        100%      0%      0%      0%
middle-centre      100%      0%      0%      0%
middle-right       100%      0%      0%      0%
bottom-left        100%      0%     93%      0%
bottom-centre        7%      0%      0%      0%
bottom-right       100%      0%     93%      0%

Fields (data/caption-contrast-2026-11-11.jsonl)

Field Type Meaning
file_name, variant, seed string, string, int The test card (see test_cards below)
width, height int Card size in px (768 x 1024, or 1024 x 1024 for square)
row, col string top / middle / bottom and left / centre / right
box list Caption box [x, y, w, h] in px: w = W/3, h = H/8; top edge at 3%, 43.75% and 84.5% of H
scrim string none, or black50 (background darkened by 50% before measuring)
text_colour string white, black, silver (192,192,192), green (26,92,52)
contrast_median, contrast_p10 float WCAG 2.x contrast ratio, text vs each background pixel: median and 10th percentile
background_luma_std float Std-dev of Rec.601 luma in the box (how busy it is), scrim none
aa_large_p10, aa_normal_p10 bool p10 >= 3.0 (AA large text) and p10 >= 4.5 (AA normal text)

The script is caption_contrast.py in the repo root.

Previous config: test_cards (2026-11-09)

What's in test_cards

Variant Cards What was done Expected gate verdict
clean 8 (seeds 1–8) Nothing. These are the golden batch. PASS
text 12 (seeds 9–20) One line of 4–9 nonsense capitals (14–34 px, slight rotation) pasted on the wall or the robe PASS (lettering isn't a drift property)
red_tie 3 Tie recoloured red (off-palette) FAIL
warm_hair 3 Platinum pushed toward yellow FAIL
square 2 1024 Γ— 1024 frame instead of 768 Γ— 1024 FAIL
soft 2 2x down, then bilinear back up (a soft upscaler) DRIFT or FAIL

All cards have thin hair-strand texture, so sharpness metrics behave like they would on a rendered portrait rather than on flat vector shapes.

Fields (data/test-cards-2026-11-09/metadata.jsonl)

Field Type Meaning
file_name string PNG in the same folder (the image column when loaded with datasets)
card int 1–30
variant string clean, text, red_tie, warm_hair, square, soft
seed int Seed for make_test_portrait.py (face shape and skin tone vary with it)
texture bool Always true in this snapshot
width, height int Pixel size
has_text bool True for the 12 lettering cards
text object or null text, font_px, box [x, y, w, h] in px, colour RGB, contrast (abs. luma difference between letters and the median of the box background, 0–255)
regions object Fractions of the frame for hair, tie, background [x0, y0, x1, y1], as used by the gate
face_box_px list Face ellipse bounding box [x, y, w, h], replayed from the drawing RNG
expected_gate string PASS, FAIL or DRIFT_OR_FAIL

Lettering contrast in this set: 10 cards between 140 and 215 (clearly visible) and 2 cards at 6 (near-black on near-black, hard to see even when enlarged).

Baseline results (verbatim)

== stray text (clean + text cards)
  false alarm card_02_clean.png
  missed card_11_text.png: 'GWFWCDTGB' 25 px, contrast 6
  missed card_15_text.png: 'TARCAD' 29 px, contrast 6
  missed card_19_text.png: 'WASOV' 30 px, contrast 143
  text found 9/12; clean cards flagged 1/8
== preset gate (each card alone vs the 8 clean cards)
  card_09_text.png           expected PASS          got PASS  (-)
  ...
  card_20_text.png           expected PASS          got PASS  (-)
  card_21_red_tie.png        expected FAIL          got FAIL  (tie_hue,tie_chroma)
  card_22_red_tie.png        expected FAIL          got FAIL  (tie_hue,tie_chroma)
  card_23_red_tie.png        expected FAIL          got FAIL  (tie_hue,tie_chroma)
  card_24_warm_hair.png      expected FAIL          got FAIL  (hair_b)
  card_25_warm_hair.png      expected FAIL          got FAIL  (hair_b)
  card_26_warm_hair.png      expected FAIL          got FAIL  (hair_b)
  card_27_square.png         expected FAIL          got FAIL  (aspect,tie_hue,tie_chroma)
  card_28_square.png         expected FAIL          got FAIL  (aspect,tie_hue,tie_chroma)
  card_29_soft.png           expected DRIFT_OR_FAIL got DRIFT (edge_step)
  card_30_soft.png           expected DRIFT_OR_FAIL got DRIFT (edge_step)
  gate matches expectation on 22/22 cards

(All 12 text cards PASS the gate; the elided lines are identical in form.)

What the baselines get wrong, and why that's useful

  • Two contrast-6 misses are near-invisible lettering. A detector that finds them is doing better than a casual human check, which matters if someone brightens or prints the picture.
  • The contrast-143 miss (WASOV) is visible lettering the baseline should catch. That's the interesting failure for anyone building a better detector.
  • The card_02 false alarm comes from hair-strand texture: some strand fragments pass the letter-size and even-stroke tests and line up. Real portraits will produce more of these (book spines, window frames).
  • square cards fail on tie colour too, because the tie box is defined in frame fractions and lands on the shirt in a square frame. Correct verdict, noisy explanation. A gate should be read top-down: aspect first.
  • The gate is easy on this set. Each defect is strong and single. Mild, mixed drifts are harder; build them with the make_cards.py helpers (recolour_tie, warm_hair) at smaller strengths.

Files

Path What
data/perspective-2026-11-16.jsonl 200 perspective rows (new, default config)
perspective.py + test_perspective.py Pinhole projection of the helper's landmarks; builds the rows and prints the summary; 6 pytest tests
data/dark-selfie-2026-11-14.jsonl 510 dark-capture rows (2026-11-14)
dark_selfie.py + test_dark_selfie.py Simulated camera, fixes and scoring; builds the rows and prints the summary; 3 pytest tests
data/placeholders-2026-11-13.jsonl 900 placeholder rows (2026-11-13)
lqip_bench.py Builds the rows from the test cards and prints the summary
lqip.py BlurHash + ThumbHash encoders/decoders (NumPy port), tiny data URIs, scoring, CLI
crosscheck_js.py + crosscheck_ref.mjs + test_lqip.py Port vs the npm packages under Node; 6 pytest tests with npm-made golden strings
data/encode-ladder-2026-11-12.jsonl 1,320 encode rows (2026-11-12)
encode_ladder.py Builds the encode rows and prints the summary
data/caption-contrast-2026-11-11.jsonl 2,160 caption-placement rows (2026-11-11)
caption_contrast.py Builds the caption rows and prints the summary
data/test-cards-2026-11-09/*.png + metadata.jsonl The 30 cards and labels (about 5 MB)
make_cards.py Rebuilds the cards exactly (fixed seeds)
make_test_portrait.py The shape-only drawing used for every card
stray_text.py Baseline 1: letter-like marks without OCR (OpenCV)
preset_regress.py + spec.json Baseline 2: batch drift gate (Pillow + NumPy)
eval_cards.py Runs both baselines on the cards
data/routes-2026-11-05.jsonl, data/pages-2026-11-05.jsonl, make_routes.py, build_corpus.py, route_eval.py Question routing set and BM25 baseline (2026-11-05)
data/facts-2026-11-04.jsonl, data/drift-2026-11-04.jsonl, verify_facts.py Dated facts with quotes and drift log; re-verified 2026-11-14 (30 of 30 OK)
data/review-rubric-2026-11-03.jsonl, data/answer-checks-2026-11-02.jsonl, data/records-2026-10-31.jsonl Unchanged

The evaluation script

#!/usr/bin/env python3
"""Run the two baselines on test_cards and print what they get right.

1. stray_text.py on the 20 clean + text cards: is there letter-like text?
2. preset_regress.py: golden = the 8 clean cards; every other card is
   checked alone (a batch of one) against it.

    pip install opencv-python-headless pillow numpy
    python eval_cards.py data/test-cards-2026-11-09
"""
import json, os, sys
import cv2
import preset_regress as pr
from stray_text import detect

d = sys.argv[1] if len(sys.argv) > 1 else "data/test-cards-2026-11-09"
rows = [json.loads(l) for l in open(os.path.join(d, "metadata.jsonl"))]
spec = json.load(open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "spec.json")))
P = lambda r: os.path.join(d, r["file_name"])

print("== stray text (clean + text cards)")
tp = fn = fp = tn = 0
for r in rows:
    if r["variant"] not in ("clean", "text"):
        continue
    found = detect(cv2.imread(P(r)))
    if r["has_text"]:
        x, y, w, h = r["text"]["box"]
        hit = any(not (b["box"][0] > x + w or b["box"][0] + b["box"][2] < x or
                       b["box"][1] > y + h or b["box"][1] + b["box"][3] < y) for b in found)
        tp += hit; fn += not hit
        if not hit:
            print(f"  missed {r['file_name']}: '{r['text']['text']}' {r['text']['font_px']} px, contrast {r['text']['contrast']}")
    else:
        fp += bool(found); tn += not found
        if found:
            print(f"  false alarm {r['file_name']}")
print(f"  text found {tp}/{tp + fn}; clean cards flagged {fp}/{fp + tn}")

print("== preset gate (each card alone vs the 8 clean cards)")
clean = [P(r) for r in rows if r["variant"] == "clean"]
golden = pr.batch(clean, spec)
ok = 0
checked = [r for r in rows if r["variant"] != "clean"]
for r in checked:
    worst, rep = pr.check(spec, golden, pr.batch([P(r)], spec))
    got = ["PASS", "DRIFT", "FAIL"][worst]
    exp = r["expected_gate"]
    good = got == exp or (exp == "DRIFT_OR_FAIL" and got != "PASS")
    ok += good
    flagged = ",".join(k for k, *_, res in rep if res != "PASS") or "-"
    print(f"  {r['file_name']:<26} expected {exp:<13} got {got:<5} ({flagged}){'' if good else '  <-- mismatch'}")
print(f"  gate matches expectation on {ok}/{len(checked)} cards")

Usage

from datasets import load_dataset
cards = load_dataset("conan123/malfoidai-guides", "test_cards", split="test")
print(cards[0]["variant"], cards[0]["image"].size)
pip install opencv-python-headless pillow numpy
python make_cards.py data/test-cards-2026-11-09   # rebuild (identical files)
python eval_cards.py data/test-cards-2026-11-09   # run both baselines
python verify_facts.py data/facts-2026-11-04.jsonl

To score your own text detector: for each card with has_text, a hit is any predicted box that overlaps text.box; for clean cards, any prediction is a false alarm. Report results by contrast band, since near-invisible lettering is a different problem from visible lettering.

Price facts in this snapshot

From the pricing page and pricing.md, re-read with curl on 2026-11-16 at 18:32 CST (UTC+8) (unchanged since the page's 2026-10-31 update):

  • One portrait: $4.99 from a photo or without one, 2 credits, no account needed. One still 3:4 picture at 1K. No watermark is added.
  • Packs (sign-in required, one-time, no renewal; the HTML page says "Credits never expire"): 30 credits $13.99, 100 credits $35.99, 200 credits $59.99 (the page shows $0.93, $0.72 and $0.60 per run).

Known caveats

  • Perspective: a constructed 3D stand-in, not a photographed face. Landmarks are the helper's ellipse / eye / mouth coordinates plus a pair of nose-width construction marks (the drawing has no nose). Depths are a simple face-plane model (nose forward, hair back). Ratios are from the projected points, not from a detector. Use the changes in the ratios, not the absolute nose/iod of ~0.52.
  • Perspective: weak-perspective residual. Even a "far" camera at 2800 px still has a small depth effect; the design-plane baseline is the unprojected drawing.
  • Dark selfie: the camera is a model. Real phones apply multi-frame noise reduction, tone curves and sharpening before you ever see the file, so a real dark selfie is often cleaner but smeared. The direction (brightening amplifies noise, denoising costs fine detail) holds; the exact numbers won't.
  • Dark selfie: one noise level per stop. Full well 3,000 e⁻ and read noise 3 e⁻ are plausible for a small phone sensor, not measured from any specific phone.
  • Dark selfie: "the studio reads noise as detail" is the site's own sentence. This file measures the noise and the extra texture in the input; it doesn't run any generator.
  • Placeholders: Ξ”E on a 30 Γ— 40 grid is a proxy. It measures how close the blurred preview is to a blurred version of the picture, not how pleasant the fade-in looks. Placeholders are meant to be blurry; compare them with each other, not with the real image.
  • Placeholders: bytes are pre-compression. Your HTML is probably gzipped or Brotli-compressed; base64 data URIs compress less well than BlurHash strings, so the gap narrows a little on the wire.
  • Placeholders: decoders cost bytes once per page, not per image. With many images on one page, BlurHash/ThumbHash get relatively cheaper.
  • Encode ladder: SSIM is luma only. Chroma loss (JPEG and WebP subsample colour) isn't in ssim/ssim_hair. The green tie can bleed slightly before the hair SSIM moves. Look at the tie at your chosen setting.
  • Encode ladder: synthetic cards compress unrealistically well. Flat shapes plus strand texture are kinder than a rendered portrait. Use the ranking, not the byte counts.
  • Encoder versions matter. AVIF and WebP results shift between libavif/libwebp releases and speed settings. This file is one build (Pillow 13.0).
  • Caption cells are fixed boxes (1/3 width x 1/8 height). A real caption is letter-shaped, so the p10 over the whole box is a conservative proxy for the pixels behind the letters, not a rendering test.
  • Contrast is computed per pixel against a flat text colour, without anti-aliasing, outlines or shadows. An outline or drop shadow changes the answer; a scrim is the only treatment measured here.
  • Synthetic is not real. Flat shapes plus strand texture are far easier than a rendered portrait. Numbers here are a smoke test for tooling, not a measure of how often real portraits contain lettering or drift.
  • Region boxes assume the fixed framing of these cards. On real portraits, recompute them from your own golden batch.
  • The labels are mine, generated by the same scripts that draw the cards. They're exact for what was drawn, but "expected gate verdict" reflects my tolerances in spec.json.
  • Small: 30 cards. Rebuild more with make_cards.py by extending PLAN.

License and attribution

CC BY 4.0 for data and card text; scripts MIT. Malfoid is unofficial fan art. malfoidai.com is independent and not affiliated with any book, film, studio or author. See the site's FAQ, guides and llms.txt.

Downloads last month
745