marcusinthesky
commited on
Commit
·
dcbff95
1
Parent(s):
e3f253b
Upload model
Browse files- modelling.py +1 -1
modelling.py
CHANGED
@@ -157,7 +157,7 @@ class VTDEModel(VisionTextDualEncoderModel):
|
|
157 |
loss = clip_loss(logits_per_text)
|
158 |
|
159 |
if not return_dict:
|
160 |
-
output = (logits_per_image, logits_per_text, text_embeds, image_embeds,
|
161 |
return ((loss,) + output) if loss is not None else output
|
162 |
|
163 |
return CLIPOutput(
|
|
|
157 |
loss = clip_loss(logits_per_text)
|
158 |
|
159 |
if not return_dict:
|
160 |
+
output = (logits_per_image, logits_per_text, text_embeds, image_embeds, text_embeds, image_embeds)
|
161 |
return ((loss,) + output) if loss is not None else output
|
162 |
|
163 |
return CLIPOutput(
|