Transformers
PyTorch
English
bridgetower
gaudi
Inference Endpoints
anahita-b commited on
Commit
8a0275b
1 Parent(s): b1aa9eb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -51,7 +51,7 @@ processor = BridgeTowerProcessor.from_pretrained("BridgeTower/bridgetower-large-
51
  model = BridgeTowerForContrastiveLearning.from_pretrained("BridgeTower/bridgetower-large-itm-mlm-itc")
52
 
53
  inputs  = processor(images, texts, padding=True, return_tensors="pt")
54
- outputs = model(**inputs, labels=torch.ones(2,device=device))
55
 
56
  inputs  = processor(images, texts[::-1], padding=True, return_tensors="pt")
57
  outputs_swapped = model(**inputs, labels=torch.ones(2))
 
51
  model = BridgeTowerForContrastiveLearning.from_pretrained("BridgeTower/bridgetower-large-itm-mlm-itc")
52
 
53
  inputs  = processor(images, texts, padding=True, return_tensors="pt")
54
+ outputs = model(**inputs, labels=torch.ones(2))
55
 
56
  inputs  = processor(images, texts[::-1], padding=True, return_tensors="pt")
57
  outputs_swapped = model(**inputs, labels=torch.ones(2))