Update README.md
Browse files
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
|
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))
|