shahrukhqasim / TIES-2.0

Code for: S.R. Qasim, H. Mahmood, and F. Shafait, Rethinking Table Recognition using Graph Neural Networks (2019)
MIT License
276 stars 69 forks source link

What is the "config" argument in `table_adjacency_parsing.py` ? #4

Closed munikarmanish closed 5 years ago

munikarmanish commented 5 years ago

I followed all the steps you mentioned in the README to train/test the model:

(ties) manish@gpu:~/code/TIES-2.0/python$ python bin/iterate/table_adjacency_parsing.py ../configs/config.ini config
Traceback (most recent call last):
  File "bin/iterate/table_adjacency_parsing.py", line 20, in <module>
    gconfig.init(args.input, args.config)
  File "/home/manish/code/TIES-2.0/python/libs/configuration_manager.py", line 17, in init
    config_manager_instance = ConfigurationManager(config_file_path, config_name)
  File "/home/manish/code/TIES-2.0/python/libs/configuration_manager.py", line 10, in __init__
    self.config = config_file[config_name]
  File "/usr/lib/python3.5/configparser.py", line 956, in __getitem__
    raise KeyError(key)
KeyError: 'config'

I looked at the help output:

usage: table_adjacency_parsing.py [-h] [--test TEST] [--profile PROFILE] [--visualize VISUALIZE] input config
table_adjacency_parsing.py: error: the following arguments are required: input, config

I couldn't figure out what are the input and config arguments for the script. Any help would be highly appreciated!

Useful system info:

shahrukhqasim commented 5 years ago

It is the section in the config file. Check details here: https://en.wikipedia.org/wiki/INI_file

dexterslabs commented 5 years ago

if you are using config.ini.example, you can use the following params table_adjacency_parsing.py configs/config.ini basic_conv_graph

ReikoMin commented 3 years ago

@munikarmanish Have you solved this problem so far? I also met the same problem,thanks