Skip to content

Commit

Permalink
pass in detection batch size appropriately for ocr_extraction [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Nov 21, 2024
1 parent b721d11 commit b98e0a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion marker/builders/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def ocr_extraction(self, document: Document, provider: PdfProvider) -> ProviderP
det_processor=self.detection_model.processor,
rec_model=self.recognition_model,
rec_processor=self.recognition_model.processor,
batch_size=int(self.get_recognition_batch_size()),
detection_batch_size=int(self.get_detection_batch_size()),
recognition_batch_size=int(self.get_recognition_batch_size()),
highres_images=[page.highres_image for page in page_list]
)

Expand Down

0 comments on commit b98e0a3

Please sign in to comment.