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

2D Enc + 3D Dec #2

Open
ryancll opened this issue Jun 5, 2024 · 2 comments
Open

2D Enc + 3D Dec #2

ryancll opened this issue Jun 5, 2024 · 2 comments

Comments

@ryancll
Copy link

ryancll commented Jun 5, 2024

frame_end = 1 + (len(video_reader) -1) // 4 * 4

Thank you for sharing the wonderful work!

According to your example code, the number of frames to encode in video mode should be 1 + 4*(N - 1). That means we have to drop several frames in some cases. Can we encode frames in image mode and decode latents in video mode to keep all frames and get temporal-interpolated outputs?

@sijeh
Copy link
Collaborator

sijeh commented Jun 7, 2024

frame_end = 1 + (len(video_reader) -1) // 4 * 4

Thank you for sharing the wonderful work!

According to your example code, the number of frames to encode in video mode should be 1 + 4*(N - 1). That means we have to drop several frames in some cases. Can we encode frames in image mode and decode latents in video mode to keep all frames and get temporal-interpolated outputs?

Apologies for the late response. We've attempted to encode the video in image mode (N frames of pixels -> N frames of latents ) and decode it using video mode (N frames of latents -> 1 + 4*(N-1) frames of pixels). Unfortunately, this does not yield a temporally interpolated output. This is because encoding in image mode treats each frame independently, meaning the resulting latents does not contain effective motion information. Therefore, the video decoded in video mode is not temporally smooth. Interestingly, the 3D Decoder can achieve some degree of interpolation for smaller motions. Please note that this interpolation effect is extremely limited, so the 3D Decoder should not be considered a frame interpolation model.

@abcdvzz
Copy link

abcdvzz commented Oct 14, 2024

how about 3d encoder, 2d decoder?

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

3 participants