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

multi images inference preprocess method #390

Open
zyandtom opened this issue Jan 12, 2025 · 0 comments
Open

multi images inference preprocess method #390

zyandtom opened this issue Jan 12, 2025 · 0 comments

Comments

@zyandtom
Copy link

zyandtom commented Jan 12, 2025

Hi, I found that the default image preprocess method is only for single image input.
image
image
in process_images func, we will use process_anyres_image as default preprocessor, which will cause a huge increase for image input tokens(surpass 32768) when we have multi images input. My solution for inference is change to preprocessor used in training

image = [self.process_image(f, "pad") for f in image_file]

is that correct?

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

1 participant