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
5e44dfde
Commit
5e44dfde
authored
6 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Added the doc to the __init__ in data_folder, to fix the sphinx warning
parent
842c9bbd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
autoencoders pretraining using RGB faces
Pipeline
#26276
failed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/learn/pytorch/datasets/data_folder.py
+44
-2
44 additions, 2 deletions
bob/learn/pytorch/datasets/data_folder.py
with
44 additions
and
2 deletions
bob/learn/pytorch/datasets/data_folder.py
+
44
−
2
View file @
5e44dfde
...
...
@@ -147,6 +147,48 @@ class DataFolder(data.Dataset):
purposes
=
[
'
real
'
,
'
attack
'
],
allow_missing_files
=
True
,
**
kwargs
):
"""
Attributes
----------
data_folder : str
A directory containing the training data.
transform : callable
A function/transform that takes in a PIL image, and returns a
transformed version. E.g, ``transforms.RandomCrop``. Default: None.
extension : str
Extension of the data files. Default:
"
.hdf5
"
.
Note: this is the only extension supported at the moment.
bob_hldi_instance : object
An instance of the HLDI interface. Only HLDI
'
s of bob.pad.face
are currently supported.
hldi_type : str
String defining the type of the HLDI. Default:
"
pad
"
.
Note: this is the only option currently supported.
groups : str or [str]
The groups for which the clients should be returned.
Usually, groups are one or more elements of [
'
train
'
,
'
dev
'
,
'
eval
'
].
Default: [
'
train
'
,
'
dev
'
,
'
eval
'
].
protocol : str
The protocol for which the clients should be retrieved.
Default:
'
grandtest
'
.
purposes : str or [str]
The purposes for which File objects should be retrieved.
Usually it is either
'
real
'
or
'
attack
'
.
Default: [
'
real
'
,
'
attack
'
].
allow_missing_files : bool
The missing files in the ``data_folder`` will not break the
execution if set to True.
Default: True.
"""
self
.
data_folder
=
data_folder
self
.
transform
=
transform
...
...
@@ -239,8 +281,8 @@ class DataFolder(data.Dataset):
#==========================================================================
def
__len__
(
self
):
"""
Attribute
s
-------
---
Return
s
-------
len : int
The length of the file list.
...
...
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