Open WangYixuan12 opened 1 year ago
We have no text encoder API for now. We will improve it later.
You may see the forward function, where the first step is to extract text features: https://github.com/IDEA-Research/GroundingDINO/blob/main/groundingdino/models/GroundingDINO/groundingdino.py#L263
Thank you for your reply! Just to double-check, encoded_text
is the text feature used, right?
Hi,
Thank you for your awesome work! I wonder whether there is an API for text encoder that takes in texts and outputs text features, like https://huggingface.co/docs/transformers/model_doc/owlvit#transformers.OwlViTTextModel in OWL-ViT.
Best, Yixuan