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

如何批量地输入图片和文本呢? #11

Open
BitHub00 opened this issue Aug 26, 2022 · 1 comment
Open

如何批量地输入图片和文本呢? #11

BitHub00 opened this issue Aug 26, 2022 · 1 comment

Comments

@BitHub00
Copy link

请问如何批量地输入<图片,文本>数据通过预训练好地模型生成embedding?在inference_demo.py中演示的是单图片和单文本的情况

@gitabtion
Copy link

gitabtion commented Aug 27, 2022

https://github.com/yuxie11/R2D2/blob/main/prd2_inference_demo.py的第36行的text_embedding即为一个batch的text embedding.

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