mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
[update] add hint for the shape of input img
This commit is contained in:
parent
ba0d0c5bb6
commit
29141b3cd5
@ -54,9 +54,9 @@ class ApparentAgeClient(Demography):
|
|||||||
# Preprocessing input image or image list.
|
# Preprocessing input image or image list.
|
||||||
imgs = self._preprocess_batch_or_single_input(img)
|
imgs = self._preprocess_batch_or_single_input(img)
|
||||||
|
|
||||||
# Prediction
|
# Prediction from 3 channels image
|
||||||
age_predictions = self._predict_internal(imgs)
|
age_predictions = self._predict_internal(imgs)
|
||||||
|
|
||||||
# Calculate apparent ages
|
# Calculate apparent ages
|
||||||
apparent_ages = np.array(
|
apparent_ages = np.array(
|
||||||
[find_apparent_age(age_prediction) for age_prediction in age_predictions]
|
[find_apparent_age(age_prediction) for age_prediction in age_predictions]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user