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

文本特征提取 #15

Open
nhw649 opened this issue Dec 21, 2023 · 2 comments
Open

文本特征提取 #15

nhw649 opened this issue Dec 21, 2023 · 2 comments

Comments

@nhw649
Copy link

nhw649 commented Dec 21, 2023

作者你好,我拜读了您的文章,有一些不太理解的地方想请你指教。对于coco数据集仅有类别,如何得到句子特征,是构建一个类似于“a photo of xxx”的prompt吗?我对grounding任务不太熟悉,那grounding是如何构建单词特征呢?是取所有类别吗?

@shenyunhang
Copy link
Owner

shenyunhang commented Dec 21, 2023

感谢您的关注。
对于文本特征提取:

  1. detection任务,直接把每个类别当作一个句子,相当于直接提取类别的特征,没有加前缀和后缀。这部分代码在这里
  2. grounding任务,提取gt里的句子的特征,同时再加一些其他句子做负类。这部分代码在这里

@nhw649
Copy link
Author

nhw649 commented Dec 21, 2023

感谢您的关注。 对于文本特征提取:

  1. 检测任务,直接把每个类别当作一个句子,相当于直接提取类别的特征,没有加前缀和后缀。这部分代码在这里
  2. grounding任务,提取gt里的句子的特征,同时再加一些其他句子做负类。这部分代码在这里

明白了,谢谢回复。

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