概述
模型学习的是手在表面的外观,而没有可靠地学习其结构,例如每只手有五根手指。手部错误已成为合成图像的知名标志,理解其发生原因既解释了新模型如何改进,也解释了为什么数手指不再是识别假图的可靠方法。
深入探讨
Diffusion models learn from billions of image-caption pairs by learning to reverse added noise. They become very good at local visual patterns: skin texture, lighting, the general look of a hand. What they never receive is an explicit rule that a hand has five fingers joined to a palm in a particular order. Several factors make hands hard. Hands take up a small part of most photos, so they get few pixels. Latent diffusion models such as Stable Diffusion also shrink images by a factor of eight in each dimension before generating, which can leave a hand only a handful of latent cells. Hands take an enormous range of poses, grip objects, overlap each other and are often partly hidden, so the training data is full of incomplete views. Fingers look alike, so a model producing 'finger, finger, finger' has no strong signal telling it when to stop. Captions almost never mention hands, let alone their pose, so the prompt offers little guidance. The result is a set of familiar errors: extra or missing fingers, fused digits, thumbs on the wrong side, and hands melting into objects or other people. Teeth, ears and jewelry go wrong for similar reasons. Newer systems have reduced these failures. Larger models, higher training resolutions, better filtered and captioned data, transformer-based architectures and fine-tuning on human preference ratings all helped. Midjourney's version 5 in 2023 was widely noted for better hands, and later models from several labs improved further. Errors have not disappeared, though, especially in complex poses, crowds and hands holding things. A common misconception is that the model 'cannot count'. It is more accurate to say it learns appearance statistically, and correct structure emerges only when the data and model capacity are sufficient.
现实世界的实施
一张早期的 Stable Diffusion 肖像显示某人手持咖啡杯,六根手指环绕着杯子,这是模型在融合许多重叠的抓握姿势时常见的失败案例。
旧模型中的一组场景将两个人接触部位的手融合在一起,因为模型对一个人的身体在哪里结束、另一个人的身体在哪里开始没有明确的概念。
艺术家将基于自己手部照片生成的 ControlNet OpenPose 或深度图输入模型,以强制生成正确的姿势,然后对剩余的错误进行重绘。
事实核查员指出,一张疑似伪造的图片中手部完全正常,这提醒我们,较新的生成器通常能正确绘制手部,需要其他线索来判断真伪。
AI 图像生成器为何会画错手的未来
随着模型规模扩大和训练数据改进,手部错误可能会继续减少,但不寻常的姿势、交缠的手以及操作物体的手仍然比简单的张开手掌更难处理。视频生成增加了该问题的新版本,因为手指必须在帧与帧之间保持一致。对于任何判断真实性的人来说,手部检查是一个微弱的信号。畸形的手仍然暗示图像是生成的,但正确的手什么也证明不了。来源记录和水印比检查解剖结构更可靠。
付诸实践
为什么这很重要
- 速度与规模. 视觉人工智能可以大规模自动化检查、检测和标记任务。
- 构建选择. 创意团队可以通过更少的手动修改更快地构建概念原型。
- 团队与工作流程. 操作可以使用以前难以处理的图像和视频信号。
留意
- 如果出处不明,肖像权和同意可能会成为法律风险。
- 模型性能可能因光照、人口统计和环境的不同而有所不同。
- 除非监控置信阈值,否则误报可能会被忽视。
后续步骤
- 定义精确度、召回率和错误成本的接受标准。
- 使用符合实际生产条件的数据进行测试。
- 为低置信度或高影响力的预测添加人工审核。
- 跟踪模型漂移并在相机或数据集更改后重新验证。
不断探索
常见问题
什么是“AI 图像生成器为何会画错手”?
AI 图像生成器会画错手,因为手很小、高度灵活、经常部分遮挡,且很少在字幕中被描述。模型学习的是手在表面的外观,而没有可靠地学习其结构,例如每只手有五根手指。手部错误已成为合成图像的知名标志,理解其发生原因既解释了新模型如何改进,也解释了为什么数手指不再是识别假图的可靠方法。
根据指南,扩散模型主要从图像-字幕对中学到什么?
模型学习事物在统计上的外观。训练中没有任何内容给它们提供手有五根手指的明确规则。
Stable Diffusion 中的潜在压缩为何使手部更难绘制?
一只在每一维度上缩小八倍的小手,最终用于表示五根不同手指的空间非常有限。
为什么字幕对模型绘制手部帮助不大?
如果没有描述手部姿势的文本,模型就无法将提示词与手部结构联系起来。
指南说哪一版Midjourney在2023年因更好的手部表现而被广泛关注?
Midjourney的5版,于2023年发布,因改进的手部表现而被广泛关注,属于更大规模和更好数据的更广泛趋势的一部分。
ADetailer风格的检测-重绘工作流程是做什么的?
放大裁剪区域会在再生过程中为手部提供更多潜在细胞,从而改善其结构。