Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.pytorch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.pytorch
Commits
1b1c0da3
Commit
1b1c0da3
authored
6 years ago
by
Saeed SARFJOO
Browse files
Options
Downloads
Patches
Plain Diff
add __init__
parent
7ff52c35
No related branches found
No related tags found
1 merge request
!19
Add audio extractor
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
bob/learn/pytorch/extractor/audio/DltResNet.py
+21
-1
21 additions, 1 deletion
bob/learn/pytorch/extractor/audio/DltResNet.py
bob/learn/pytorch/preprocessor/__init__.py
+3
-0
3 additions, 0 deletions
bob/learn/pytorch/preprocessor/__init__.py
with
25 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
1b1c0da3
...
...
@@ -16,3 +16,4 @@ results*
build/
record.txt
*lightcnn*
bob/learn/pytorch/preprocessor/audio/data
This diff is collapsed.
Click to expand it.
bob/learn/pytorch/extractor/audio/DltResNet.py
+
21
−
1
View file @
1b1c0da3
...
...
@@ -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
This diff is collapsed.
Click to expand it.
bob/learn/pytorch/preprocessor/__init__.py
0 → 100644
+
3
−
0
View file @
1b1c0da3
# see https://docs.python.org/3/library/pkgutil.html
from
pkgutil
import
extend_path
__path__
=
extend_path
(
__path__
,
__name__
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment