質問編集履歴
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -132,7 +132,7 @@
|
|
132
132
|
|
133
133
|
img_resize_array = cv2.resize(img_array, (583, 438)) # 画像のリサイズ
|
134
134
|
|
135
|
-
train
|
135
|
+
train_data.append([img_resize_array, class_num]) # 画像データ、ラベル情報を追加
|
136
136
|
|
137
137
|
except Exception as e:
|
138
138
|
|
2
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -266,7 +266,7 @@
|
|
266
266
|
|
267
267
|
#学習データ
|
268
268
|
|
269
|
-
x_train_sum, x_train_
|
269
|
+
x_train_sum, x_train_c, x_train_b, x_test_c, x_test_b, = [], [], [], [], []
|
270
270
|
|
271
271
|
y_train_sum = []
|
272
272
|
|
1
コードの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -136,7 +136,7 @@
|
|
136
136
|
|
137
137
|
except Exception as e:
|
138
138
|
|
139
|
-
p
|
139
|
+
print(e)
|
140
140
|
|
141
141
|
|
142
142
|
|
@@ -156,7 +156,7 @@
|
|
156
156
|
|
157
157
|
except Exception as e:
|
158
158
|
|
159
|
-
p
|
159
|
+
print(e)
|
160
160
|
|
161
161
|
|
162
162
|
|