2025-12-04 · 专家 · 计算机视觉 · 自然语言处理 · 机器学习

CookAnything: A Framework for Flexible and Consistent Multi-Step Recipe Image Generation

CookAnything提出了一种基于扩散模型的灵活且一致的食谱图像生成框架,能够根据任意长度的文本烹饪指令生成连贯的、语义上区分的图像序列。

更新于 2025-12-05。作者:Ruoxuan Zhang、Bin Wen、Hongxia Xie、Yi Yao、Songhan Zuo、Jian-Yu Jiang-Lin、Hong-Han Shuai、Wen-Huang Cheng。

中文摘要

烹饪是一种顺序性和视觉基础的活动,其中每个步骤,如切、拌或炸,都包含程序逻辑和视觉语义。尽管最近扩散模型在文本到图像生成方面显示出强大的能力,但它们在处理结构化的多步骤场景,如食谱插图方面存在困难。此外,当前的食谱插图方法无法适应食谱长度的自然变化,无论实际指令结构如何,都会生成固定数量的图像。为了解决这些限制,我们提出了CookAnything,这是一个灵活且一致的基于扩散的框架,能够从任意长度的文本烹饪指令生成连贯、语义上独特的图像序列。该框架引入了三个关键组件:(1)步骤区域控制(SRC),它在一个去噪过程中将文本步骤与相应的图像区域对齐;(2)灵活的RoPE,一种步骤感知的位置编码机制,增强了时间上的连贯性和空间上的多样性;(3)跨步骤一致性控制(CSCC),它维护了步骤间细粒度的成分一致性。在食谱插图基准测试上的实验结果表明,CookAnything在基于训练和无训练设置中均优于现有方法。所提出的框架支持可扩展、高质量的复杂多步骤指令的视觉合成,并在教学媒体和程序内容创作中具有广泛的应用潜力。

英文摘要

Cooking is a sequential and visually grounded activity, where each step such as chopping, mixing, or frying carries both procedural logic and visual semantics. While recent diffusion models have shown strong capabilities in text-to-image generation, they struggle to handle structured multi-step scenarios like recipe illustration. Additionally, current recipe illustration methods are unable to adjust to the natural variability in recipe length, generating a fixed number of images regardless of the actual instructions structure. To address these limitations, we present CookAnything, a flexible and consistent diffusion-based framework that generates coherent, semantically distinct image sequences from textual cooking instructions of arbitrary length. The framework introduces three key components: (1) Step-wise Regional Control (SRC), which aligns textual steps with corresponding image regions within a single denoising process; (2) Flexible RoPE, a step-aware positional encoding mechanism that enhances both temporal coherence and spatial diversity; and (3) Cross-Step Consistency Control (CSCC), which maintains fine-grained ingredient consistency across steps. Experimental results on recipe illustration benchmarks show that CookAnything performs better than existing methods in training-based and training-free settings. The proposed framework supports scalable, high-quality visual synthesis of complex multi-step instructions and holds significant potential for broad applications in instructional media, and procedural content creation.

解读

一句话总结

CookAnything提出了一种基于扩散模型的灵活且一致的食谱图像生成框架,能够根据任意长度的文本烹饪指令生成连贯的、语义上区分的图像序列。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源