Hello, I'm trying to train with custom data and got this error:
File "/home/phung/.local/lib/python3.9/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 174, in evaluation_step
output = self.trainer.accelerator.validation_step(args)
File "/home/phung/.local/lib/python3.9/site-packages/pytorch_lightning/accelerators/accelerator.py", line 226, in validation_step
return self.training_type_plugin.validation_step(*args)
File "/home/phung/.local/lib/python3.9/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 161, in validation_step
return self.lightning_module.validation_step(*args, **kwargs)
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model.py", line 382, in validation_step
results = self._run("test", batch)
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model.py", line 281, in _run
parses, f_parses, text_unit_field_labels, f_parse_box_ids = gen_parses(
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model_spade_graph_decoder.py", line 305, in gen_parses
parses, grouped_col_ids = gen_fg_parses(
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model_spade_graph_decoder.py", line 544, in gen_fg_parses
parses, remained_f_parse_head_ids = gen_grouped_parses(
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model_spade_graph_decoder.py", line 616, in gen_grouped_parses
parse = gen_grouped_parse1(
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model_spade_graph_decoder.py", line 644, in gen_grouped_parse1
f_parse1 = imp_get_f_parse_from_id_member(
File "/home/phung/phung/Anh_Hung/OCR/OCR-invoice/Vietnamese/spade/spade-2/spade/model/model_spade_graph_decoder.py", line 670, in imp_get_f_parse_from_id_member
idx = f_parse_head_id.index(id_member)
ValueError: 16 is not in list
Hello, I'm trying to train with custom data and got this error:
The config file:
The data file we used is this one (all the dev, devop, train, test.. are the same, this file is only for test purpose): data.zip
It would be awesome if you could give some pointers about what is wrong with the data. Thank you!