Houjun Lab
Houjun Lab / Local image generation
Research project · image generation · editing

A good-looking image
is not a correct one.

Concept art, product drafts, illustrations and posters can be made on your own machine, with nothing uploaded and nothing billed per image. We tested an open 4-billion-parameter image model on one Mac, judging every result by whether it did what was asked rather than by how good it looked.

Results Code on GitHub CompletedFinal results below · September 2026.

The answer, in three numbers

55 sper 1024×1024 image, at about 8 GiB of memory with no swapping
1 : 1byte-identical images from the same prompt, seed and settings
5 ≠ 3lanterns in the first, beautiful picture that asked for exactly three

What this means for real work

Good for drafts and exploration in-house; final assets still need a person and, often, ordinary editing tools.

Drafts without uploads

Product images and unreleased designs stay on your machine, and there is no charge per image.

Repeatable on demand

The same seed and settings give the same image exactly, so a chosen draft can be reproduced and refined.

Check requirements, not beauty

Counts, spelling and placement must be checked one by one. A striking image can still be wrong in exactly the detail the client asked for.

Masks say where, not what

For edits where everything else must stay untouched, protect those pixels with ordinary compositing rather than trusting the model.

How it works

Each phase fixed its prompts, seed and pass rule before generating.

  1. Build and verify

    A Metal build, three model files at pinned revisions with their SHA-256 checked, and repeat runs for identical output.

  2. Follow instructions

    Count, colour, position and short text, first in isolation, then in more complex scenes.

  3. Edit

    One-reference and two-reference edits, text replacement, and masked refinement.

  4. Sizes and errors

    Four sizes and orientations for time and memory, and four kinds of failure for correct error codes.

Results

In one paragraph

A 4-billion-parameter image model made a 1024×1024 picture in about 55 seconds on one Mac, using about 8 GiB of memory, and the same settings gave the same image to the last byte. Simple, single requirements (count, colour, position, a short word) were followed; the very first picture asked for three lanterns and got five, and asked for "AI LAB" and wrote "AI LLAB". Editing worked when the change was small and failed in instructive ways when a mask was asked to do too much.

How to read the numbers

Times are wall-clock, from start to saved file, with the model already cached on disk. Every judgement of whether an image followed the prompt was made by a person, sometimes with OCR for text, not by how good it looked.

1. Speed and size

Seconds per image by size

Seconds per image by sizeBars. 512 by 512: 27 seconds. 768 by 768: 37. 1024 by 768 and 768 by 1024: 47. 1024 by 1024: 55. 0 20 40 60 512 × 512 27 s 768 × 768 37 s 1024 × 768 or 768 × 1024 47 s 1024 × 1024 55 s seconds, 4 steps, start to saved file

All sizes peaked at 7.5–8.1 GiB of memory with no swapping. The same seed at a different size gives a different picture, not a rescaled one, so each format has to be checked on its own.

2. Good-looking is not correct

  • The first picture asked for exactly three paper lanterns and a sign reading AI LAB. It was beautiful, with five lanterns and a sign reading AI LLAB.
  • Isolated tests passed. Three apples; red, green and blue cups in a row; left and right placement; the words LOCAL AI: each correct when it was the only requirement.
  • Detailed photographic prompts controlled colour, lighting, depth of field and how a cup was held, but did not fix anatomy or realism by themselves.

3. Editing: where it helps, where it breaks

Editing tests
EditTimeResult
Change one object’s colour (one reference)121 s (about 2.1× a new image)Worked; the rest looked unchanged but was not identical pixel for pixel
Take a green cup from one photo and place it in another scene (two references)177 sPicked the right cup and blended it naturally; exact placement failed
Strong edit inside a mask112 sFailed: the masked area became a counter and a shop assistant

The strong mask edit is the most useful failure: asked to blend a cup into a selected area, the model filled the area with a counter and a shop assistant instead. A mask controls where the image may change, not what the model puts there. When the rest of the picture must stay exactly as it was, ordinary image compositing has to guarantee it.

4. It fails safely

Unknown options, a missing model, a missing reference image and a failed save all returned an error code, so scripts and apps calling it will not treat a failure as a finished image.

Limits

What these results do not show.

  • Each test used one prompt and seed. They show what can go wrong, not how often.
  • The model is a 4-step distilled version at 4-bit precision; higher-precision weights were not compared.
  • Success rates fall as scenes get more complex; a single success does not show reliability.

Code and licence

The study's scripts, test material, raw measurements and phase reports are open source under the Apache License 2.0, as part of the AI-Lab repository. Model weights are not included; each keeps its publisher's licence and is downloaded separately at a pinned revision with a checked SHA-256. See the licence page.