Potpov/grimoire-figr8
Grimoire — FIGR-8 (processed / final training data) The final, post-processed FIGR-8 training data for the Grimoire SVG pipeline. Shipped processed because regenerating it from the raw FIGR-8 corpus (convert + deepsvg normalize + tokenize) is painful. ⚠️ Split differs from the paper. The paper describes a 427K-sample, 1,000-class, 90/5/5 subset (that split file is datasets/make_font/figr8_final_paper_split.csv in the code repo), but it is not reproducible from code (the class… See the full description on the dataset page: https://huggingface.co/datasets/Potpov/grimoire-figr8.
Grimoire — FIGR-8 (processed / final training data)
The final, post-processed FIGR-8 training data for the Grimoire SVG pipeline. Shipped processed because regenerating it from the raw FIGR-8 corpus (convert + deepsvg normalize + tokenize) is painful.
⚠️ Split differs from the paper. The paper describes a 427K-sample, 1,000-class, 90/5/5 subset (that split file isdatasets/make_font/figr8_final_paper_split.csvin the code repo), but it is not reproducible from code (the class selection / spelling fixes / seed are not in the repo). The split shipped here — and used to train the released checkpoints — is 373,388 samples, 16,486 classes, 80/10/10 (convert_figr8.py, per-classtrain_test_split(test_size=0.1, random_state=42)).
Contents
svgs_simplified.tar.gz— the deepsvg-normalized SVG corpus (374,992*.svg), the input for stage-1 (VSQ) training.figr8_vsq_split.csv— ready-to-use VSQ split (columnssimplified_svg_file_path,class,description,split); paths are relative to the extractedsvgs_simplified/. 99.6% of SVGs carry their real class + description.tokenized/tokenized.npy— precomputed VSQ token sequences for stage-2 (ART) training.tokenized/split.csv— train/val/test split + text; rows index intotokenized.npyviaindex_in_numpy_array.
Grimoire dataset family — recap
Usage
- Stage 1 (VSQ) — plug and play:
tar xzf svgs_simplified.tar.gzand train onfigr8_vsq_split.csv(dataset keyfigr8, mlp decoder,num_segments=4,num_codes_per_shape=2,lseg=5.0,alpha=0.1). - Stage 2 (ART) — ready to train on
tokenized/{split.csv,tokenized.npy}with the stage-1 VSQ checkpoint from Potpov/grimoire-checkpointsfigr8/vsq.
Re-tokenize with scripts/tokenize_svg_dataset.py if you retrain the VSQ.
