Closed hdd0510 closed 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.
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]
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.