diffusion.pdf

A Diffusion Image Model Embedded Entirely in a PDF File

Working when we checked on .

Visit diffusion.pdf

What is diffusion.pdf?

diffusion.pdf is an experimental project that embeds a 55-million-parameter denoising diffusion model entirely inside a PDF file, generating ASCII-art doodle images with no external API calls. It is aimed at tinkerers and developers curious about pushing the PDF spec and running neural networks in browsers. The model was trained on roughly 327,500 drawings across 131 doodle categories from Google's Quick, Draw! dataset, reaching 0.874 class accuracy. Output renders as 28 rows of inverted ASCII text so images show clearly on a white background, and it is a fork of Evan Zhou's llm.pdf.

diffusion.pdf pricing

Pricing model: Free

Free / Open Source

diffusion.pdf pros

  • Runs a full diffusion model inside a PDF with no API calls
  • Trained on 327,500 drawings across 131 doodle categories
  • 0.874 class accuracy; 55,403,136 int8 parameters
  • Free and open source on GitHub
  • Works in Chrome and other Chromium browsers
  • Generation seeded from current time for noise

diffusion.pdf cons

  • No Safari or Firefox support; requires a Chromium browser
  • Requires at least 75MB of storage (PDF is 75-78MB)
  • Only 131 known objects; other inputs map poorly to known objects
  • Slow at roughly 15.3 seconds per image

Frequently asked questions about diffusion.pdf

What is diffusion.pdf?

It is a PDF file containing a 55-million-parameter denoising diffusion model that generates ASCII-art doodle images entirely inside the PDF, without any external API calls. It is a fork of EvanZhouDev's llm.pdf project.

Which browsers does it work in?

It requires Chrome or another Chromium browser. Safari and Firefox are not supported.

How fast does image generation run?

It takes about 1.8 seconds per step on the author's M5 MacBook Air in Chrome, or roughly 15.3 seconds per image at 58M MAC/s.

What data was the model trained on?

The model was trained for 45 epochs on about 327,500 drawings from Google's Quick, Draw! dataset of doodle images, with a final loss of 0.2476 and 0.874 class accuracy.

How many things can it generate?

It knows 131 doodle categories. If the input is not one of these known objects, the model attempts to map it to a known object, with poor results.

Why is the output ASCII art?

PDF form fields made it easier to render the drawing as 28 rows of text. The generation is inverted so it displays well against a white background.

How big is the PDF file?

The PDF is about 75MB in size, so users need at least 75MB of free storage.

Is it free?

Yes, it is a free project, and the source code is available on GitHub under vandorena/diffusion.pdf.

Who created diffusion.pdf?

It was built by Alex Van Doren, a developer behind Hack Club's Stardance Challenge and an incoming Brown University freshman, based on Evan Zhou's llm.pdf.

Where does the random noise come from?

The noise is generated using the current time, which the author describes as the only way to get something noisy from within a PDF.

Categories

Use cases

Alternatives to diffusion.pdf

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z