# 用神经网络为所有字体做嵌入会产生一些漂亮结构（包括一朵花）\[P\]

- 原标题：Embedding Every Font with Neural Networks makes some Nice Structures \(including a flower\) \[P\]
- 类型：帖子
- 来源：Reddit
- 发布时间：2026-10-06
- 首次精选：2026-11-02 01:09
- 分级：值得看
- 原文链接：[https://reddit.com/r/MachineLearning/comments/1wypbnf/embedding\_every\_font\_with\_neural\_networks\_makes](<https://reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes>)
- 本站页面：[https://oplearnx.com/resources/pk\_c4d2d526d1c3](<https://oplearnx.com/resources/pk_c4d2d526d1c3>)

## 摘要

r/MachineLearning 社区帖子。作者为做字体搜索工具，用预训练神经网络把每个字体中的字形转成图像并编码为表示该字体视觉特征的嵌入，再用 tSNE 把嵌入降维到 XYZ 与 RGB 通道并可视化成点云，位置或颜色相近的字体共享视觉特征，可看到不同字体的簇与路径。作者在 Google Fonts 语料上生成的图呈现出类似花朵的形状，多数手写体落在花蕊位置；帖中还给出可视化站点和代码仓库链接。适合在做嵌入可视化、字体检索或表示学习的人阅读。

## 原帖

> The Google Fonts corpus resembled a flower in ways I was not prepared for. It even placed most of the cursive fonts in the stamen.

— Chroma-Crash · 2026-10-06 · [原帖](<https://reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes>)

## 中文大意

发帖人用约一年时间做字体搜索工具，核心是预训练神经网络为每种字体生成 embedding：把字体中每个字形转成图片，输入自训练的神经网络得到代表其视觉特征的向量；再用 tSNE（效果优于 PCA 和 UMAP）压到 XYZ 与 RGB 通道，以点云可视化，位置或颜色相近的字体视觉特征相近，可看到不同字体类型的聚类与路径。他用 Google Fonts 语料做的图意外呈现花朵形状，且多数手写体（cursive）落在花蕊位置；另做了一个覆盖其网站可搜索全部字体的版本，并给出在线地图与 GitHub 仓库链接。适合对字体设计、embedding 与数据可视化感兴趣的人阅读。

## 讨论区核心观点

依据 8 条评论。

- 手写体自然聚成花朵的花蕊部分，被多位回复者认为非常惊人，称赞项目有创意。（[出处](<https://www.reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes/pedwbjv/>)）
- 有人问可视化用了什么库，发帖人回答是 Python 的 Plotly。（[出处](<https://www.reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes/pe792ll/>)）
- 有评论指出 tSNE 不是确定性的（结果会随运行变化）。（[出处](<https://www.reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes/ped7t0f/>)）
- 有回复建议把可视化发到 r/dataisbeautiful，认为那边的人会喜欢。（[出处](<https://www.reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes/pez03wl/>)）
- 发帖人补充：最近一次预训练用了 LeVJEPA，但该设置没有 predictor 模型，实际相当于一种 latent autoencoder；早期模型还曾用辅助任务以另一种方式生成两种字体，详见网站 About 页。（[出处](<https://www.reddit.com/r/MachineLearning/comments/1wypbnf/embedding_every_font_with_neural_networks_makes/pebbsde/>)）

## 原文涉及

- [GitHub - dylan-berndt/Briefcase: Font -\> Style embedding task including novel pretraining tasks. Inspired originally by http://tom7.org/lowercase/](<https://github.com/dylan-berndt/Briefcase>)

---
来源：LearnMap · 学径（https://oplearnx.com）
