mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Fix: Image batch dimension not expanded.
This commit is contained in:
parent
bb820a7ef4
commit
e1822851a5
@ -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