mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-31 03:21:59 +08:00
Fix param error. (#4355)
### What problem does this PR solve? #4230 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
a9ba051582
commit
983ec0666c
@ -38,7 +38,7 @@ def main(args):
|
||||
detr = TableStructureRecognizer()
|
||||
ocr = OCR()
|
||||
|
||||
layouts = detr(images, float(args.threshold))
|
||||
layouts = detr(images, thr=float(args.threshold))
|
||||
for i, lyt in enumerate(layouts):
|
||||
if args.mode.lower() == "tsr":
|
||||
#lyt = [t for t in lyt if t["type"] == "table column"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user