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

Is it possible to enable batch captioning? #4

Open
mxc19912008 opened this issue Mar 29, 2021 · 1 comment
Open

Is it possible to enable batch captioning? #4

mxc19912008 opened this issue Mar 29, 2021 · 1 comment

Comments

@mxc19912008
Copy link

Hi,

Thanks for the repo! It is very functional!

For the caption.py, is it possible to enable batch captioning? Currently decoding is a bit slow.

Thank you!

@RoyalSkye
Copy link
Owner

Hi,

Thanks for the repo! It is very functional!

For the caption.py, is it possible to enable batch captioning? Currently decoding is a bit slow.

Thank you!

Hi,

Sorry, we don't have a plan to modify it to the batch version, since decoding is an autoregressive process based on beam search, which is hard to track and align the sizes of a batch of matrices. However, u can refer to this link: https://zhuanlan.zhihu.com/p/167072494
By the way, may multiprocessing help to speed up without redesigning the batched beam search?

Thanks.

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