An unofficial, read-only Hacker News reader. Join the beta →

PenGPT: A Generative Transformer for Handwriting and Sketches (opens external site)

407 points by smusamashah 3 days ago | greydanus.github.io | 78 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. It's cool, and on the face of it looks impressive (there's a lot of diversity in styles) but I noticed a "tell" that once you see it, is really obvious. Lots of straight lines (Is, Ls, Fs, As, Ms, etc) have wobbles in them that look artificial. There's something about lines that this didn't capture correctly (or oversampled from someone with wobbly lines).
    Replies (2)
    1. I think at least some of the wobbles are aliasing due to quantizing to a grid.
      Replies (1)
      1. Yeah. Vertical lines like on h or d is fine, but slanted lines like in f is wobbly (all lowercase)
    2. Author here.

      Using a less fine grid was huge for getting the compute time down (and thus the iteration / debugging time down - ultimately to about 5 minutes). This helped me try a lot of different things.

      Finer grid -> quite a lot more tokens per stroke -> more longer context -> more compute (increasing nonlinearly).

      So I pushed it to the coarsest grid I could get away with. Light post-processing can actually remove the grid artifacts pretty easily, so that can be added if needed. In the future I'll probably just train my FINAL model on a slightly finer grid.

      Thanks for the feedback

      Replies (1)
      1. Wobbliness mostly fixed now with a slight processing hack (https://github.com/greydanus/pengpt/pull/1)