Skip to content

Commit

Permalink
include_maps=False by default
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Oct 30, 2024
1 parent 0869474 commit 422d45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion marker/layout/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def surya_layout(images: list, pages: List[Page], layout_model, batch_multiplier
processor = layout_model.processor
layout_results = batch_layout_detection(
images, layout_model, processor, detection_results=text_detection_results,
batch_size=int(get_batch_size() * batch_multiplier), include_maps=False
batch_size=int(get_batch_size() * batch_multiplier)
)
for page, layout_result in zip(pages, layout_results):
page.layout = layout_result
Expand Down
2 changes: 1 addition & 1 deletion marker/ocr/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_batch_size():
def surya_detection(images: list, pages: List[Page], det_model, batch_multiplier=1):
processor = det_model.processor

predictions = batch_text_detection(images, det_model, processor, batch_size=int(get_batch_size() * batch_multiplier), include_maps=False)
predictions = batch_text_detection(images, det_model, processor, batch_size=int(get_batch_size() * batch_multiplier))
for (page, pred) in zip(pages, predictions):
page.text_lines = pred

Expand Down

0 comments on commit 422d45d

Please sign in to comment.