TypeError: can't multiply sequence by non-int of type 'float' #8843
Unanswered
TasneemVKhan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
, error happened with msg: can't multiply sequence by non-int of type 'float'
Exception in thread Thread-3 (thread_loop):
Traceback (most recent call last):
File "F:\PaddlePaddle_1\ppocr\data\pubtab_dataset.py", line 100, in getitem
outs = transform(data, self.ops)
File "F:\PaddlePaddle_1\ppocr\data\imaug_init.py", line 51, in transform
data = op(data)
File "F:\PaddlePaddle_1\ppocr\data\imaug\gen_table_mask.py", line 221, in call
img_new, bbox_list_new = self.resize_img_table(img, bbox_list, self.max_len)
File "F:\PaddlePaddle_1\ppocr\data\imaug\gen_table_mask.py", line 207, in resize_img_table
left = int(left * ratio)
TypeError: can't multiply sequence by non-int of type 'float'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Tasneem Khan\anaconda3\envs\pytorch_trial_0\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\Tasneem Khan\anaconda3\envs\pytorch_trial_0\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Tasneem Khan\anaconda3\envs\pytorch_trial_0\lib\site-packages\paddle\fluid\dataloader\dataloader_iter.py", line 217, in _thread_loop
batch = self._dataset_fetcher.fetch(indices,
File "C:\Users\Tasneem Khan\anaconda3\envs\pytorch_trial_0\lib\site-packages\paddle\fluid\dataloader\fetcher.py", line 125, in fetch
data.append(self.dataset[idx])
File "F:\PaddlePaddle_1\ppocr\data\pubtab_dataset.py", line 109, in getitem
RecursionError: maximum recursion depth exceeded while calling a Python object
I'm using the Table Recognition model to train my own dataset
Pycharm env Python: 3.10
GPU:enabled
OS: Windows 11
Command I ran in terminal
python train.py -c F:\PaddlePaddle_1\configs\table\table_mv3.yml
Beta Was this translation helpful? Give feedback.
All reactions