Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yaoyuping
nnDetection
Commits
abb61378
Commit
abb61378
authored
Feb 16, 2022
by
mibaumgartner
Browse files
support different splits key in config
parent
0cdad98d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
nndet/io/datamodule/base.py
nndet/io/datamodule/base.py
+7
-2
No files found.
nndet/io/datamodule/base.py
View file @
abb61378
...
...
@@ -57,8 +57,13 @@ class BaseModule(pl.LightningDataModule):
self
.
fold
=
fold
self
.
preprocessed_dir
=
self
.
data_dir
.
parent
.
parent
self
.
splits_file
=
self
.
augment_cfg
.
get
(
"splits_final"
,
"splits_final.pkl"
)
if
"splits"
in
self
.
augment_cfg
:
self
.
splits_file
=
self
.
augment_cfg
[
"splits"
]
elif
"splits_final"
in
self
.
augment_cfg
:
self
.
splits_file
=
self
.
augment_cfg
[
"splits_final"
]
else
:
self
.
splits_file
=
"splits_final"
self
.
dataset_tr
=
{}
self
.
dataset_val
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment