Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sjromuel
Masterarbeit
Commits
9e7186eb
Commit
9e7186eb
authored
Nov 23, 2020
by
sjromuel
Browse files
d
parent
b06932b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
RobinNet/
mr
unetpred_gts.py
→
RobinNet/
thresh
unetpred_gts.py
View file @
9e7186eb
...
...
@@ -74,13 +74,13 @@ def main():
# thresh_img_list = []
if
"mr"
in
save_path
:
for
elem
in
full_list
:
if
elem
.
endswith
(
"
T1
.gipl.npy"
)
and
(
elem
.
startswith
(
'P'
+
str
(
test_patients
[
0
]).
zfill
(
2
))
or
elem
.
startswith
(
'P'
+
str
(
test_patients
[
1
]).
zfill
(
2
))):
if
elem
.
endswith
(
"
ct
.gipl.npy"
)
and
(
elem
.
startswith
(
'P'
+
str
(
test_patients
[
0
]).
zfill
(
2
))
or
elem
.
startswith
(
'P'
+
str
(
test_patients
[
1
]).
zfill
(
2
))):
X_img_list
.
append
(
elem
)
elif
elem
.
endswith
(
"250_
mr_ct
thresh
_gt
.gipl.npy"
)
and
(
elem
.
startswith
(
'P'
+
str
(
test_patients
[
0
]).
zfill
(
2
))
or
elem
.
startswith
(
'P'
+
str
(
test_patients
[
1
]).
zfill
(
2
))):
elif
elem
.
endswith
(
"250_thresh.gipl.npy"
)
and
(
elem
.
startswith
(
'P'
+
str
(
test_patients
[
0
]).
zfill
(
2
))
or
elem
.
startswith
(
'P'
+
str
(
test_patients
[
1
]).
zfill
(
2
))):
GT_img_list
.
append
(
elem
)
for
elem
in
seg_list
:
if
elem
.
endswith
(
"seg
mr
.gipl.npy"
)
and
(
elem
.
startswith
(
'P'
+
str
(
test_patients
[
0
]).
zfill
(
2
))
or
elem
.
startswith
(
'P'
+
str
(
test_patients
[
1
]).
zfill
(
2
))):
if
elem
.
endswith
(
"seg.gipl.npy"
)
and
(
elem
.
startswith
(
'P'
+
str
(
test_patients
[
0
]).
zfill
(
2
))
or
elem
.
startswith
(
'P'
+
str
(
test_patients
[
1
]).
zfill
(
2
))):
ytrue_img_list
.
append
(
elem
)
...
...
Write
Preview
Supports
Markdown
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