mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
compatibility
This commit is contained in:
parent
d7a985bf12
commit
bb134b25d2
@ -154,6 +154,8 @@ def represent(
|
||||
|
||||
# Forward pass through the model for the entire batch
|
||||
embeddings = model.forward(batch_images)
|
||||
if len(batch_images) == 1:
|
||||
embeddings = [embeddings]
|
||||
|
||||
for embedding, region, confidence in zip(embeddings, batch_regions, batch_confidences):
|
||||
resp_objs.append(
|
||||
|
Loading…
x
Reference in New Issue
Block a user