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

Reference images used for conditioning #42

Open
Sisso16 opened this issue Oct 25, 2024 · 3 comments
Open

Reference images used for conditioning #42

Sisso16 opened this issue Oct 25, 2024 · 3 comments

Comments

@Sisso16
Copy link

Sisso16 commented Oct 25, 2024

Hi there, first of all nice work!
Secondly, I wanted to use this model in a slightly different way and from the paper it seemed to me that it is possible to use one or more reference images during inference which are then used by the diffusion model for conditioning.
However going through the code it seems to me that always only one image is used for conditioning as we have condition_index = [0] in run diffusion.
I understand this would always be the case for the task of generating a video from a single image but already for the nvs_sparse_view this means that only one image among the available ones is being used for conditioning.
Thanks for your help in advance!

@Sisso16 Sisso16 changed the title Reference images to use for conditioning Reference images used for conditioning Oct 25, 2024
@Drexubery
Copy link
Owner

Thank you! Here, condition_index = [0] means input one of the reference images into the CLIP Image encoder (depicted in the pipeline figure). The CLIP Image encoder extracts high-level semantic information from the input image. We have tested both using all of the reference images and using only one reference image as input to the CLIP Image encoder, and we found no difference in model performance. Therefore, we only used one input in this case.

@Sisso16
Copy link
Author

Sisso16 commented Oct 28, 2024

I see, but is there a way to easily tweak the code to use more reference images for conditioning?

@Yuhuoo
Copy link

Yuhuoo commented Nov 14, 2024

I also encountered the same problem, do you have any solution now?

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