ZhangXu0963 / NPC

The code of the paper "Negative Pre-aware for Noisy Cross-modal Matching" in AAAI 2024.
12 stars 2 forks source link

get_memorybank #10

Closed LuLu1226 closed 2 months ago

LuLu1226 commented 2 months ago

您好!不好意思再次打扰您了!我在执行get_memorybank.py 时出现下列错误,想向您求教: 捕获5

下面是错误代码: 捕获2

caoyan1998 commented 2 months ago

似乎是正确的(按照batch返回的值来看),刚好对应images, img_ids, texts, txtids,,,,_

caoyan1998 commented 2 months ago

可以互相加一个联系方式吗?我俩可以展开讨论,我的QQ号183802648,期待你的来访

LuLu1226 commented 2 months ago

可以互相加一个联系方式吗?我俩可以展开讨论,我的QQ号183802648,期待你的来访

好的

LuLu1226 commented 2 months ago

我知道了,索引越界错误是由于dataloader中丢弃了最后一个batch数据所导致的