mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Merge pull request #5 from NatLee/patch/test-250103
Fix: Image batch dimension not expanded.
This commit is contained in:
commit
69267cdeac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user