airsplay / lxmert

PyTorch code for EMNLP 2019 paper "LXMERT: Learning Cross-Modality Encoder Representations from Transformers".
MIT License
923 stars 157 forks source link

Get predictions for batches #110

Open 25icecreamflavors opened 2 years ago

25icecreamflavors commented 2 years ago

Is it possible to use this model in python code to predict answers for several samples at one time (i.e. using it for batch predictions)? If it is possible, could someone please share code how to do this, since I'm currently struggling with it.