Please help me with the following error in importlib
python train_chart.py --cfg_file CornerNetLine --data_dir CornerNet/data/'linedata(1028)' --cache_path ./cache/
:219: RuntimeWarning: compiletime version 3.6 of module 'pycocotools._mask' does not match runtime version 3.8
:219: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 864 from C header, got 880 from PyObject
['line']
loading all datasets...
using 1 threads
loading from cache file: ./cache/line_train2019.pkl
loading annotations into memory...
/home/indra/indra/DeepRule/CornerNet/data/linedata(1028)/line/annotations/instancesLine(1023)_train2019.json
Done (t=1.36s)
creating index...
index created!
loading from cache file: ./cache/line_val2019.pkl
loading annotations into memory...
/home/indra/indra/DeepRule/CornerNet/data/linedata(1028)/line/annotations/instancesLine(1023)_val2019.json
Done (t=0.02s)
creating index...
index created!
system config...
{'batch_size': 26,
'cache_dir': './cache/',
'chunk_sizes': [5, 7, 7, 7],
'config_dir': './config',
'data_dir': 'CornerNet/data/linedata(1028)',
'data_rng': RandomState(MT19937) at 0x7FBD341EAE40,
'dataset': 'Line',
'decay_rate': 10,
'display': 5,
'learning_rate': 0.00025,
'max_iter': 50000,
'nnet_rng': RandomState(MT19937) at 0x7FBD299F1040,
'opt_algo': 'adam',
'prefetch_size': 5,
'pretrain': None,
'result_dir': './results',
'sampling_function': 'kp_detection',
'snapshot': 5000,
'snapshot_name': 'CornerNetLine',
'stepsize': 45000,
'tar_data_dir': 'cls',
'test_split': 'testchart',
'train_split': 'trainchart',
'val_iter': 100,
'val_split': 'valchart',
'weight_decay': False,
'weight_decay_rate': 1e-05,
'weight_decay_type': 'l2'}
db config...
{'ae_threshold': 0.5,
'border': 128,
'categories': 1,
'data_aug': True,
'gaussian_bump': True,
'gaussian_iou': 0.3,
'gaussian_radius': -1,
'input_size': [511, 511],
'lighting': True,
'max_per_image': 100,
'merge_bbox': False,
'nms_algorithm': 'exp_soft_nms',
'nms_kernel': 3,
'nms_threshold': 0.5,
'output_sizes': [[128, 128]],
'rand_color': True,
'rand_crop': True,
'rand_pushes': False,
'rand_samples': False,
'rand_scale_max': 1.4,
'rand_scale_min': 0.6,
'rand_scale_step': 0.1,
'rand_scales': array([0.6, 0.7, 0.8, 0.9, 1. , 1.1, 1.2, 1.3]),
'special_crop': False,
'test_scales': [1],
'top_k': 200,
'weight_exp': 8}
len of db: 116745
building model...
module_file: models.CornerNetLine
Traceback (most recent call last):
File "train_chart.py", line 217, in
train(training_dbs, validation_db, args.start_iter)
File "train_chart.py", line 86, in train
nnet = NetworkFactory(training_dbs[0])
File "/home/indra/indra/DeepRule/nnet/py_factory.py", line 40, in init
self.model = DummyModule(nnet_module.model(db))
TypeError: init() takes 1 positional argument but 2 were given