DSRAN
DSRAN copied to clipboard
关于MSCOCO测试集
因为一个图片对应的是五个caption,所以测试的是1K TEST 5折交叉验证用的是多少size的数据集, 5K TEST又用的是多少size的数据集? 在evalrank()函数中,有 for i in range(5): print(i) img_emb_new = img_embs[i * 5000 : int(i * 5000 + img_embs.size(0)/5):5] cap_emb_new = cap_embs[i * 5000 : int(i * 5000 + cap_embs.size(0)/5)] 这里明显,如果用1K张图扩展五倍构成的数据集,是一定会下标越界的.
使用的同样的测试集,即5k张图片和25k条句子。分为5折交叉测试以及全部一起测试。 您提到的函数中。测试时图片为了和文本对齐,扩充成了25000张(每5张是一样的),每次测试1k张,比如说第一个1k就是下标0-4999的5k张每隔5张取一张,即: img_emb_new = img_embs[i * 5000 : int(i * 5000 + img_embs.size(0)/5):5]
您好,因为看到在测试mscoco的时候,split的值是test,所以这段代码会不合理。但是如果换成testall就没有问题了。感谢您的回复!祝好!
zhaoyangl4ex
邮箱:[email protected]
在2020年11月29日 15:27,kywen1119 写道:
使用的同样的测试集,即5k张图片和25k条句子。分为5折交叉测试以及全部一起测试。 您提到的函数中。测试时图片为了和文本对齐,扩充成了25000张(每5张是一样的),每次测试1k张,比如说第一个1k就是下标0-4999的5k张每隔5张取一张,即: img_emb_new = img_embs[i * 5000 : int(i * 5000 + img_embs.size(0)/5):5]
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/kywen1119/DSRAN/issues/3#issuecomment-735355200", "url": "https://github.com/kywen1119/DSRAN/issues/3#issuecomment-735355200", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]