質問編集履歴
1
コード補足しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,9 +40,7 @@
|
|
40
40
|
|
41
41
|
### 該当のソースコード
|
42
42
|
|
43
|
-
|
43
|
+
```
|
44
|
-
|
45
|
-
|
46
44
|
|
47
45
|
import os
|
48
46
|
|
@@ -54,9 +52,17 @@
|
|
54
52
|
|
55
53
|
import SimpleITK as sitk
|
56
54
|
|
57
|
-
|
55
|
+
import matplotlib.pyplot as plt
|
56
|
+
|
58
|
-
|
57
|
+
from keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D, BatchNormalization
|
58
|
+
|
59
|
-
|
59
|
+
from keras.layers.merge import concatenate
|
60
|
+
|
61
|
+
from keras.models import Model
|
62
|
+
|
63
|
+
from keras.callbacks import EarlyStopping
|
64
|
+
|
65
|
+
#%%
|
60
66
|
|
61
67
|
# パラメータ設定
|
62
68
|
|
@@ -70,7 +76,7 @@
|
|
70
76
|
|
71
77
|
|
72
78
|
|
73
|
-
|
79
|
+
#%%
|
74
80
|
|
75
81
|
# .mhd読み込み
|
76
82
|
|
@@ -178,11 +184,13 @@
|
|
178
184
|
|
179
185
|
sitk.WriteImage(tmp_itkimg, filename)
|
180
186
|
|
187
|
+
|
188
|
+
|
181
|
-
|
189
|
+
save_data("dataset\result\", test_label_filenames, results)
|
190
|
+
|
182
|
-
|
191
|
+
save_mhd_data("dataset\result\", test_label_filenames, results,spacinglist)
|
192
|
+
|
183
|
-
|
193
|
+
```
|
184
|
-
|
185
|
-
|
186
194
|
|
187
195
|
|
188
196
|
|