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

Batch-wise inference (multiple images in parallel) support #19

Open
YuQiao0303 opened this issue Sep 22, 2023 · 1 comment
Open

Batch-wise inference (multiple images in parallel) support #19

YuQiao0303 opened this issue Sep 22, 2023 · 1 comment

Comments

@YuQiao0303
Copy link

Hi authors, thank you for this amazing work!
I notice that in 'main_ddpir_inpainting.py', there is a for loop that deal with one image at a time. If we have a lot of images to deal with, this may be relatively slow. I wonder if it's possible to process multiple images as a minibatch in parallel? Thank you!!

@yuanzhi-zhu
Copy link
Owner

Hi @YuQiao0303 ,

Thanks for your interest, could you please try e.g. python main_ddpir.py --opt configs/inpaint.yaml in the latest updated repository? You can try to change the batch size in the config file inpaint.yaml :)

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