Epoch:
0%|
| 0/100 [00:00<?, ?it/sTraceback (most recent call last):
| 0/4 [00:00<?, ?it/s]


 "run_seq_labeling.py", line 857, in <module>

main()


 "run_seq_labeling.py", line 752, in main

args, train_dataset, model, tokenizer, labels, pad_token_label_id


 "run_seq_labeling.py", line 215, in train

outputs = model(**inputs)


 "/root/anaconda3/envs/layoutlm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/root/sukumar/layoutlm/modeling_layoutlm.py", line 253, in forward

head_mask=head_mask,


 "/root/anaconda3/envs/layoutlm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/root/sukumar/layoutlm/modeling_layoutlm.py", line 190, in forward

input_ids, bbox, position_ids=position_ids, token_type_ids=token_type_ids,


 "/root/anaconda3/envs/layoutlm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/root/sukumar/layoutlm/modeling_layoutlm.py", line 59, in forward

left_position_embeddings = self.x_position_embeddings(bbox[:, :, 0])


 "/root/anaconda3/envs/layoutlm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/root/anaconda3/envs/layoutlm/lib/python3.6/site-packages/torch/nn/modules/sparse.py", line 114, in forward

self.norm_type, self.scale_grad_by_freq, self.sparse)


 "/root/anaconda3/envs/layoutlm/lib/python3.6/site-packages/torch/nn/functional.py", line 1484, in embedding

return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: index out of range: Tried to access index 1115 out of table with 1023 rows. at /opt/conda/conda-bld/pytorch_1573049304260/work/aten/src/TH/generic/THTensorEvenMoreMath.cpp:418

Traceback (most recent call last):


 "/usr/local/bin/jrnl", line 8, in <module>

sys.exit(run())


 "/usr/local/lib/python2.7/dist-packages/jrnl/cli.py", line 194, in run

journal = Journal.Journal(journal_name, **config)


 "/usr/local/lib/python2.7/dist-packages/jrnl/Journal.py", line 39, in __init__

self.open()


 "/usr/local/lib/python2.7/dist-packages/jrnl/Journal.py", line 105, in open

journal = util.get_password(keychain=self.name, validator=validate_password)


 "/usr/local/lib/python2.7/dist-packages/jrnl/util.py", line 37, in get_password

pwd_from_keychain = keychain and get_keychain(keychain)


 "/usr/local/lib/python2.7/dist-packages/jrnl/util.py", line 56, in get_keychain

return keyring.get_password('jrnl', journal_name)


 "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 57, in get_password

return _keyring_backend.get_password(service_name, username)


 "/usr/local/lib/python2.7/dist-packages/keyring/backends/fail.py", line 24, in get_password

raise RuntimeError(msg)
RuntimeError: No recommended backend was available. Install a recommended 3rd party backend package; or, install the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details.
