質問編集履歴
1
パス変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,9 +62,9 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
result_dir = 'D:/result
|
65
|
+
result_dir = 'D:/result'
|
66
|
-
|
66
|
+
|
67
|
-
if not os.path.exists(result
|
67
|
+
if not os.path.exists(result):
|
68
68
|
|
69
69
|
os.mkdir(result_dir)
|
70
70
|
|
@@ -140,7 +140,7 @@
|
|
140
140
|
|
141
141
|
if __name__ == '__main__':
|
142
142
|
|
143
|
-
classes = ['
|
143
|
+
classes = ['m', 'n', 'o', 'k']
|
144
144
|
|
145
145
|
|
146
146
|
|
@@ -222,7 +222,7 @@
|
|
222
222
|
|
223
223
|
train_generator = train_datagen.flow_from_directory(
|
224
224
|
|
225
|
-
directory='D:/s
|
225
|
+
directory='D:/s_dir/train_images',
|
226
226
|
|
227
227
|
target_size=(img_rows, img_cols),
|
228
228
|
|
@@ -246,7 +246,7 @@
|
|
246
246
|
|
247
247
|
test_generator = test_datagen.flow_from_directory(
|
248
248
|
|
249
|
-
directory='D:/s
|
249
|
+
directory='D:/s_dir/test_images',
|
250
250
|
|
251
251
|
target_size=(img_rows, img_cols),
|
252
252
|
|
@@ -284,7 +284,7 @@
|
|
284
284
|
|
285
285
|
|
286
286
|
|
287
|
-
save_history(history, os.path.join(result
|
287
|
+
save_history(history, os.path.join(result, 'history.txt'))
|
288
288
|
|
289
289
|
|
290
290
|
|