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
a337e922
Commit
a337e922
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[dataset] added the option to choose the modality for the FARGO dataset
parent
f1fe9f47
No related branches found
No related tags found
No related merge requests found
Pipeline
#26760
passed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/learn/pytorch/datasets/fargo.py
+2
-2
2 additions, 2 deletions
bob/learn/pytorch/datasets/fargo.py
with
2 additions
and
2 deletions
bob/learn/pytorch/datasets/fargo.py
+
2
−
2
View file @
a337e922
...
...
@@ -37,7 +37,7 @@ class FargoDataset(Dataset):
"""
def
__init__
(
self
,
original_directory
=
rc
[
'
bob.db.fargo.directory
'
],
annotation_directory
=
rc
[
'
bob.db.fargo.annotation_directory
'
],
transform
=
None
,
start_index
=
0
):
transform
=
None
,
start_index
=
0
,
modality
=
'
rgb
'
):
"""
Init function
Parameters
...
...
@@ -58,7 +58,7 @@ class FargoDataset(Dataset):
id_labels
=
[]
db
=
bob
.
db
.
fargo
.
Database
(
original_directory
=
original_directory
)
objs
=
db
.
objects
(
purposes
=
'
train
'
,
modality
=
'
rgb
'
)
objs
=
db
.
objects
(
purposes
=
'
train
'
,
modality
=
modality
)
for
o
in
objs
:
self
.
data_files
.
append
(
o
.
make_path
(
directory
=
original_directory
,
extension
=
'
.png
'
))
...
...
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