Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
medai
software
mednet
Commits
52b76394
Commit
52b76394
authored
1 year ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[data.nih_cxr14] Fix configuration variable names
parent
ed996fb9
No related branches found
No related tags found
1 merge request
!6
Making use of LightningDataModule and simplification of data loading
Pipeline
#76683
failed
1 year ago
Stage: qa
Stage: test
Stage: doc
Stage: dist
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ptbench/data/nih_cxr14/datamodule.py
+3
-5
3 additions, 5 deletions
src/ptbench/data/nih_cxr14/datamodule.py
with
3 additions
and
5 deletions
src/ptbench/data/nih_cxr14/datamodule.py
+
3
−
5
View file @
52b76394
...
...
@@ -29,7 +29,7 @@ class RawDataLoader(_BaseRawDataLoader):
idiap_file_organisation
This variable will be ``True``, if the user has set the configuration
parameter ``nih_cxr14
_re
.idiap_file_organisation`` in the global
parameter ``nih_cxr14.idiap_file_organisation`` in the global
configuration file. It will cause internal loader to search for files
in a slightly different folder structure, that was adapted to Idiap
'
s
requirements (number of files per folder to be less than 10k).
...
...
@@ -40,11 +40,9 @@ class RawDataLoader(_BaseRawDataLoader):
def
__init__
(
self
):
rc
=
load_rc
()
self
.
datadir
=
rc
.
get
(
"
datadir.nih_cxr14_re
"
,
os
.
path
.
realpath
(
os
.
curdir
)
)
self
.
datadir
=
rc
.
get
(
"
datadir.nih_cxr14
"
,
os
.
path
.
realpath
(
os
.
curdir
))
self
.
idiap_file_organisation
=
rc
.
get
(
"
nih_cxr14
_re
.idiap_folder_structure
"
,
False
"
nih_cxr14.idiap_folder_structure
"
,
False
)
def
sample
(
self
,
sample
:
tuple
[
str
,
list
[
int
]])
->
Sample
:
...
...
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