Traceback (most recent call last):


 "train_ic15.py", line 283, in <module>

main(args)


 "train_ic15.py", line 251, in main

train_loss, train_te_acc, train_ke_acc, train_te_iou, train_ke_iou = train(train_loader, model, dice_loss, optimizer, epoch)


 "train_ic15.py", line 112, in train

for batch_idx, (imgs, gt_texts, gt_kernels, training_masks) in enumerate(train_loader):


 "/opt/conda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 336, in __next__

return self._process_next_batch(batch)


 "/opt/conda/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch

raise batch.exc_type(batch.exc_msg)
TypeError: function takes exactly 5 arguments (1 given)

Traceback (most recent call last):


 "/usr/lib/python2.7/dist-packages/salt/log/setup.py", line 1133, in __global_logging_exception_handler

exc_type, exc_value, exc_traceback


 "/usr/lib/python2.7/logging/__init__.py", line 1193, in error

self._log(ERROR, msg, args, **kwargs)


 "/usr/lib/python2.7/dist-packages/salt/log/setup.py", line 327, in _log

self, level, msg, args, exc_info=exc_info, extra=extra


 "/usr/lib/python2.7/logging/__init__.py", line 1285, in _log

record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)


 "/usr/lib/python2.7/dist-packages/salt/log/setup.py", line 350, in makeRecord

_msg = msg.decode(salt_system_encoding, 'replace')


 "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)
TypeError: 'NoneType' object is not callable
