뒤로
Video Restyle - After
Video Restyle - Before

The 'Video Restyle' workflow in ComfyUI is designed to transform a base video into a stylized version using a reference image, leveraging the WAN 2.1 VACE model. This process involves several key steps, including video loading, preprocessing, and style application. The workflow uses nodes like VHS_LoadVideo for video input, CannyEdgePreprocessor and DepthAnything_V2 for edge and depth detection, and WanVideoVACEEncode for encoding the video with the desired style. This setup allows for precise control over how the style is applied, ensuring that the final output maintains the video’s original motion while adopting the aesthetic of the reference image.

Technically, the workflow begins by loading the base video and reference image. The video is then preprocessed using either Canny edge detection or depth estimation, which are crucial for maintaining structural integrity during restyling. The WanVideoModelLoader and WanVideoVACEModelSelect nodes load and configure the WAN 2.1 VACE model, which is responsible for the style transfer. The process concludes with the WanVideoSampler and WanVideoSLG nodes, which sample the video frames and apply the stylized look. This workflow is especially useful for creators looking to produce visually captivating videos that combine the narrative of the original footage with the artistic flair of a chosen style.