Holmes2002 / Table-Recognition

1 stars 0 forks source link

TypeError: new(): invalid data type 'str' #1

Closed hdd0510 closed 1 month ago

hdd0510 commented 1 month ago

File "/home/dunghd7/dunghd/project/ocr/Table-Recognition/LORE-TSR/src/lib/detectors/ctdet.py", line 51, in process hm = output['hm'].sigmoid_() TypeError: new(): invalid data type 'str' I got this error when trying infer some images.

hdd0510 commented 1 month ago

I found that we need to fix the code in pose_dla_dcn.py into this:

z = {}
    for head in self.heads:
    z[head] = self.__getattr__(head)(y[-1])
    return [z] #, y[-1]