Doubiiu / DynamiCrafter

[ECCV 2024] DynamiCrafter: Animating Open-domain Images with Video Diffusion Priors
Apache License 2.0
2.06k stars 161 forks source link

any need to transform condition image to [-1,1]? #68

Closed zhuhz22 closed 2 months ago

zhuhz22 commented 2 months ago

Hi Doubiiu,great work! I find it that in scripts/evaluation/inference.py ,we don't transform the condition image to [-1,1] (such as frame_tensor = (frame_tensor / 255. - 0.5) * 2).However,in scripts/evaluation/funcs.py , the function load_image_batch applies a transformation at line 201 , img_tensor = (img_tensor / 255. - 0.5) * 2 . I wonder whether or not there is a need to apply this at the inference code. Many thanks for you time!