mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
patch: Lint
This commit is contained in:
parent
a23893a5fa
commit
da4a0c5452
@ -42,10 +42,10 @@ class Demography(ABC):
|
|||||||
if img_batch.shape[0] == 1: # Single image
|
if img_batch.shape[0] == 1: # Single image
|
||||||
# Predict with legacy method.
|
# Predict with legacy method.
|
||||||
return self.model(img_batch, training=False).numpy()[0, :]
|
return self.model(img_batch, training=False).numpy()[0, :]
|
||||||
else:
|
|
||||||
# Batch of images
|
# Batch of images
|
||||||
# Predict with batch prediction
|
# Predict with batch prediction
|
||||||
return self.model.predict_on_batch(img_batch)
|
return self.model.predict_on_batch(img_batch)
|
||||||
|
|
||||||
def _preprocess_batch_or_single_input(
|
def _preprocess_batch_or_single_input(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user