Remove unused variable 'text_features'
This commit is contained in:
parent
a9b1bf5920
commit
dc414b8000
|
|
@ -37,7 +37,6 @@ text = clip.tokenize(["a diagram", "a dog", "a cat"]).to(device)
|
|||
|
||||
with torch.no_grad():
|
||||
image_features = model.encode_image(image)
|
||||
text_features = model.encode_text(text)
|
||||
|
||||
logits_per_image, logits_per_text = model(image, text)
|
||||
probs = logits_per_image.softmax(dim=-1).cpu().numpy()
|
||||
|
|
|
|||
Loading…
Reference in New Issue