Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.ip.pytorch_extractor
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
Show more breadcrumbs
bob
bob.ip.pytorch_extractor
Commits
7c11c799
Commit
7c11c799
authored
6 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Initial update of the doc-string of MultiNetPatchExtractor
parent
c2290e77
Branches
master
No related tags found
1 merge request
!5
Remove the need for config in extractor and algo
Pipeline
#26886
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/pytorch_extractor/MultiNetPatchExtractor.py
+7
-21
7 additions, 21 deletions
bob/ip/pytorch_extractor/MultiNetPatchExtractor.py
with
7 additions
and
21 deletions
bob/ip/pytorch_extractor/MultiNetPatchExtractor.py
+
7
−
21
View file @
7c11c799
...
...
@@ -37,31 +37,17 @@ class MultiNetPatchExtractor(Extractor, object):
Attributes
-----------
config_file: str
Relative name of the config file.
The path should be relative to ``config_group``,
for example:
"
test_data/multi_net_patch_extractor_test_config.py
"
.
This file **must** contain at least the following definitions:
transform : object
Function namely ``transform``, which is a Compose transformation of
torchvision package, to be applied to the input samples.
A ``Network`` class, defining your network architecture. Note, if your
class is named differently, import it as ``Network``, for example:
``from bob.learn.pytorch.architectures import MyNetwork as Network``
Optional: ``network_kwargs`` to be used for ``Network`` initialization.
For example, if you want to use the latent embeddings of the autoencoder
class, set the kwargs accodingly. Note: in current extractor the
``forward()`` method of the ``Network`` is used for feature extraction.
config_group: str
Group/package name containing the configuration file. Usually all
configs should be stored in this folder/place.
For example:
"
bob.ip.pytorch_extractor
"
.
Both ``config_file`` and ``config_group`` are used to access the
configuration module.
network : object
An instance of the Network to be used for feature extraction.
Note: in current extractor the ``forward()`` method of the Network
is used for feature extraction. For example, if you want to use the
latent embeddings of the autoencoder class, initialize the network
accordingly.
model_file : [str]
A list of paths to the model files to be used for network initialization.
...
...
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