PaddleX 中如何从 CLIP_vit_base_patch16_224 模型提取图像的高维特征? #4880
Unanswered
xiaoming0217
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
您好,PaddleX 团队~
我目前在使用 PaddleX 中的 CLIP_vit_base_patch16_224 模型做图像分类,但需要同时提取图像的高维特征向量(比如 CLIP 默认的 512 维),而不是只获取分类结果。
但现在遇到了问题:通过 paddlex.create_model 加载的推理模型,只能输出分类概率(比如二分类时输出 [[0.95, 0.05]]),找不到特征层的输出。
想请教一下:
对于 PaddleX 封装的 CLIP_vit_base_patch16_224 模型,该如何提取图像的 512 维高维特征?
麻烦帮忙解答下,非常感谢!
Beta Was this translation helpful? Give feedback.
All reactions