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
fc316fcd
Commit
fc316fcd
authored
6 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Updated the documentation of MultiNetPatchExtractor
parent
b61b4128
No related branches found
No related tags found
1 merge request
!3
Added MultiNetPatchClassifier extractor and utils, temp fix in LightCNN9
Pipeline
#26430
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
+13
-2
13 additions, 2 deletions
bob/ip/pytorch_extractor/MultiNetPatchExtractor.py
with
13 additions
and
2 deletions
bob/ip/pytorch_extractor/MultiNetPatchExtractor.py
+
13
−
2
View file @
fc316fcd
...
...
@@ -37,13 +37,23 @@ class MultiNetPatchExtractor(Extractor, object):
Attributes
-----------
config_file: str
Relative name of the config file
defining the network, and training parameters
.
Relative name of the config file.
The path should be relative to ``config_group``,
for example:
"
autoencoder/net1_batl_3_layers_partial.py
"
.
This file **must** contain at least the following definitions:
ADD THE DOC on what should be in the config!!!!!!!!!!!!!!!!!!!!!!
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
...
...
@@ -163,3 +173,4 @@ class MultiNetPatchExtractor(Extractor, object):
return
features
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