Skip to content
Snippets Groups Projects
Commit 1b1c0da3 authored by Saeed SARFJOO's avatar Saeed SARFJOO
Browse files

add __init__

parent 7ff52c35
No related branches found
No related tags found
1 merge request!19Add audio extractor
......@@ -16,3 +16,4 @@ results*
build/
record.txt
*lightcnn*
bob/learn/pytorch/preprocessor/audio/data
......@@ -5,4 +5,24 @@ class DltResNetExtractor(Extractor):
""" The Dummy class for passing the extracted embedding.
"""
pass
def __init__(self):
super(DltResNetExtractor, self).__init__()
def __call__(self, data):
"""__call__(data) -> feature
This function will actually perform the feature extraction.
It must be overwritten by derived classes.
It takes the (preprocessed) data and returns the features extracted from the data.
**Parameters**
data : object (usually :py:class:`numpy.ndarray`)
The *preprocessed* data from which features should be extracted.
**Returns:**
feature : object (usually :py:class:`numpy.ndarray`)
The extracted feature.
"""
return data
\ No newline at end of file
# see https://docs.python.org/3/library/pkgutil.html
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment