Merge pull request #5 from NatLee/patch/test-250103

Fix: Image batch dimension not expanded.
This commit is contained in:
halice 2025-01-03 16:59:21 +08:00 committed by GitHub
commit 69267cdeac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,6 @@ class Demography(ABC):
# Check input dimension
if len(image_batch.shape) == 3:
# Single image - add batch dimension
imgs = np.expand_dims(image_batch, axis=0)
image_batch = np.expand_dims(image_batch, axis=0)
return image_batch