Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the frame generated by demo_2x.py is always 0.5 #5

Open
losehu opened this issue Dec 4, 2024 · 3 comments
Open

the frame generated by demo_2x.py is always 0.5 #5

losehu opened this issue Dec 4, 2024 · 3 comments

Comments

@losehu
Copy link

losehu commented Dec 4, 2024

No matter how I modify the timestep, the frame generated by demo_2x.py is always 0.5. Even when I change the timestep parameter in the inference function in Trainer_x4k.py, the generated frame is always 0.5 with no changes at all.

@lcxrocks
Copy link
Collaborator

lcxrocks commented Dec 4, 2024

This is because the provided checkpoints are trained in a fixed-timestep manner. Following most current VFI work, we use vimeo_triplet (input: t=0,1; target: t=0.5) as the pre-training dataset. Moreover, when fine-tuning on X-Train, we also use t=0.5 as the prediction target. So if you are looking for the results of other timesteps, I would recommend the following two solutions:

  1. Iterative interpolating. i.e. Following VFIMamba script or RIFE script or AMT script.
  2. Try other excellent works which are trained on more arbitrary timestep datasets, like vimeo_septuplet containing 7 consecutive frames. i.e. EMA-VFI-t, RIFE_m.

@losehu
Copy link
Author

losehu commented Dec 7, 2024

Is there any code available for generating the GIF shown in the paper, like this one: https://github.com/MCG-NJU/SGM-VFI/blob/main/figs/demo.gif?

@lcxrocks
Copy link
Collaborator

lcxrocks commented Dec 7, 2024

Every frame in the demonstrated GIFs is generated separately, i.e. the $i_{th}$ frame is generated by input frames $(i-t, i+t)$. We then combine them into a GIF for a clearer demonstration. For GIF generation code, you can refer to https://github.com/MCG-NJU/EMA-VFI/blob/75b6f6a889e695df875e103374040d47a4cfac7c/demo_2x.py#L55.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants