Closed Michael-Yi-Rong closed 1 week ago
我想把clip嵌入图像的文本改为longclip
model, preprocess = longclip.load("./checkpoints/longclip-B.pt", device=device) longclip.tokenize([xxxx]) text_features = model.encode_text(text)
我想把clip嵌入图像的文本改为longclip