LateBird
LateBird
可能用法不一样吧
用您提供的代码去导出模型失败,'DLAseg' object has no attribute 'getattr'
@lsccccc Still got this error
用训练好的模型提取特征,相同的人和不同的人相似度都很高
`import torch import torch.nn as nn import torchvision.transforms as T import cv2 from config import cfg from model import make_model import torch.nn.functional as F import numpy as np from PIL...
模型用的官方提供的swin_small_msmt17.pth
1)模型载入成功 2)对比了test.py提取的特征和我demo里面提取的特征,数值是一样的 3)使用欧式距离,相同图片和不同图片能区分开,但换成余弦相似度,任何图片的相似度都在0.9+
明白了,谢谢