先说结论
StoryDiffusion通过跨图注意力改善主体一致性,再用学习到的语义运动预测器生成过渡视频。免训练只适用于图像一致性模块,不适用于全部视频流程。 (原文:PDF p.2, Introduction;PDF p.5, Consistent Self-Attention;PDF p.7, Semantic Motion Predictor;PDF p.9, experimental setup;PDF p.9, Table 1; Table 2;PDF p.16, Limitations)
指标:StoryDiffusion针对多幅故事图之间的主体一致性,并进一步生成图与图之间的视频过渡。它的两个环节要区分:图像一致性依赖扩散注意力中的跨图信息,视频过渡则需要预测语义空间里的中间状态。
条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并
PDF p.2, Introduction · PDF p.2
Consistent images generated by StoryDiffusion “Jungle Adventure” “The Moon Exploration by Lecun” (a) (b) Transition Videos generated by StoryDiffusion “Video Clips” “Long-Range Video” (c) Figure 1: Images and videos generated by our StoryDiffusion. (a) Comic generated by StoryDif- fusion telling the story of a man who discovers a treasure while exploring the jungle. (b) Comic generated by StoryDiffusion describing the expedition to the moon by Lecun, with a reference im- age control (Li et al., 2023a) same as Fig. 6(b). (c) Videos generated by our StoryDiffusion. Click the image to play the video. Best viewed with Acrobat Reader. More generated videos can be found in our home project: https://StoryDiffusion.github.io. As evidenced by previous works (Tian et al., 2023; Hong et al., 2023), self-attention is one of the most important modules for modeling the overall structure of the generated visual content. Our main motivation is that if we could use a reference image to guide the self-attention calculation, the consistency between the two images is supposed to be improved significantly. As the self-attention weights are input-dependent, model training or fine-tuning might not be required. Following this idea, we propose Consistent Self-Attention, the core of our StoryDiffusion, which can be inserted into the diffusion backbone to replace the original self-attention in a zero-shot manner. Different from the standard self-attention that operates on the tokens representing a single image (as shown in Fig. 2(d)), Consistent Self-Attention incorporates sampled reference tokens from the reference images during the token similarity matrix calculation and token merging. The sampled tokens share the same set of Q-K-V weights and thus no extra training is required. As shown in Fig. 1, the generated images using Consistent Self-Attention successfully preserve the consistency in both identity and attire, which is vital for storytelling. Intuitively, Consistent Self-Attention builds 2
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:一致性自注意力保留当前图的查询,并从同批其他图像的特征中采样信息加入键和值,使相关图像在生成时共享主体外观线索。这个图像环节无需额外训练。共享不等于所有局部纹理与服装都会严格相同,也不意味着任意故事长度都已得到验证。
条件:仅限本地原始PDF的 Consistent Self-Attention;不同表格与实验不合并
PDF p.5, Consistent Self-Attention · PDF p.5
(a) Text-to-Image Diffusion with Consistent Self-Attention (b) Consistent Self-Att Block (CAB) (c) Consistent Self-Att Layer (CAL) CAB CAB CAB CAB Xt Xt-1 Boost Consistency by Consistent Self-Attention Diffusion UNet Split the Story into Five prompts and Generate in a Batch Story: A young man stands on the road, gazing his side. He then turns his head to look straight ahead and continuing his walk. Along the way, he spots a rose by the roadside, bends down to pick it up. Sampling Multiplication He hold it in front of chest and walks forward, laughing joyfully. Tokens (S+N)×C C Softmax Concat Generated Consistent Images for Storytelling N×(S+N) N×C N×C (d) Consistent Self-Attention Figure 2: The Pipeline of StoryDiffusion to generating subject-consistent images. To create subject- consistent images to describe a story, we incorporate our Consistent Self-Attention into the pre- trained text-to-image diffusion model. We split a story text into several prompts and generate images using these prompts in a batch. Consistent Self-Attention builds connections among multiple images in a batch for subject consistency. 3.1 T RAINING -F REE C ONSISTENT I MAGES G ENERATION In this subsection, we introduce how our method generates subject-consistent images in a training- free manner. The key to addressing the above issues lies in how to maintain consistency of characters within a batch of images. This means we need to establish connections between images within a batch during generation. After revisiting the role of the different attention mechanisms within dif- fusion models, we get inspired to explore utilizing self-attention to serve the consistency of images within a batch and propose our Consistent Self-Attention. We insert Consistent Self-Attention into the location of the original self-attention in the existing U-Net architecture of image generation models and reuse the original self-attention weights to remain training-free and pluggable. Formally, given a batch of image features I ∈ RB×N ×C , where B, N , and C are the batch size, number of tokens in each image, and channel number, respectively, we define a function Attention(Xk , Xq , Xv ) to calculate self-attention. Xk , Xq , and Xv stand for the query, key, and value used in attention calculation, respectively. The original self-attention is performed within each image feature Ii in I independently. The feature Ii is projected to Qi , Ki , Vi and sent into the attention function, yielding: O_i = \operatorname {Attention}\left (Q_i,K_i,V_i\right ). (1) To build interactions among the images within a batch to keep subject consistency, our Consistent Self-Attention samples some tokens Si from other image features in the batch: S_i = \operatorname {RandSample}\left (I_1, I_2, .., I_{i-1}, I_{i+1}, ..., I_{B-1}, I_{B}\right ), (2) where RandSample denotes the random sampling function. After sampling, we pair the sampled tokens Si and the image feature Ii to form a new set of tokens Pi . We then perform linear projections on Pi to generate the new key KP i and value VP i for Consistent Self-Attention. Here, the original query Qi is not changed. Finally, we compute the self-attention as follows: O_i = \operatorname {Attention}\left (Q_i, K_{Pi}, V_{Pi}\right ). (3) Given the paired tokens, our method performs the self-attention across a batch of images, facilitating interactions among features of different images. This type of interaction promotes the model to the convergence of characters, faces, and attires during the generation process. Despite the simple and training-free manner, our Consistent Self-Attention can efficiently generate subject-consistent 5
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:视频环节在图像语义空间中学习从端点图像到中间状态的变化,再用这些条件指导视频生成。作者训练了Semantic Motion Predictor,因此“图像一致性模块免训练”不能扩写为整个故事视频框架免训练。两端图的一致性与中间运动的合理性是不同问题。
条件:仅限本地原始PDF的 Semantic Motion Predictor;不同表格与实验不合并
PDF p.7, Semantic Motion Predictor · PDF p.7
To address this issue, we propose Semantic Motion Predictor, which encodes the image into the image semantic space to capture the spatial information, achieving more accurate motion prediction from a given start frame and an end frame. More specifically, in our Semantic Motion Predictor, we first use a function E to establish a mapping from the RGB images to vectors in the image semantic space, encoding the spatial information. Instead of directly using linear layers as E, we utilize a pre- trained CLIP image encoder as E to leverage its zero-shot capabilities for enhancing performance. Using E, the given start frame Fs and end frame Fe are compressed to image semantic space vectors Ks , Ke . K_s,K_e = E\left ( F_s, F_e \right ). (4) Subsequently, in the image semantic space, we train a transformer-based structure predictor to per- form predictions of each intermediate frame. The predictor first performs linear interpolation to expand the two frames Ks and Ke into sequence K1 , K2 , ..., KL , where L is the required video length. Then, the sequence K1 , K2 , ..., KL is sent into a series of transformer blocks B to predict the transition frames: P_1,P_2,...,P_l = B\left ( K_1, K_2,..., K_L \right ). (5) Next, we need to decode these predicted frames in the image semantic space into the final transition video. Inspired by the image prompt methods (Ye et al., 2023), we position these image semantic embeddings P1 , P2 , ..., PL as control signals, and the video diffusion model as the decoder to lever- age the generative ability of the video diffusion model. We also insert additional linear layers to project these embeddings into keys and values, involving into cross-attention of U-Net. Formally, during the diffusion process, for each video frame feature Vi , we concatenate the text embeddings T and the predicted image semantic embeddings Pi . The cross-attention is computed as follows: V_i = \mathrm {CrossAttention}\left ( V_i, \operatorname {concat}(T,P_i),\operatorname {concat}(T,P_i) \right ). (6) Similar to previous video generation approaches, we optimize our model by calculating the MSE loss between L frames predicted transition video O = (O1 , O2 , ..., OL ) and L frame ground truth G = (G1 , G2 , ..., GL ): Loss = \mathrm {MSE}\left ( G,O \right ). (7) By encoding images into an image semantic space for integrating spatial positional relationships, our Semantic Motion Predictor could better model motion information, enabling the generation of smooth transition videos with large motion. The results and comparisons that showcase the significant improvements can be observed in Fig. 1 and Fig. 5. 4 E XPERIMENTS 4.1 I MPLEMENTATION D ETAILS For the generation of subject-consistent images, due to the training-free and pluggable property, we implement our method on both Stable Diffusion XL and Stable Diffusion 1.5. To align with the comparison models, we conduct comparisons on the Stable-XL model using the same pre-trained weights. All comparison models utilize 50-step DDIM sampling, and the classifier-free guidance score is consistently set to 5.0. For the generation of consistent videos, we implement our method based on the Stable Diffusion 1.5 pertained model and incorporate a pretrained temporal module (Guo et al., 2024) to enable video generation. All comparison models adopt a 7.5 classifier-free guidance score and 50-step DDIM sampling. Following the previous methods (Guo et al., 2023; Chen et al., 2023), we use the Webvid10M (Bain et al., 2021) dataset to train our transition video model. More details can be found in the supplementary materials. 4.2 C OMPARISONS OF C ONSISTENT I MAGES G ENERATION We evaluate our method for generating subject-consistent images by comparing it with the two most recent ID preservation methods, IP-Adapter (Ye et al., 2023) and Photo Maker (Ye et al., 2023). To test the performance, we use GPT-4 to generate twenty character prompts and one hundred activity 7
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者把故事图像质量与视频平滑性分开评估,分别对照图像身份保持方法和视频控制方法。自动相似度只能覆盖一部分视觉质量,不等于人类对故事的全部判断。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.9, experimental setup · PDF p.9
Table 1: Quantitative comparisons of consistent image generation. Our StoryDiffusion achieves better text similarity and subject similarity even without any training. Metric IP-Adapter (Ye et al., 2023) Photo Maker (Li et al., 2023a) StoryDiffusion (ours) Text-Image Similarity 0.6129 0.6541 0.6586 Character Similarity 0.8802 0.8924 0.8950 Table 2: Quantitative comparisons with state-of-the-art transition video generation models. Methods LPIPS-first (↓) LPIPS-frames (↓) CLIPSIM-first (↑) CLIPSIM-frames (↑) SEINE 0.4332 0.2220 0.9259 0.9736 SparseCtrl 0.4913 0.1768 0.9032 0.9756 Ours 0.3794 0.1635 0.9606 0.9870 ages with inconsistent attire or diminished text controllability. For the first example, the IP-Adapter method generates an image lost “telescope” with the text prompt “Stargazing with a telescope”. PhotoMaker generates images matching the text prompt, but there are significant discrepancies in the attire across the three generated images. The third-row images generated by our StoryDiffu- sion exhibit consistent faces and attire with better text controllability. For the last example “A focused gamer wearing oversized headphones”, IP-Adapter lose the “dog” in the second image and the “cards” in the third image. The images generated by PhotoMaker could not maintain the attire. Our StoryDiffusion still generates subject-consistent images, with the same face, and same attire, and conforms to the description in the prompt. Quantitative Comparisons. We evaluate the quantitative comparison and show the results in Tab. 1. We evaluate two metrics, the first one is text-image similarity, which calculates the CLIP Score be- tween the text prompts and the corresponding images. The second is character similarity, which measures the CLIP Scores of the character images. Our StoryDiffusion achieves the best perfor- mance on both quantitative metrics, which shows our method’s robustness in maintaining character meanwhile conforming to prompt descriptions. 4.3 C OMPARISONS OF T RANSITION V IDEOS G ENERATION In transition video generation, we conduct comparisons with the two state-of-the-art methods, Spar- seCtrl (Guo et al., 2023) and SEINE (Chen et al., 2023), to evaluate our performance. We randomly sample around 1000 videos as the test dataset. We employ the three comparison models to predict the intermediate frames of a transition video, given the start and end frames, in order to assess their performance. Qualitative Comparisons. We conduct the qualitative comparison of transition video generation and show the results in Fig. 5. Our StoryDiffusion significantly outperforms SEINE (Chen et al., 2023) and SparseCtrl (Guo et al., 2023), generating transition videos that are smooth and physically plausible. For the first example, two people kissing underwater, the intermediate frames generated by SEINE are corrupted, and there is a direct jump to the final frame. SparseCtrl generates re- sults with slightly better continuity, but the intermediate frames still contain corrupted images, with numerous hands appearing. However, our StoryDiffusion succeeds in generating videos with very smooth motion without corrupted intermediate frames. For the second example, the intermediate frames generated by SEINE have corrupted arms. SparseCtrl, on the other hand, fails to maintain consistency in appearance. Our StoryDiffusion generates consistent videos with excellent continu- ity. For the last example, the video we generate adheres to physical spatial relationships, unlike SEINE and SparseCtrl, which only change the appearance in the transition. More visual examples can be found in the supplementary material. Quantitative Comparisons. Following previous works (Guo et al., 2023; Zhang et al., 2018), we compare our method with SEINE and SparseCtrl with four quantitative metrics, including LPIPS- first, LPIPS-frames, CLIPSIM-first, and CLIPSIM-frames, as shown in Tab. 2. LPIPS-first and CLIPSIM-first measure the similarities between the first frame and other frames, which reflect the 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:图像比较中,主体相似度为0.8950,PhotoMaker为0.8924;文本CLIP指标为0.6586对0.6541。视频比较中,帧间LPIPS为0.1635,SparseCtrl为0.1768,低为好。这些自动指标支持特定设置下的改进,但不能相互替代为一个故事理解或物理正确性的总分。
条件:仅限本地原始PDF的 Table 1; Table 2;不同表格与实验不合并
PDF p.9, Table 1; Table 2 · PDF p.9
Table 1: Quantitative comparisons of consistent image generation. Our StoryDiffusion achieves better text similarity and subject similarity even without any training. Metric IP-Adapter (Ye et al., 2023) Photo Maker (Li et al., 2023a) StoryDiffusion (ours) Text-Image Similarity 0.6129 0.6541 0.6586 Character Similarity 0.8802 0.8924 0.8950 Table 2: Quantitative comparisons with state-of-the-art transition video generation models. Methods LPIPS-first (↓) LPIPS-frames (↓) CLIPSIM-first (↑) CLIPSIM-frames (↑) SEINE 0.4332 0.2220 0.9259 0.9736 SparseCtrl 0.4913 0.1768 0.9032 0.9756 Ours 0.3794 0.1635 0.9606 0.9870 ages with inconsistent attire or diminished text controllability. For the first example, the IP-Adapter method generates an image lost “telescope” with the text prompt “Stargazing with a telescope”. PhotoMaker generates images matching the text prompt, but there are significant discrepancies in the attire across the three generated images. The third-row images generated by our StoryDiffu- sion exhibit consistent faces and attire with better text controllability. For the last example “A focused gamer wearing oversized headphones”, IP-Adapter lose the “dog” in the second image and the “cards” in the third image. The images generated by PhotoMaker could not maintain the attire. Our StoryDiffusion still generates subject-consistent images, with the same face, and same attire, and conforms to the description in the prompt. Quantitative Comparisons. We evaluate the quantitative comparison and show the results in Tab. 1. We evaluate two metrics, the first one is text-image similarity, which calculates the CLIP Score be- tween the text prompts and the corresponding images. The second is character similarity, which measures the CLIP Scores of the character images. Our StoryDiffusion achieves the best perfor- mance on both quantitative metrics, which shows our method’s robustness in maintaining character meanwhile conforming to prompt descriptions. 4.3 C OMPARISONS OF T RANSITION V IDEOS G ENERATION In transition video generation, we conduct comparisons with the two state-of-the-art methods, Spar- seCtrl (Guo et al., 2023) and SEINE (Chen et al., 2023), to evaluate our performance. We randomly sample around 1000 videos as the test dataset. We employ the three comparison models to predict the intermediate frames of a transition video, given the start and end frames, in order to assess their performance. Qualitative Comparisons. We conduct the qualitative comparison of transition video generation and show the results in Fig. 5. Our StoryDiffusion significantly outperforms SEINE (Chen et al., 2023) and SparseCtrl (Guo et al., 2023), generating transition videos that are smooth and physically plausible. For the first example, two people kissing underwater, the intermediate frames generated by SEINE are corrupted, and there is a direct jump to the final frame. SparseCtrl generates re- sults with slightly better continuity, but the intermediate frames still contain corrupted images, with numerous hands appearing. However, our StoryDiffusion succeeds in generating videos with very smooth motion without corrupted intermediate frames. For the second example, the intermediate frames generated by SEINE have corrupted arms. SparseCtrl, on the other hand, fails to maintain consistency in appearance. Our StoryDiffusion generates consistent videos with excellent continu- ity. For the last example, the video we generate adheres to physical spatial relationships, unlike SEINE and SparseCtrl, which only change the appearance in the transition. More visual examples can be found in the supplementary material. Quantitative Comparisons. Following previous works (Guo et al., 2023; Zhang et al., 2018), we compare our method with SEINE and SparseCtrl with four quantitative metrics, including LPIPS- first, LPIPS-frames, CLIPSIM-first, and CLIPSIM-frames, as shown in Tab. 2. LPIPS-first and CLIPSIM-first measure the similarities between the first frame and other frames, which reflect the 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:论文指出,主体服装一致性和更长视频生成仍面临限制。应把这些作为观察到的能力边界,不能在没有对照实验时归因于“缺少某一种记忆模块”。视觉相似并不自动意味着叙事因果、动作和长时间连续性都正确。
条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并
PDF p.16, Limitations · PDF p.16
“More Transition Videos generated by StoryDiffusion” Figure 7: More video results generated by our StoryDiffusion. Best viewed with Acrobat Reader. Click the image to play the video. A.2 C ONSISTENT I MAGES G ENERATION WITH C ONTROL N ET Given that our Consistent Self-Attention is training-free and pluggable, we further explore integra- tion with ControlNet (Zhang et al., 2023b) to introduce pose control in the generation of subject- consistent images. The results of combining our Consistent Self-Attention with ControlNet are displayed in Fig. 8. Our approach is also capable of generating subject-consistent images under the guidance of ControlNet. B I MPLEMENTATION D ETAILS For training our transition video model, we utilize the AnimateDiff V2 motion module (Guo et al., 2024) as our initial weights of the temporal module. We set our learning rate at 1e-4 and conduct training 100k iterations on 8 A100 GPUs. To encode the conditional images into the image semantic space, we utilize the OpenCLIP ViT-H-14 (Radford et al., 2021; Cherti et al., 2023) pre-trained model. Our Semantic Motion Predictor incorporates 8 transformer layers, with a hidden dimension of 1024 and 12 attention heads. C L IMITATIONS The first limitation arises in our subject-consistent image generation. Similar to current state-of-the- art methods (Ye et al., 2023), there may exist inconsistencies in some minor clothing details, such as ties. In this case, our Consistent Self-Attention may require more detailed prompts to maintain consistency across images. The second limitation is in our transition video generation. Although one can utilize StoryDiffusion to generate longer videos using a sliding window approach, our method is not designed specifically for long video generation. Consequently, our method is not yet perfect for generating very long videos due to the absence of global information exchange. We will further explore long video generation in our future work. 16
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
论文为什么要做这件事
StoryDiffusion针对多幅故事图之间的主体一致性,并进一步生成图与图之间的视频过渡。它的两个环节要区分:图像一致性依赖扩散注意力中的跨图信息,视频过渡则需要预测语义空间里的中间状态。 (原文:PDF p.2, Introduction)
指标:StoryDiffusion针对多幅故事图之间的主体一致性,并进一步生成图与图之间的视频过渡。它的两个环节要区分:图像一致性依赖扩散注意力中的跨图信息,视频过渡则需要预测语义空间里的中间状态。
条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并
PDF p.2, Introduction · PDF p.2
Consistent images generated by StoryDiffusion “Jungle Adventure” “The Moon Exploration by Lecun” (a) (b) Transition Videos generated by StoryDiffusion “Video Clips” “Long-Range Video” (c) Figure 1: Images and videos generated by our StoryDiffusion. (a) Comic generated by StoryDif- fusion telling the story of a man who discovers a treasure while exploring the jungle. (b) Comic generated by StoryDiffusion describing the expedition to the moon by Lecun, with a reference im- age control (Li et al., 2023a) same as Fig. 6(b). (c) Videos generated by our StoryDiffusion. Click the image to play the video. Best viewed with Acrobat Reader. More generated videos can be found in our home project: https://StoryDiffusion.github.io. As evidenced by previous works (Tian et al., 2023; Hong et al., 2023), self-attention is one of the most important modules for modeling the overall structure of the generated visual content. Our main motivation is that if we could use a reference image to guide the self-attention calculation, the consistency between the two images is supposed to be improved significantly. As the self-attention weights are input-dependent, model training or fine-tuning might not be required. Following this idea, we propose Consistent Self-Attention, the core of our StoryDiffusion, which can be inserted into the diffusion backbone to replace the original self-attention in a zero-shot manner. Different from the standard self-attention that operates on the tokens representing a single image (as shown in Fig. 2(d)), Consistent Self-Attention incorporates sampled reference tokens from the reference images during the token similarity matrix calculation and token merging. The sampled tokens share the same set of Q-K-V weights and thus no extra training is required. As shown in Fig. 1, the generated images using Consistent Self-Attention successfully preserve the consistency in both identity and attire, which is vital for storytelling. Intuitively, Consistent Self-Attention builds 2
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
核心方法到底怎么运转
一致性自注意力保留当前图的查询,并从同批其他图像的特征中采样信息加入键和值,使相关图像在生成时共享主体外观线索。这个图像环节无需额外训练。共享不等于所有局部纹理与服装都会严格相同,也不意味着任意故事长度都已得到验证。 (原文:PDF p.5, Consistent Self-Attention)
指标:一致性自注意力保留当前图的查询,并从同批其他图像的特征中采样信息加入键和值,使相关图像在生成时共享主体外观线索。这个图像环节无需额外训练。共享不等于所有局部纹理与服装都会严格相同,也不意味着任意故事长度都已得到验证。
条件:仅限本地原始PDF的 Consistent Self-Attention;不同表格与实验不合并
PDF p.5, Consistent Self-Attention · PDF p.5
(a) Text-to-Image Diffusion with Consistent Self-Attention (b) Consistent Self-Att Block (CAB) (c) Consistent Self-Att Layer (CAL) CAB CAB CAB CAB Xt Xt-1 Boost Consistency by Consistent Self-Attention Diffusion UNet Split the Story into Five prompts and Generate in a Batch Story: A young man stands on the road, gazing his side. He then turns his head to look straight ahead and continuing his walk. Along the way, he spots a rose by the roadside, bends down to pick it up. Sampling Multiplication He hold it in front of chest and walks forward, laughing joyfully. Tokens (S+N)×C C Softmax Concat Generated Consistent Images for Storytelling N×(S+N) N×C N×C (d) Consistent Self-Attention Figure 2: The Pipeline of StoryDiffusion to generating subject-consistent images. To create subject- consistent images to describe a story, we incorporate our Consistent Self-Attention into the pre- trained text-to-image diffusion model. We split a story text into several prompts and generate images using these prompts in a batch. Consistent Self-Attention builds connections among multiple images in a batch for subject consistency. 3.1 T RAINING -F REE C ONSISTENT I MAGES G ENERATION In this subsection, we introduce how our method generates subject-consistent images in a training- free manner. The key to addressing the above issues lies in how to maintain consistency of characters within a batch of images. This means we need to establish connections between images within a batch during generation. After revisiting the role of the different attention mechanisms within dif- fusion models, we get inspired to explore utilizing self-attention to serve the consistency of images within a batch and propose our Consistent Self-Attention. We insert Consistent Self-Attention into the location of the original self-attention in the existing U-Net architecture of image generation models and reuse the original self-attention weights to remain training-free and pluggable. Formally, given a batch of image features I ∈ RB×N ×C , where B, N , and C are the batch size, number of tokens in each image, and channel number, respectively, we define a function Attention(Xk , Xq , Xv ) to calculate self-attention. Xk , Xq , and Xv stand for the query, key, and value used in attention calculation, respectively. The original self-attention is performed within each image feature Ii in I independently. The feature Ii is projected to Qi , Ki , Vi and sent into the attention function, yielding: O_i = \operatorname {Attention}\left (Q_i,K_i,V_i\right ). (1) To build interactions among the images within a batch to keep subject consistency, our Consistent Self-Attention samples some tokens Si from other image features in the batch: S_i = \operatorname {RandSample}\left (I_1, I_2, .., I_{i-1}, I_{i+1}, ..., I_{B-1}, I_{B}\right ), (2) where RandSample denotes the random sampling function. After sampling, we pair the sampled tokens Si and the image feature Ii to form a new set of tokens Pi . We then perform linear projections on Pi to generate the new key KP i and value VP i for Consistent Self-Attention. Here, the original query Qi is not changed. Finally, we compute the self-attention as follows: O_i = \operatorname {Attention}\left (Q_i, K_{Pi}, V_{Pi}\right ). (3) Given the paired tokens, our method performs the self-attention across a batch of images, facilitating interactions among features of different images. This type of interaction promotes the model to the convergence of characters, faces, and attires during the generation process. Despite the simple and training-free manner, our Consistent Self-Attention can efficiently generate subject-consistent 5
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
视频过渡不是同一个免训练模块
视频环节在图像语义空间中学习从端点图像到中间状态的变化,再用这些条件指导视频生成。作者训练了Semantic Motion Predictor,因此“图像一致性模块免训练”不能扩写为整个故事视频框架免训练。两端图的一致性与中间运动的合理性是不同问题。 (原文:PDF p.7, Semantic Motion Predictor)
指标:视频环节在图像语义空间中学习从端点图像到中间状态的变化,再用这些条件指导视频生成。作者训练了Semantic Motion Predictor,因此“图像一致性模块免训练”不能扩写为整个故事视频框架免训练。两端图的一致性与中间运动的合理性是不同问题。
条件:仅限本地原始PDF的 Semantic Motion Predictor;不同表格与实验不合并
PDF p.7, Semantic Motion Predictor · PDF p.7
To address this issue, we propose Semantic Motion Predictor, which encodes the image into the image semantic space to capture the spatial information, achieving more accurate motion prediction from a given start frame and an end frame. More specifically, in our Semantic Motion Predictor, we first use a function E to establish a mapping from the RGB images to vectors in the image semantic space, encoding the spatial information. Instead of directly using linear layers as E, we utilize a pre- trained CLIP image encoder as E to leverage its zero-shot capabilities for enhancing performance. Using E, the given start frame Fs and end frame Fe are compressed to image semantic space vectors Ks , Ke . K_s,K_e = E\left ( F_s, F_e \right ). (4) Subsequently, in the image semantic space, we train a transformer-based structure predictor to per- form predictions of each intermediate frame. The predictor first performs linear interpolation to expand the two frames Ks and Ke into sequence K1 , K2 , ..., KL , where L is the required video length. Then, the sequence K1 , K2 , ..., KL is sent into a series of transformer blocks B to predict the transition frames: P_1,P_2,...,P_l = B\left ( K_1, K_2,..., K_L \right ). (5) Next, we need to decode these predicted frames in the image semantic space into the final transition video. Inspired by the image prompt methods (Ye et al., 2023), we position these image semantic embeddings P1 , P2 , ..., PL as control signals, and the video diffusion model as the decoder to lever- age the generative ability of the video diffusion model. We also insert additional linear layers to project these embeddings into keys and values, involving into cross-attention of U-Net. Formally, during the diffusion process, for each video frame feature Vi , we concatenate the text embeddings T and the predicted image semantic embeddings Pi . The cross-attention is computed as follows: V_i = \mathrm {CrossAttention}\left ( V_i, \operatorname {concat}(T,P_i),\operatorname {concat}(T,P_i) \right ). (6) Similar to previous video generation approaches, we optimize our model by calculating the MSE loss between L frames predicted transition video O = (O1 , O2 , ..., OL ) and L frame ground truth G = (G1 , G2 , ..., GL ): Loss = \mathrm {MSE}\left ( G,O \right ). (7) By encoding images into an image semantic space for integrating spatial positional relationships, our Semantic Motion Predictor could better model motion information, enabling the generation of smooth transition videos with large motion. The results and comparisons that showcase the significant improvements can be observed in Fig. 1 and Fig. 5. 4 E XPERIMENTS 4.1 I MPLEMENTATION D ETAILS For the generation of subject-consistent images, due to the training-free and pluggable property, we implement our method on both Stable Diffusion XL and Stable Diffusion 1.5. To align with the comparison models, we conduct comparisons on the Stable-XL model using the same pre-trained weights. All comparison models utilize 50-step DDIM sampling, and the classifier-free guidance score is consistently set to 5.0. For the generation of consistent videos, we implement our method based on the Stable Diffusion 1.5 pertained model and incorporate a pretrained temporal module (Guo et al., 2024) to enable video generation. All comparison models adopt a 7.5 classifier-free guidance score and 50-step DDIM sampling. Following the previous methods (Guo et al., 2023; Chen et al., 2023), we use the Webvid10M (Bain et al., 2021) dataset to train our transition video model. More details can be found in the supplementary materials. 4.2 C OMPARISONS OF C ONSISTENT I MAGES G ENERATION We evaluate our method for generating subject-consistent images by comparing it with the two most recent ID preservation methods, IP-Adapter (Ye et al., 2023) and Photo Maker (Ye et al., 2023). To test the performance, we use GPT-4 to generate twenty character prompts and one hundred activity 7
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
实验怎样检验这个方法
作者把故事图像质量与视频平滑性分开评估,分别对照图像身份保持方法和视频控制方法。自动相似度只能覆盖一部分视觉质量,不等于人类对故事的全部判断。 (原文:PDF p.9, experimental setup)
指标:作者把故事图像质量与视频平滑性分开评估,分别对照图像身份保持方法和视频控制方法。自动相似度只能覆盖一部分视觉质量,不等于人类对故事的全部判断。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.9, experimental setup · PDF p.9
Table 1: Quantitative comparisons of consistent image generation. Our StoryDiffusion achieves better text similarity and subject similarity even without any training. Metric IP-Adapter (Ye et al., 2023) Photo Maker (Li et al., 2023a) StoryDiffusion (ours) Text-Image Similarity 0.6129 0.6541 0.6586 Character Similarity 0.8802 0.8924 0.8950 Table 2: Quantitative comparisons with state-of-the-art transition video generation models. Methods LPIPS-first (↓) LPIPS-frames (↓) CLIPSIM-first (↑) CLIPSIM-frames (↑) SEINE 0.4332 0.2220 0.9259 0.9736 SparseCtrl 0.4913 0.1768 0.9032 0.9756 Ours 0.3794 0.1635 0.9606 0.9870 ages with inconsistent attire or diminished text controllability. For the first example, the IP-Adapter method generates an image lost “telescope” with the text prompt “Stargazing with a telescope”. PhotoMaker generates images matching the text prompt, but there are significant discrepancies in the attire across the three generated images. The third-row images generated by our StoryDiffu- sion exhibit consistent faces and attire with better text controllability. For the last example “A focused gamer wearing oversized headphones”, IP-Adapter lose the “dog” in the second image and the “cards” in the third image. The images generated by PhotoMaker could not maintain the attire. Our StoryDiffusion still generates subject-consistent images, with the same face, and same attire, and conforms to the description in the prompt. Quantitative Comparisons. We evaluate the quantitative comparison and show the results in Tab. 1. We evaluate two metrics, the first one is text-image similarity, which calculates the CLIP Score be- tween the text prompts and the corresponding images. The second is character similarity, which measures the CLIP Scores of the character images. Our StoryDiffusion achieves the best perfor- mance on both quantitative metrics, which shows our method’s robustness in maintaining character meanwhile conforming to prompt descriptions. 4.3 C OMPARISONS OF T RANSITION V IDEOS G ENERATION In transition video generation, we conduct comparisons with the two state-of-the-art methods, Spar- seCtrl (Guo et al., 2023) and SEINE (Chen et al., 2023), to evaluate our performance. We randomly sample around 1000 videos as the test dataset. We employ the three comparison models to predict the intermediate frames of a transition video, given the start and end frames, in order to assess their performance. Qualitative Comparisons. We conduct the qualitative comparison of transition video generation and show the results in Fig. 5. Our StoryDiffusion significantly outperforms SEINE (Chen et al., 2023) and SparseCtrl (Guo et al., 2023), generating transition videos that are smooth and physically plausible. For the first example, two people kissing underwater, the intermediate frames generated by SEINE are corrupted, and there is a direct jump to the final frame. SparseCtrl generates re- sults with slightly better continuity, but the intermediate frames still contain corrupted images, with numerous hands appearing. However, our StoryDiffusion succeeds in generating videos with very smooth motion without corrupted intermediate frames. For the second example, the intermediate frames generated by SEINE have corrupted arms. SparseCtrl, on the other hand, fails to maintain consistency in appearance. Our StoryDiffusion generates consistent videos with excellent continu- ity. For the last example, the video we generate adheres to physical spatial relationships, unlike SEINE and SparseCtrl, which only change the appearance in the transition. More visual examples can be found in the supplementary material. Quantitative Comparisons. Following previous works (Guo et al., 2023; Zhang et al., 2018), we compare our method with SEINE and SparseCtrl with four quantitative metrics, including LPIPS- first, LPIPS-frames, CLIPSIM-first, and CLIPSIM-frames, as shown in Tab. 2. LPIPS-first and CLIPSIM-first measure the similarities between the first frame and other frames, which reflect the 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
结果说明了什么
图像比较中,主体相似度为0.8950,PhotoMaker为0.8924;文本CLIP指标为0.6586对0.6541。视频比较中,帧间LPIPS为0.1635,SparseCtrl为0.1768,低为好。这些自动指标支持特定设置下的改进,但不能相互替代为一个故事理解或物理正确性的总分。 (原文:PDF p.9, Table 1; Table 2)
指标:图像比较中,主体相似度为0.8950,PhotoMaker为0.8924;文本CLIP指标为0.6586对0.6541。视频比较中,帧间LPIPS为0.1635,SparseCtrl为0.1768,低为好。这些自动指标支持特定设置下的改进,但不能相互替代为一个故事理解或物理正确性的总分。
条件:仅限本地原始PDF的 Table 1; Table 2;不同表格与实验不合并
PDF p.9, Table 1; Table 2 · PDF p.9
Table 1: Quantitative comparisons of consistent image generation. Our StoryDiffusion achieves better text similarity and subject similarity even without any training. Metric IP-Adapter (Ye et al., 2023) Photo Maker (Li et al., 2023a) StoryDiffusion (ours) Text-Image Similarity 0.6129 0.6541 0.6586 Character Similarity 0.8802 0.8924 0.8950 Table 2: Quantitative comparisons with state-of-the-art transition video generation models. Methods LPIPS-first (↓) LPIPS-frames (↓) CLIPSIM-first (↑) CLIPSIM-frames (↑) SEINE 0.4332 0.2220 0.9259 0.9736 SparseCtrl 0.4913 0.1768 0.9032 0.9756 Ours 0.3794 0.1635 0.9606 0.9870 ages with inconsistent attire or diminished text controllability. For the first example, the IP-Adapter method generates an image lost “telescope” with the text prompt “Stargazing with a telescope”. PhotoMaker generates images matching the text prompt, but there are significant discrepancies in the attire across the three generated images. The third-row images generated by our StoryDiffu- sion exhibit consistent faces and attire with better text controllability. For the last example “A focused gamer wearing oversized headphones”, IP-Adapter lose the “dog” in the second image and the “cards” in the third image. The images generated by PhotoMaker could not maintain the attire. Our StoryDiffusion still generates subject-consistent images, with the same face, and same attire, and conforms to the description in the prompt. Quantitative Comparisons. We evaluate the quantitative comparison and show the results in Tab. 1. We evaluate two metrics, the first one is text-image similarity, which calculates the CLIP Score be- tween the text prompts and the corresponding images. The second is character similarity, which measures the CLIP Scores of the character images. Our StoryDiffusion achieves the best perfor- mance on both quantitative metrics, which shows our method’s robustness in maintaining character meanwhile conforming to prompt descriptions. 4.3 C OMPARISONS OF T RANSITION V IDEOS G ENERATION In transition video generation, we conduct comparisons with the two state-of-the-art methods, Spar- seCtrl (Guo et al., 2023) and SEINE (Chen et al., 2023), to evaluate our performance. We randomly sample around 1000 videos as the test dataset. We employ the three comparison models to predict the intermediate frames of a transition video, given the start and end frames, in order to assess their performance. Qualitative Comparisons. We conduct the qualitative comparison of transition video generation and show the results in Fig. 5. Our StoryDiffusion significantly outperforms SEINE (Chen et al., 2023) and SparseCtrl (Guo et al., 2023), generating transition videos that are smooth and physically plausible. For the first example, two people kissing underwater, the intermediate frames generated by SEINE are corrupted, and there is a direct jump to the final frame. SparseCtrl generates re- sults with slightly better continuity, but the intermediate frames still contain corrupted images, with numerous hands appearing. However, our StoryDiffusion succeeds in generating videos with very smooth motion without corrupted intermediate frames. For the second example, the intermediate frames generated by SEINE have corrupted arms. SparseCtrl, on the other hand, fails to maintain consistency in appearance. Our StoryDiffusion generates consistent videos with excellent continu- ity. For the last example, the video we generate adheres to physical spatial relationships, unlike SEINE and SparseCtrl, which only change the appearance in the transition. More visual examples can be found in the supplementary material. Quantitative Comparisons. Following previous works (Guo et al., 2023; Zhang et al., 2018), we compare our method with SEINE and SparseCtrl with four quantitative metrics, including LPIPS- first, LPIPS-frames, CLIPSIM-first, and CLIPSIM-frames, as shown in Tab. 2. LPIPS-first and CLIPSIM-first measure the similarities between the first frame and other frames, which reflect the 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
这篇论文哪里最强,哪里最危险
论文指出,主体服装一致性和更长视频生成仍面临限制。应把这些作为观察到的能力边界,不能在没有对照实验时归因于“缺少某一种记忆模块”。视觉相似并不自动意味着叙事因果、动作和长时间连续性都正确。 (原文:PDF p.16, Limitations)
指标:论文指出,主体服装一致性和更长视频生成仍面临限制。应把这些作为观察到的能力边界,不能在没有对照实验时归因于“缺少某一种记忆模块”。视觉相似并不自动意味着叙事因果、动作和长时间连续性都正确。
条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并
PDF p.16, Limitations · PDF p.16
“More Transition Videos generated by StoryDiffusion” Figure 7: More video results generated by our StoryDiffusion. Best viewed with Acrobat Reader. Click the image to play the video. A.2 C ONSISTENT I MAGES G ENERATION WITH C ONTROL N ET Given that our Consistent Self-Attention is training-free and pluggable, we further explore integra- tion with ControlNet (Zhang et al., 2023b) to introduce pose control in the generation of subject- consistent images. The results of combining our Consistent Self-Attention with ControlNet are displayed in Fig. 8. Our approach is also capable of generating subject-consistent images under the guidance of ControlNet. B I MPLEMENTATION D ETAILS For training our transition video model, we utilize the AnimateDiff V2 motion module (Guo et al., 2024) as our initial weights of the temporal module. We set our learning rate at 1e-4 and conduct training 100k iterations on 8 A100 GPUs. To encode the conditional images into the image semantic space, we utilize the OpenCLIP ViT-H-14 (Radford et al., 2021; Cherti et al., 2023) pre-trained model. Our Semantic Motion Predictor incorporates 8 transformer layers, with a hidden dimension of 1024 and 12 attention heads. C L IMITATIONS The first limitation arises in our subject-consistent image generation. Similar to current state-of-the- art methods (Ye et al., 2023), there may exist inconsistencies in some minor clothing details, such as ties. In this case, our Consistent Self-Attention may require more detailed prompts to maintain consistency across images. The second limitation is in our transition video generation. Although one can utilize StoryDiffusion to generate longer videos using a sliding window approach, our method is not designed specifically for long video generation. Consequently, our method is not yet perfect for generating very long videos due to the absence of global information exchange. We will further explore long video generation in our future work. 16
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
读完后记住这三件事
跨图注意力共享外观信息。视频预测器另外训练。视觉相似不能保证长程叙事与物理正确。 (原文:PDF p.2, Introduction;PDF p.5, Consistent Self-Attention;PDF p.7, Semantic Motion Predictor;PDF p.9, experimental setup;PDF p.9, Table 1; Table 2;PDF p.16, Limitations)
指标:StoryDiffusion针对多幅故事图之间的主体一致性,并进一步生成图与图之间的视频过渡。它的两个环节要区分:图像一致性依赖扩散注意力中的跨图信息,视频过渡则需要预测语义空间里的中间状态。
条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并
PDF p.2, Introduction · PDF p.2
Consistent images generated by StoryDiffusion “Jungle Adventure” “The Moon Exploration by Lecun” (a) (b) Transition Videos generated by StoryDiffusion “Video Clips” “Long-Range Video” (c) Figure 1: Images and videos generated by our StoryDiffusion. (a) Comic generated by StoryDif- fusion telling the story of a man who discovers a treasure while exploring the jungle. (b) Comic generated by StoryDiffusion describing the expedition to the moon by Lecun, with a reference im- age control (Li et al., 2023a) same as Fig. 6(b). (c) Videos generated by our StoryDiffusion. Click the image to play the video. Best viewed with Acrobat Reader. More generated videos can be found in our home project: https://StoryDiffusion.github.io. As evidenced by previous works (Tian et al., 2023; Hong et al., 2023), self-attention is one of the most important modules for modeling the overall structure of the generated visual content. Our main motivation is that if we could use a reference image to guide the self-attention calculation, the consistency between the two images is supposed to be improved significantly. As the self-attention weights are input-dependent, model training or fine-tuning might not be required. Following this idea, we propose Consistent Self-Attention, the core of our StoryDiffusion, which can be inserted into the diffusion backbone to replace the original self-attention in a zero-shot manner. Different from the standard self-attention that operates on the tokens representing a single image (as shown in Fig. 2(d)), Consistent Self-Attention incorporates sampled reference tokens from the reference images during the token similarity matrix calculation and token merging. The sampled tokens share the same set of Q-K-V weights and thus no extra training is required. As shown in Fig. 1, the generated images using Consistent Self-Attention successfully preserve the consistency in both identity and attire, which is vital for storytelling. Intuitively, Consistent Self-Attention builds 2
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:一致性自注意力保留当前图的查询,并从同批其他图像的特征中采样信息加入键和值,使相关图像在生成时共享主体外观线索。这个图像环节无需额外训练。共享不等于所有局部纹理与服装都会严格相同,也不意味着任意故事长度都已得到验证。
条件:仅限本地原始PDF的 Consistent Self-Attention;不同表格与实验不合并
PDF p.5, Consistent Self-Attention · PDF p.5
(a) Text-to-Image Diffusion with Consistent Self-Attention (b) Consistent Self-Att Block (CAB) (c) Consistent Self-Att Layer (CAL) CAB CAB CAB CAB Xt Xt-1 Boost Consistency by Consistent Self-Attention Diffusion UNet Split the Story into Five prompts and Generate in a Batch Story: A young man stands on the road, gazing his side. He then turns his head to look straight ahead and continuing his walk. Along the way, he spots a rose by the roadside, bends down to pick it up. Sampling Multiplication He hold it in front of chest and walks forward, laughing joyfully. Tokens (S+N)×C C Softmax Concat Generated Consistent Images for Storytelling N×(S+N) N×C N×C (d) Consistent Self-Attention Figure 2: The Pipeline of StoryDiffusion to generating subject-consistent images. To create subject- consistent images to describe a story, we incorporate our Consistent Self-Attention into the pre- trained text-to-image diffusion model. We split a story text into several prompts and generate images using these prompts in a batch. Consistent Self-Attention builds connections among multiple images in a batch for subject consistency. 3.1 T RAINING -F REE C ONSISTENT I MAGES G ENERATION In this subsection, we introduce how our method generates subject-consistent images in a training- free manner. The key to addressing the above issues lies in how to maintain consistency of characters within a batch of images. This means we need to establish connections between images within a batch during generation. After revisiting the role of the different attention mechanisms within dif- fusion models, we get inspired to explore utilizing self-attention to serve the consistency of images within a batch and propose our Consistent Self-Attention. We insert Consistent Self-Attention into the location of the original self-attention in the existing U-Net architecture of image generation models and reuse the original self-attention weights to remain training-free and pluggable. Formally, given a batch of image features I ∈ RB×N ×C , where B, N , and C are the batch size, number of tokens in each image, and channel number, respectively, we define a function Attention(Xk , Xq , Xv ) to calculate self-attention. Xk , Xq , and Xv stand for the query, key, and value used in attention calculation, respectively. The original self-attention is performed within each image feature Ii in I independently. The feature Ii is projected to Qi , Ki , Vi and sent into the attention function, yielding: O_i = \operatorname {Attention}\left (Q_i,K_i,V_i\right ). (1) To build interactions among the images within a batch to keep subject consistency, our Consistent Self-Attention samples some tokens Si from other image features in the batch: S_i = \operatorname {RandSample}\left (I_1, I_2, .., I_{i-1}, I_{i+1}, ..., I_{B-1}, I_{B}\right ), (2) where RandSample denotes the random sampling function. After sampling, we pair the sampled tokens Si and the image feature Ii to form a new set of tokens Pi . We then perform linear projections on Pi to generate the new key KP i and value VP i for Consistent Self-Attention. Here, the original query Qi is not changed. Finally, we compute the self-attention as follows: O_i = \operatorname {Attention}\left (Q_i, K_{Pi}, V_{Pi}\right ). (3) Given the paired tokens, our method performs the self-attention across a batch of images, facilitating interactions among features of different images. This type of interaction promotes the model to the convergence of characters, faces, and attires during the generation process. Despite the simple and training-free manner, our Consistent Self-Attention can efficiently generate subject-consistent 5
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:视频环节在图像语义空间中学习从端点图像到中间状态的变化,再用这些条件指导视频生成。作者训练了Semantic Motion Predictor,因此“图像一致性模块免训练”不能扩写为整个故事视频框架免训练。两端图的一致性与中间运动的合理性是不同问题。
条件:仅限本地原始PDF的 Semantic Motion Predictor;不同表格与实验不合并
PDF p.7, Semantic Motion Predictor · PDF p.7
To address this issue, we propose Semantic Motion Predictor, which encodes the image into the image semantic space to capture the spatial information, achieving more accurate motion prediction from a given start frame and an end frame. More specifically, in our Semantic Motion Predictor, we first use a function E to establish a mapping from the RGB images to vectors in the image semantic space, encoding the spatial information. Instead of directly using linear layers as E, we utilize a pre- trained CLIP image encoder as E to leverage its zero-shot capabilities for enhancing performance. Using E, the given start frame Fs and end frame Fe are compressed to image semantic space vectors Ks , Ke . K_s,K_e = E\left ( F_s, F_e \right ). (4) Subsequently, in the image semantic space, we train a transformer-based structure predictor to per- form predictions of each intermediate frame. The predictor first performs linear interpolation to expand the two frames Ks and Ke into sequence K1 , K2 , ..., KL , where L is the required video length. Then, the sequence K1 , K2 , ..., KL is sent into a series of transformer blocks B to predict the transition frames: P_1,P_2,...,P_l = B\left ( K_1, K_2,..., K_L \right ). (5) Next, we need to decode these predicted frames in the image semantic space into the final transition video. Inspired by the image prompt methods (Ye et al., 2023), we position these image semantic embeddings P1 , P2 , ..., PL as control signals, and the video diffusion model as the decoder to lever- age the generative ability of the video diffusion model. We also insert additional linear layers to project these embeddings into keys and values, involving into cross-attention of U-Net. Formally, during the diffusion process, for each video frame feature Vi , we concatenate the text embeddings T and the predicted image semantic embeddings Pi . The cross-attention is computed as follows: V_i = \mathrm {CrossAttention}\left ( V_i, \operatorname {concat}(T,P_i),\operatorname {concat}(T,P_i) \right ). (6) Similar to previous video generation approaches, we optimize our model by calculating the MSE loss between L frames predicted transition video O = (O1 , O2 , ..., OL ) and L frame ground truth G = (G1 , G2 , ..., GL ): Loss = \mathrm {MSE}\left ( G,O \right ). (7) By encoding images into an image semantic space for integrating spatial positional relationships, our Semantic Motion Predictor could better model motion information, enabling the generation of smooth transition videos with large motion. The results and comparisons that showcase the significant improvements can be observed in Fig. 1 and Fig. 5. 4 E XPERIMENTS 4.1 I MPLEMENTATION D ETAILS For the generation of subject-consistent images, due to the training-free and pluggable property, we implement our method on both Stable Diffusion XL and Stable Diffusion 1.5. To align with the comparison models, we conduct comparisons on the Stable-XL model using the same pre-trained weights. All comparison models utilize 50-step DDIM sampling, and the classifier-free guidance score is consistently set to 5.0. For the generation of consistent videos, we implement our method based on the Stable Diffusion 1.5 pertained model and incorporate a pretrained temporal module (Guo et al., 2024) to enable video generation. All comparison models adopt a 7.5 classifier-free guidance score and 50-step DDIM sampling. Following the previous methods (Guo et al., 2023; Chen et al., 2023), we use the Webvid10M (Bain et al., 2021) dataset to train our transition video model. More details can be found in the supplementary materials. 4.2 C OMPARISONS OF C ONSISTENT I MAGES G ENERATION We evaluate our method for generating subject-consistent images by comparing it with the two most recent ID preservation methods, IP-Adapter (Ye et al., 2023) and Photo Maker (Ye et al., 2023). To test the performance, we use GPT-4 to generate twenty character prompts and one hundred activity 7
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者把故事图像质量与视频平滑性分开评估,分别对照图像身份保持方法和视频控制方法。自动相似度只能覆盖一部分视觉质量,不等于人类对故事的全部判断。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.9, experimental setup · PDF p.9
Table 1: Quantitative comparisons of consistent image generation. Our StoryDiffusion achieves better text similarity and subject similarity even without any training. Metric IP-Adapter (Ye et al., 2023) Photo Maker (Li et al., 2023a) StoryDiffusion (ours) Text-Image Similarity 0.6129 0.6541 0.6586 Character Similarity 0.8802 0.8924 0.8950 Table 2: Quantitative comparisons with state-of-the-art transition video generation models. Methods LPIPS-first (↓) LPIPS-frames (↓) CLIPSIM-first (↑) CLIPSIM-frames (↑) SEINE 0.4332 0.2220 0.9259 0.9736 SparseCtrl 0.4913 0.1768 0.9032 0.9756 Ours 0.3794 0.1635 0.9606 0.9870 ages with inconsistent attire or diminished text controllability. For the first example, the IP-Adapter method generates an image lost “telescope” with the text prompt “Stargazing with a telescope”. PhotoMaker generates images matching the text prompt, but there are significant discrepancies in the attire across the three generated images. The third-row images generated by our StoryDiffu- sion exhibit consistent faces and attire with better text controllability. For the last example “A focused gamer wearing oversized headphones”, IP-Adapter lose the “dog” in the second image and the “cards” in the third image. The images generated by PhotoMaker could not maintain the attire. Our StoryDiffusion still generates subject-consistent images, with the same face, and same attire, and conforms to the description in the prompt. Quantitative Comparisons. We evaluate the quantitative comparison and show the results in Tab. 1. We evaluate two metrics, the first one is text-image similarity, which calculates the CLIP Score be- tween the text prompts and the corresponding images. The second is character similarity, which measures the CLIP Scores of the character images. Our StoryDiffusion achieves the best perfor- mance on both quantitative metrics, which shows our method’s robustness in maintaining character meanwhile conforming to prompt descriptions. 4.3 C OMPARISONS OF T RANSITION V IDEOS G ENERATION In transition video generation, we conduct comparisons with the two state-of-the-art methods, Spar- seCtrl (Guo et al., 2023) and SEINE (Chen et al., 2023), to evaluate our performance. We randomly sample around 1000 videos as the test dataset. We employ the three comparison models to predict the intermediate frames of a transition video, given the start and end frames, in order to assess their performance. Qualitative Comparisons. We conduct the qualitative comparison of transition video generation and show the results in Fig. 5. Our StoryDiffusion significantly outperforms SEINE (Chen et al., 2023) and SparseCtrl (Guo et al., 2023), generating transition videos that are smooth and physically plausible. For the first example, two people kissing underwater, the intermediate frames generated by SEINE are corrupted, and there is a direct jump to the final frame. SparseCtrl generates re- sults with slightly better continuity, but the intermediate frames still contain corrupted images, with numerous hands appearing. However, our StoryDiffusion succeeds in generating videos with very smooth motion without corrupted intermediate frames. For the second example, the intermediate frames generated by SEINE have corrupted arms. SparseCtrl, on the other hand, fails to maintain consistency in appearance. Our StoryDiffusion generates consistent videos with excellent continu- ity. For the last example, the video we generate adheres to physical spatial relationships, unlike SEINE and SparseCtrl, which only change the appearance in the transition. More visual examples can be found in the supplementary material. Quantitative Comparisons. Following previous works (Guo et al., 2023; Zhang et al., 2018), we compare our method with SEINE and SparseCtrl with four quantitative metrics, including LPIPS- first, LPIPS-frames, CLIPSIM-first, and CLIPSIM-frames, as shown in Tab. 2. LPIPS-first and CLIPSIM-first measure the similarities between the first frame and other frames, which reflect the 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:图像比较中,主体相似度为0.8950,PhotoMaker为0.8924;文本CLIP指标为0.6586对0.6541。视频比较中,帧间LPIPS为0.1635,SparseCtrl为0.1768,低为好。这些自动指标支持特定设置下的改进,但不能相互替代为一个故事理解或物理正确性的总分。
条件:仅限本地原始PDF的 Table 1; Table 2;不同表格与实验不合并
PDF p.9, Table 1; Table 2 · PDF p.9
Table 1: Quantitative comparisons of consistent image generation. Our StoryDiffusion achieves better text similarity and subject similarity even without any training. Metric IP-Adapter (Ye et al., 2023) Photo Maker (Li et al., 2023a) StoryDiffusion (ours) Text-Image Similarity 0.6129 0.6541 0.6586 Character Similarity 0.8802 0.8924 0.8950 Table 2: Quantitative comparisons with state-of-the-art transition video generation models. Methods LPIPS-first (↓) LPIPS-frames (↓) CLIPSIM-first (↑) CLIPSIM-frames (↑) SEINE 0.4332 0.2220 0.9259 0.9736 SparseCtrl 0.4913 0.1768 0.9032 0.9756 Ours 0.3794 0.1635 0.9606 0.9870 ages with inconsistent attire or diminished text controllability. For the first example, the IP-Adapter method generates an image lost “telescope” with the text prompt “Stargazing with a telescope”. PhotoMaker generates images matching the text prompt, but there are significant discrepancies in the attire across the three generated images. The third-row images generated by our StoryDiffu- sion exhibit consistent faces and attire with better text controllability. For the last example “A focused gamer wearing oversized headphones”, IP-Adapter lose the “dog” in the second image and the “cards” in the third image. The images generated by PhotoMaker could not maintain the attire. Our StoryDiffusion still generates subject-consistent images, with the same face, and same attire, and conforms to the description in the prompt. Quantitative Comparisons. We evaluate the quantitative comparison and show the results in Tab. 1. We evaluate two metrics, the first one is text-image similarity, which calculates the CLIP Score be- tween the text prompts and the corresponding images. The second is character similarity, which measures the CLIP Scores of the character images. Our StoryDiffusion achieves the best perfor- mance on both quantitative metrics, which shows our method’s robustness in maintaining character meanwhile conforming to prompt descriptions. 4.3 C OMPARISONS OF T RANSITION V IDEOS G ENERATION In transition video generation, we conduct comparisons with the two state-of-the-art methods, Spar- seCtrl (Guo et al., 2023) and SEINE (Chen et al., 2023), to evaluate our performance. We randomly sample around 1000 videos as the test dataset. We employ the three comparison models to predict the intermediate frames of a transition video, given the start and end frames, in order to assess their performance. Qualitative Comparisons. We conduct the qualitative comparison of transition video generation and show the results in Fig. 5. Our StoryDiffusion significantly outperforms SEINE (Chen et al., 2023) and SparseCtrl (Guo et al., 2023), generating transition videos that are smooth and physically plausible. For the first example, two people kissing underwater, the intermediate frames generated by SEINE are corrupted, and there is a direct jump to the final frame. SparseCtrl generates re- sults with slightly better continuity, but the intermediate frames still contain corrupted images, with numerous hands appearing. However, our StoryDiffusion succeeds in generating videos with very smooth motion without corrupted intermediate frames. For the second example, the intermediate frames generated by SEINE have corrupted arms. SparseCtrl, on the other hand, fails to maintain consistency in appearance. Our StoryDiffusion generates consistent videos with excellent continu- ity. For the last example, the video we generate adheres to physical spatial relationships, unlike SEINE and SparseCtrl, which only change the appearance in the transition. More visual examples can be found in the supplementary material. Quantitative Comparisons. Following previous works (Guo et al., 2023; Zhang et al., 2018), we compare our method with SEINE and SparseCtrl with four quantitative metrics, including LPIPS- first, LPIPS-frames, CLIPSIM-first, and CLIPSIM-frames, as shown in Tab. 2. LPIPS-first and CLIPSIM-first measure the similarities between the first frame and other frames, which reflect the 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:论文指出,主体服装一致性和更长视频生成仍面临限制。应把这些作为观察到的能力边界,不能在没有对照实验时归因于“缺少某一种记忆模块”。视觉相似并不自动意味着叙事因果、动作和长时间连续性都正确。
条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并
PDF p.16, Limitations · PDF p.16
“More Transition Videos generated by StoryDiffusion” Figure 7: More video results generated by our StoryDiffusion. Best viewed with Acrobat Reader. Click the image to play the video. A.2 C ONSISTENT I MAGES G ENERATION WITH C ONTROL N ET Given that our Consistent Self-Attention is training-free and pluggable, we further explore integra- tion with ControlNet (Zhang et al., 2023b) to introduce pose control in the generation of subject- consistent images. The results of combining our Consistent Self-Attention with ControlNet are displayed in Fig. 8. Our approach is also capable of generating subject-consistent images under the guidance of ControlNet. B I MPLEMENTATION D ETAILS For training our transition video model, we utilize the AnimateDiff V2 motion module (Guo et al., 2024) as our initial weights of the temporal module. We set our learning rate at 1e-4 and conduct training 100k iterations on 8 A100 GPUs. To encode the conditional images into the image semantic space, we utilize the OpenCLIP ViT-H-14 (Radford et al., 2021; Cherti et al., 2023) pre-trained model. Our Semantic Motion Predictor incorporates 8 transformer layers, with a hidden dimension of 1024 and 12 attention heads. C L IMITATIONS The first limitation arises in our subject-consistent image generation. Similar to current state-of-the- art methods (Ye et al., 2023), there may exist inconsistencies in some minor clothing details, such as ties. In this case, our Consistent Self-Attention may require more detailed prompts to maintain consistency across images. The second limitation is in our transition video generation. Although one can utilize StoryDiffusion to generate longer videos using a sliding window approach, our method is not designed specifically for long video generation. Consequently, our method is not yet perfect for generating very long videos due to the absence of global information exchange. We will further explore long video generation in our future work. 16
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
代码从哪里读
原始来源入口。此处是论文或作者项目入口;本轮核验以本地原始PDF为准。没有运行仓库、下载模型或重做实验;不把项目演示视为独立复现证据。