Image animation aims to bring static images to life according to driving videos and create engaging visual content that can be used for various purposes such as animation, entertainment, and education. Recent unsupervised methods utilize affine and thin-plate spline transformations based on keypoints to transfer the motion in driving frames to the source image. However, limited by the expressive power of the transformations used, these methods always produce poor results when the gap between the motion in the driving frame and the source image is large. To address this issue, we propose to model motion from the source image to the driving frame in highly-expressive diffeomorphism spaces. Firstly, we introduce Continuous Piecewise-Affine based (CPAB) transformation to model the motion and present a well-designed inference algorithm to generate CPAB transformation from control keypoints. Secondly, we propose a SAM-guided keypoint semantic loss to further constrain the keypoint extraction process and improve the semantic consistency between the corresponding keypoints on the source and driving images. Finally, we design a structure alignment loss to align the structure-related features extracted from driving and generated images, thus helping the generator generate results that are more consistent with the driving action. Extensive experiments on four datasets demonstrate the effectiveness of our method against state-of-the-art competitors quantitatively and qualitatively. Code will be publicly available at: https://github.com/DevilPG/AAAI2024-CPABMM.
翻译:图像动画旨在根据驱动视频使静态图像生动起来,并创建可用于动画、娱乐和教育等多种目的的引人入胜的视觉内容。最近的无监督方法利用基于关键点的仿射变换和薄板样条变换,将驱动帧中的运动迁移到源图像。然而,受限于所用变换的表达能力,当驱动帧与源图像之间的运动差距较大时,这些方法总是产生较差的结果。为了解决这一问题,我们提出在高表达性的微分同胚空间中建模从源图像到驱动帧的运动。首先,我们引入基于连续分段仿射(CPAB)的变换来建模运动,并设计了一个精心设计的推理算法,从控制关键点生成CPAB变换。其次,我们提出了一种SAM引导的关键点语义损失,以进一步约束关键点提取过程,并提高源图像和驱动图像上对应关键点之间的语义一致性。最后,我们设计了一种结构对齐损失,以对齐从驱动图像和生成图像中提取的结构相关特征,从而帮助生成器生成与驱动动作更加一致的结果。在四个数据集上的大量实验定性和定量地证明了我们的方法相对于最先进方法的有效性。代码将在https://github.com/DevilPG/AAAI2024-CPABMM公开提供。