Skip to content

Commit 612ada4

Browse files
committed
bugfix: resize
1 parent 759908c commit 612ada4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

commonforms/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def extract_widgets(
7272
) -> dict[int, list[Widget]]:
7373
image_size = 1024
7474
results = []
75-
for b in batch([self.resize(p.image, image_size) for p in pages], n=batch_size):
75+
for b in batch([p.image for p in pages], n=batch_size):
7676
predictions = self.model.predict(b, threshold=confidence)
7777
if len(pages) == 1 or batch_size == 1:
7878
predictions = [predictions]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "commonforms"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "Automatically convert a PDF into a fillable form"
99
readme = "README.md"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)