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
51ea4133
Commit
51ea4133
authored
6 years ago
by
Anjith GEORGE
Browse files
Options
Downloads
Patches
Plain Diff
Quick fix, for keys
parent
79534f0a
No related branches found
No related tags found
1 merge request
!23
Fix the FrameIndexes keys in dataloader
Pipeline
#27878
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
+1
-1
1 addition, 1 deletion
bob/learn/pytorch/datasets/data_folder.py
with
1 addition
and
1 deletion
bob/learn/pytorch/datasets/data_folder.py
+
1
−
1
View file @
51ea4133
...
@@ -77,7 +77,7 @@ def get_file_names_and_labels(files, data_folder, extension = ".hdf5", hldi_type
...
@@ -77,7 +77,7 @@ def get_file_names_and_labels(files, data_folder, extension = ".hdf5", hldi_type
file_keys
=
list
(
f_h5py
.
keys
())
file_keys
=
list
(
f_h5py
.
keys
())
#removes the 'FrameIndexes' key
#removes the 'FrameIndexes' key
file_keys
=
[
f
for
f
in
file_keys
if
len
(
f
.
split
(
'
_
'
))
==
2
]
file_keys
=
[
f
for
f
in
file_keys
if
f
!=
'
FrameIndexes
'
]
# elements of tuples in the below list are as follows:
# elements of tuples in the below list are as follows:
# a filename a key is extracted from,
# a filename a key is extracted from,
...
...
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