Traceback (most recent call last):


 "./LSP_train.py", line 154, in <module>

args.train_batch_size, n_gpu, timestamp))


 "/opt/conda/envs/pytorch-py3.6/lib/python3.6/posixpath.py", line 80, in join

a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Traceback (most recent call last):


 "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2446, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1951, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1820, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise

raise value


 "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1949, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1935, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "ocrRecognize.py", line 57, in ocr_recognize

results = run(gray_pil)


 "/usr/local/lib/python3.6/dist-packages/tr-1.1.2.2-py3.6.egg/tr/tr.py", line 244, in run

rect_arr = numpy.int0(rect_arr)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'