visDial.pytorch icon indicating copy to clipboard operation
visDial.pytorch copied to clipboard

This code does nothing ?

Open PolarLion opened this issue 6 years ago • 1 comments

https://github.com/jiasenlu/visDial.pytorch/blob/f1aa59704902bdbf4be8e507b30f55d87633debb/misc/dataLoader.py#L117

Hi, I found this code does nothing for ans_idx[i] is a float number while opt_ids is an int matrix. Did you mean "opt_ids = np.delete(opt_ids,self.ans_ids[index, i], 0)" instead of "opt_ids = np.delete(opt_ids, ans_idx[i], 0)" (pytorch 0.4.0, python3..6.5, numpy 1.14.3)

Thank you very much.

PolarLion avatar Oct 03 '18 06:10 PolarLion

Have you solved these problems?

jiangshiling avatar Oct 15 '18 10:10 jiangshiling