質問編集履歴
4
model.summaryの結果追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -232,4 +232,22 @@
|
|
232
232
|
```
|
233
233
|
Tensorflow2.4.1
|
234
234
|
Python3.7
|
235
|
-
データセットに使用している画像はRGBカラー画像です。
|
235
|
+
データセットに使用している画像はRGBカラー画像です。
|
236
|
+
model.summary()の結果
|
237
|
+
```
|
238
|
+
Model: "sequential"
|
239
|
+
_________________________________________________________________
|
240
|
+
Layer (type) Output Shape Param #
|
241
|
+
=================================================================
|
242
|
+
flatten_layer (Flatten) (None, 2352) 0
|
243
|
+
_________________________________________________________________
|
244
|
+
dense (Dense) (None, 128) 301184
|
245
|
+
_________________________________________________________________
|
246
|
+
dropout (Dropout) (None, 128) 0
|
247
|
+
_________________________________________________________________
|
248
|
+
dense_1 (Dense) (None, 10) 1290
|
249
|
+
=================================================================
|
250
|
+
Total params: 302,474
|
251
|
+
Trainable params: 302,474
|
252
|
+
Non-trainable params: 0
|
253
|
+
```
|
3
ソースコード一部修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -142,7 +142,7 @@
|
|
142
142
|
train_images ,train_labels, test_images ,test_labels = image_dataset.make('C:/Users/dataset',img_size = 32, train_num=10000 , test_num =1000)
|
143
143
|
|
144
144
|
train_images.shape
|
145
|
-
|
145
|
+
#print(train_images.shape, train_labels.shape)の結果
|
146
146
|
print(train_images.shape, train_labels.shape)
|
147
147
|
|
148
148
|
#plt.figure()
|
2
ソースコード一部修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -142,7 +142,7 @@
|
|
142
142
|
train_images ,train_labels, test_images ,test_labels = image_dataset.make('C:/Users/dataset',img_size = 32, train_num=10000 , test_num =1000)
|
143
143
|
|
144
144
|
train_images.shape
|
145
|
-
|
145
|
+
♯print(train_images.shape, train_labels.shape)の結果
|
146
146
|
print(train_images.shape, train_labels.shape)
|
147
147
|
|
148
148
|
#plt.figure()
|
1
補足追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -231,4 +231,5 @@
|
|
231
231
|
train_function
|
232
232
|
```
|
233
233
|
Tensorflow2.4.1
|
234
|
-
Python3.7
|
234
|
+
Python3.7
|
235
|
+
データセットに使用している画像はRGBカラー画像です。
|