mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Change base class's predict signature.
This commit is contained in:
parent
c31268463b
commit
ffbba7fe83
@ -1,4 +1,4 @@
|
|||||||
from typing import Union
|
from typing import Union, List
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from deepface.commons import package_utils
|
from deepface.commons import package_utils
|
||||||
@ -18,5 +18,5 @@ class Demography(ABC):
|
|||||||
model_name: str
|
model_name: str
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def predict(self, img: np.ndarray) -> Union[np.ndarray, np.float64]:
|
def predict(self, img: Union[np.ndarray, List[np.ndarray]]) -> Union[np.ndarray, np.float64]:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user