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
6c76b537
Commit
6c76b537
authored
Nov 26, 2020
by
sjromuel
Browse files
d
parent
d1791a62
Changes
2
Hide whitespace changes
Inline
Side-by-side
RobinNet/allModelsCreatePredNpys.py
View file @
6c76b537
...
...
@@ -228,11 +228,11 @@ def main():
test_loss_hdd2
.
append
(
hausdorff_distance_filter2
.
GetHausdorffDistance
())
if
y_pred3d
==
[]:
y_pred3d
=
pred_np
y_true3d
=
y_true_np
y_pred3d
=
np
.
reshape
(
pred_np
,
newshape
=
(
1
,
512
,
512
))
y_true3d
=
np
.
reshape
(
y_true_np
,
newshape
=
(
1
,
512
,
512
))
else
:
y_pred3d
=
np
.
append
(
pred_np
,
y_pred3d
,
axis
=
0
)
y_true3d
=
np
.
append
(
y_true_np
,
y_true3d
,
axis
=
0
)
y_pred3d
=
np
.
append
(
np
.
reshape
(
pred_np
,
newshape
=
(
1
,
512
,
512
))
,
y_pred3d
,
axis
=
0
)
y_true3d
=
np
.
append
(
np
.
reshape
(
y_true_np
,
newshape
=
(
1
,
512
,
512
))
,
y_true3d
,
axis
=
0
)
except
:
pass
npy_savepath
=
"finalResults/3dnpys/"
+
model_path
...
...
RobinNet/tryOut.py
View file @
6c76b537
...
...
@@ -9,7 +9,11 @@ import matplotlib.pyplot as plt
from
scipy
import
ndimage
from
datetime
import
datetime
pat
=
"06"
predseg
=
np
.
load
(
"finalResults/3dnpys/ctfgt2/unet_cv_ctfgt2/P01_pred3D.npy"
)
print
(
np
.
shape
(
predseg
))
'''pat = "06"
inputimg = np.load("data/npy_thresh/P"+pat+"_mr_T1.gipl.npy")
gt = np.load("data/npy_thresh/P"+pat+"_mr_ctunetpred.gipl.npy")
...
...
@@ -30,7 +34,7 @@ for i in range(np.shape(inputimg)[0]):
fig.add_subplot(2, 3, 3)
plt.imshow(ytrue[i,:,:], cmap=plt.cm.bone)
plt.title('True')
plt
.
show
()
plt.show()
'''
'''print(np.shape(img))
img = np.flip(img)
...
...
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