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
39d8c817
Commit
39d8c817
authored
Nov 23, 2020
by
sjromuel
Browse files
d
parent
93b56fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
RobinNet/mrunetpred_gts.py
View file @
39d8c817
...
...
@@ -21,7 +21,7 @@ def main():
root
=
tk
.
Tk
()
root
.
withdraw
()
file_path
=
filedialog
.
askopenfilename
(
initialdir
=
"
finalResults/complete_segmr
/mr_unet_cv_ctthresh"
)
file_path
=
filedialog
.
askopenfilename
(
initialdir
=
"
saves
/mr_unet_cv_ctthresh"
)
file_path
=
file_path
[:
-
9
]
print
(
file_path
)
...
...
@@ -147,11 +147,11 @@ def main():
y_pred
=
Unet
(
image
,
weights
,
filter_multiplier
,
training
=
False
)
if
npys3d
:
y_pred
3d
=
np
.
flip
(
y_pred
3d
)
y_pred
flip
=
np
.
flip
ud
(
y_pred
)
if
y_pred3d
==
[]:
y_pred3d
=
y_pred
[:,:,:,
0
].
numpy
()
y_pred3d
=
y_pred
flip
[:,:,:,
0
].
numpy
()
else
:
y_pred3d
=
np
.
append
(
y_pred
[:,:,:,
0
].
numpy
(),
y_pred3d
,
axis
=
0
)
y_pred3d
=
np
.
append
(
y_pred
flip
[:,:,:,
0
].
numpy
(),
y_pred3d
,
axis
=
0
)
#print(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