Skip to content

Commit de09b0b

Browse files
committed
updates
1 parent c15a5fc commit de09b0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MMLLM/庖丁解牛BLIP2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ image_feats 中每个 image_feat 与 text_feat 计算一个 similarity score ,
186186

187187
# 计算 图文对比 Loss
188188
loss_itc = (
189+
# sim_i2t 形状是 (B, B),每一行表示一张图像和所有文本之间的相似度。
189190
F.cross_entropy(sim_i2t, targets, label_smoothing=0.1) + F.cross_entropy(sim_t2i, targets, label_smoothing=0.1)
190191
) / 2
191192
```

0 commit comments

Comments
 (0)