VisualChef: Generating Visual Aids in Cooking via Mask Inpainting
Oleh Kuzyk, Zuoyue Li, Marc Pollefeys, Xi Wang
TL;DR
VisualChef tackles the challenge of providing contextual visual guidance for cooking by generating two frame outputs, $f_{action}$ and $f_{final}$, from an initial frame $f_{in}$ and a specified action. It achieves this with a mask-based diffusion pipeline that grounds action-relevant objects, classifies them into Core, Location, and Functional categories, and selectively edits only those regions to maintain scene consistency. A data-curation pipeline extracts initial-action-final triplets from egocentric videos, while a CLIP-based loss guides inpainting quality. Across Ego4D, EGTEA Gaze+, and EK-100, VisualChef outperforms state-of-the-art baselines in semantic alignment (CLIP-based metrics) and maintains competitive or superior image fidelity, with ablations confirming the benefits of targeted masking and per-task fine-tuning. This approach offers practical benefits for instruction-driven cooking assistance and robotics by providing reliable, environment-consistent visual aids without heavy textual alignment or extensive annotations.
Abstract
Cooking requires not only following instructions but also understanding, executing, and monitoring each step - a process that can be challenging without visual guidance. Although recipe images and videos offer helpful cues, they often lack consistency in focus, tools, and setup. To better support the cooking process, we introduce VisualChef, a method for generating contextual visual aids tailored to cooking scenarios. Given an initial frame and a specified action, VisualChef generates images depicting both the action's execution and the resulting appearance of the object, while preserving the initial frame's environment. Previous work aims to integrate knowledge extracted from large language models by generating detailed textual descriptions to guide image generation, which requires fine-grained visual-textual alignment and involves additional annotations. In contrast, VisualChef simplifies alignment through mask-based visual grounding. Our key insight is identifying action-relevant objects and classifying them to enable targeted modifications that reflect the intended action and outcome while maintaining a consistent environment. In addition, we propose an automated pipeline to extract high-quality initial, action, and final state frames. We evaluate VisualChef quantitatively and qualitatively on three egocentric video datasets and show its improvements over state-of-the-art methods.
