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

得到fastreid模型的特征向量 #9

Open
Takizzl opened this issue Sep 3, 2022 · 1 comment
Open

得到fastreid模型的特征向量 #9

Takizzl opened this issue Sep 3, 2022 · 1 comment

Comments

@Takizzl
Copy link

Takizzl commented Sep 3, 2022

博主您好,我想问一下您的code里面有图片送入模型后得到的相关特征向量的代码吗,不知道为什么您在getRectsFeature函数中返回的是bool型呢,没有返回feature这个值吗,因为我想要得到feature特征向量,来和库中的特征向量计算其余弦相似度,得到我的结果

@Zhou-sx
Copy link
Owner

Zhou-sx commented Sep 6, 2022

奥,getRectsFeature函数不应该有返回值,引起了歧义
getRectsFeature函数里 FeatureTensor::doInference计算了feature特征向量 放在了det[i].feature里面(det[i] 是一个DETECTION_ROW类)

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