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
405d41d5
Commit
405d41d5
authored
Nov 23, 2020
by
sjromuel
Browse files
d
parent
9cd7e1f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
RobinNet/mrunetpred_gts.py
View file @
405d41d5
...
...
@@ -148,9 +148,9 @@ def main():
if
npys3d
:
if
y_pred3d
==
[]:
y_pred3d
=
np
.
flipud
(
y_pred
[:,:,:,
0
].
numpy
()
)
y_pred3d
=
y_pred
[:,:,:,
0
].
numpy
()
else
:
y_pred3d
=
np
.
append
(
np
.
flipud
(
y_pred
[:,:,:,
0
].
numpy
()
)
,
y_pred3d
,
axis
=
0
)
y_pred3d
=
np
.
append
((
y_pred
[:,:,:,
0
].
numpy
(),
y_pred3d
,
axis
=
0
)
#print(np.shape(y_pred3d))
...
...
@@ -179,7 +179,7 @@ def main():
if
npys3d
:
#
y_pred3d = np.flip(y_pred3d)
y_pred3d
=
np
.
flip
(
y_pred3d
)
#np.save(img_savepath + "P" + str(TP_num).zfill(2) + "_pred3D", y_pred3d)
np
.
save
(
"data/npy_thresh/"
+
"P"
+
str
(
TP_num
).
zfill
(
2
)
+
"_mr_ctunetpred.gipl"
,
y_pred3d
)
print
(
"ypred shape: "
,
np
.
shape
(
y_pred3d
))
...
...
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