You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test.py", line 8, in
table_str, elapse = table_rec(img_path)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\main.py", line 45, in call
polygons = self.table_line_rec(img)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\table_line_rec.py", line 37, in call
polygons = self.postprocess(pred)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\table_line_rec.py", line 97, in postprocess
bbox, _ = bbox_decode(hm[:, 0:1, :, :], c2v, reg=reg, K=self.K)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 17, in bbox_decode
scores, inds, clses, ys, xs = _topk(heat, K=K)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 91, in _topk
topk_inds = _gather_feat(topk_inds.reshape(batch, -1, 1), topk_ind).reshape(
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 134, in _gather_feat
feat = _gather_np(feat, 1, ind)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 160, in _gather_np
raise TypeError("The values of index must be integers")
TypeError: The values of index must be integers
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Traceback (most recent call last):
File "test.py", line 8, in
table_str, elapse = table_rec(img_path)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\main.py", line 45, in call
polygons = self.table_line_rec(img)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\table_line_rec.py", line 37, in call
polygons = self.postprocess(pred)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\table_line_rec.py", line 97, in postprocess
bbox, _ = bbox_decode(hm[:, 0:1, :, :], c2v, reg=reg, K=self.K)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 17, in bbox_decode
scores, inds, clses, ys, xs = _topk(heat, K=K)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 91, in _topk
topk_inds = _gather_feat(topk_inds.reshape(batch, -1, 1), topk_ind).reshape(
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 134, in _gather_feat
feat = _gather_np(feat, 1, ind)
File "D:\Python3.8.8\lib\site-packages\wired_table_rec\utils_table_line_rec.py", line 160, in _gather_np
raise TypeError("The values of index must be integers")
TypeError: The values of index must be integers
Beta Was this translation helpful? Give feedback.
All reactions