Yangyang Guo
Yangyang Guo
I mean the image features from Visual Genome. Though the pre-trained model is trained on this dataset, the image features can still be very useful in some specific tasks.
Hi @abhshkdz @kdexd ,thanks for your reply. I will try to divert the padding function from `__getitem__` to `__init__`, and check the memory consumption. I will get back to you...
Interestingly, after I moved the `to_indices()` and `_pad_sequence()` functions into the `__init__` of `reader` (this could result in worse readability), there is only marginal speed improvements as I tested. This...