mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 23:12:20 +00:00
remove batch size from CLI
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
00aac6b620
commit
e7b89e7815
@ -290,12 +290,6 @@ def convert(
|
||||
device: Annotated[
|
||||
AcceleratorDevice, typer.Option(..., help="Accelerator device")
|
||||
] = AcceleratorDevice.AUTO,
|
||||
batch_size_code_formula: Annotated[
|
||||
int, typer.Option(..., help="Batch size for the code and formula model")
|
||||
] = CodeFormulaModel.elements_batch_size,
|
||||
batch_size_picture_classes: Annotated[
|
||||
int, typer.Option(..., help="Batch size for the picture classifier")
|
||||
] = DocumentPictureClassifier.elements_batch_size,
|
||||
):
|
||||
if verbose == 0:
|
||||
logging.basicConfig(level=logging.WARNING)
|
||||
|
@ -235,8 +235,6 @@ class CodeFormulaModel(BaseItemAndImageEnrichmentModel):
|
||||
labels.append(el.item.label)
|
||||
images.append(el.image)
|
||||
|
||||
print(f"BATCH: {len(images)=}")
|
||||
|
||||
outputs = self.code_formula_model.predict(images, labels)
|
||||
|
||||
for item, output in zip(elements, outputs):
|
||||
|
Loading…
Reference in New Issue
Block a user