Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
deepdraw
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
medai
software
deepdraw
Commits
c88208a3
Commit
c88208a3
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[configs.datasets.csv] Remove comment on resolution - it is **really** not applicable
parent
3f71e8e7
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!12
Streamlining
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/binseg/configs/datasets/csv.py
+6
-6
6 additions, 6 deletions
bob/ip/binseg/configs/datasets/csv.py
with
6 additions
and
6 deletions
bob/ip/binseg/configs/datasets/csv.py
+
6
−
6
View file @
c88208a3
...
@@ -42,10 +42,6 @@ configuration. **Copy it locally to make changes**:
...
@@ -42,10 +42,6 @@ configuration. **Copy it locally to make changes**:
$ bob binseg config copy csv-dataset-example mydataset.py
$ bob binseg config copy csv-dataset-example mydataset.py
# edit mydataset.py as explained here, follow the comments
# edit mydataset.py as explained here, follow the comments
Keep in mind that specific models require that you feed images respecting
certain restrictions (input dimensions, image centering, etc.). Check the
configuration that was used to train models and try to match it.
Finally, the only object this file needs to provide is one named ``dataset``,
Finally, the only object this file needs to provide is one named ``dataset``,
and it should contain a dictionary mapping a name, such as ``train``, ``dev``,
and it should contain a dictionary mapping a name, such as ``train``, ``dev``,
or ``test``, to objects of type :py:class:`torch.utils.data.Dataset`. As you
or ``test``, to objects of type :py:class:`torch.utils.data.Dataset`. As you
...
@@ -101,12 +97,16 @@ from bob.ip.binseg.data.dataset import CSVDataset
...
@@ -101,12 +97,16 @@ from bob.ip.binseg.data.dataset import CSVDataset
_raw_dataset
=
CSVDataset
(
_raw_dataset
=
CSVDataset
(
# path to the CSV file(s) - you may add as many subsets as you want:
# path to the CSV file(s) - you may add as many subsets as you want:
# * "train" is used for training a model (stock data augmentation is
# * "
__
train
__
" is used for training a model (stock data augmentation is
# applied via our "make_dataset()" connector)
# applied via our "make_dataset()" connector)
# * anything else can be used for prediction and/or evaluation (if labels
# * anything else can be used for prediction and/or evaluation (if labels
# are also provided in such a set). Data augmentation is NOT applied
# are also provided in such a set). Data augmentation is NOT applied
# using our "make_dataset()" connector.
# using our "make_dataset()" connector.
subsets
=
{
"
train
"
:
"
<path/to/train.csv>
"
,
"
test
"
:
"
<path/to/test.csv>
"
},
subsets
=
{
"
__train__
"
:
"
<path/to/train.csv>
"
,
#applies data augmentation
"
train
"
:
"
<path/to/train.csv>
"
,
#no data augmentation, evaluate it
"
test
"
:
"
<path/to/test.csv>
"
,
#no data augmentation, evaluate it
},
fieldnames
=
(
"
data
"
,
"
label
"
),
# these are the column names
fieldnames
=
(
"
data
"
,
"
label
"
),
# these are the column names
loader
=
_loader
,
loader
=
_loader
,
keymaker
=
data_path_keymaker
,
keymaker
=
data_path_keymaker
,
...
...
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