Traceback (most recent call last):
File "pretrain/train_end2end.py", line 51, in
main()
File "pretrain/train_end2end.py", line 47, in main
rank, model = train_net(args, config)
File "VL-BERT/pretrain/../pretrain/function/train.py", line 361, in train_net
gradient_accumulate_steps=config.TRAIN.GRAD_ACCUMULATE_STEPS)
File "VL-BERT/pretrain/../common/trainer.py", line 101, in train
for nbatch, batch in enumerate(train_loader):
File "VL-BERT/pretrain/../common/utils/multi_task_dataloader.py", line 35, in next
output_tuple = (*next(self.iters[0]), )
File "anaconda3/envs/vl-bert/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 582, in next
return self._process_next_batch(batch)
File "anaconda3/envs/vl-bert/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 608, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
TypeError: init() missing 2 required positional arguments: 'doc' and 'pos'
Traceback (most recent call last): File "pretrain/train_end2end.py", line 51, in
main()
File "pretrain/train_end2end.py", line 47, in main
rank, model = train_net(args, config)
File "VL-BERT/pretrain/../pretrain/function/train.py", line 361, in train_net
gradient_accumulate_steps=config.TRAIN.GRAD_ACCUMULATE_STEPS)
File "VL-BERT/pretrain/../common/trainer.py", line 101, in train
for nbatch, batch in enumerate(train_loader):
File "VL-BERT/pretrain/../common/utils/multi_task_dataloader.py", line 35, in next
output_tuple = (*next(self.iters[0]), )
File "anaconda3/envs/vl-bert/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 582, in next
return self._process_next_batch(batch)
File "anaconda3/envs/vl-bert/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 608, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
TypeError: init() missing 2 required positional arguments: 'doc' and 'pos'