fvd-comparison icon indicating copy to clipboard operation
fvd-comparison copied to clipboard

How to use your code on my video?

Open WuyangLuo opened this issue 2 years ago • 1 comments

Thanks for your great work! I try to use your code on my videos. I'm not sure if the way it is used is correct. I am using your code as follows:

  1. Read all frames using opencv from real and fake videos. And reshape them to (num_videos, video_len, 224, 224, 3)
  2. run compare_metrics.py (without any data pre-processing, such as transforms.Normalize() in pytorch )

Is this correct? @universome

WuyangLuo avatar Dec 25 '22 19:12 WuyangLuo

Hi @WuyangLuo , to compute FVD, I would recommend using the src/scripts/calc_metrics_for_dataset.py script from the main StyleGAN-V repo. It has the description on how to do this in the README file.

universome avatar Jan 02 '23 11:01 universome