質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,9 +14,7 @@
|
|
14
14
|
step 2, training accuracy 0.7
|
15
15
|
step 3, training accuracy 0.7
|
16
16
|
~~~~~~~~~~~~~~~~~~~~
|
17
|
-
|
17
|
+
|
18
|
-
step 96, training accuracy 0.7
|
19
|
-
step 97, training accuracy 0.7
|
20
18
|
step 98, training accuracy 0.7
|
21
19
|
step 99, training accuracy 0.7
|
22
20
|
test accuracy 0.7
|
@@ -326,8 +324,17 @@
|
|
326
324
|
save_path = saver.save(sess, "model2.ckpt")
|
327
325
|
|
328
326
|
```
|
327
|
+
## 追記
|
328
|
+
130行目あたりの出力層の正規化に使う関数をソフトマックス関数からシグモイド関数に変更しても変化ありませんでした。(シグモイド関数の書き方を間違っている可能性もありますが)
|
329
|
+
```
|
330
|
+
with tf.name_scope('softmax') as scope:
|
331
|
+
y_conv=tf.nn.softmax(tf.matmul(h_fc1_drop, W_fc2) + b_fc2)
|
329
332
|
|
333
|
+
↓
|
330
334
|
|
335
|
+
with tf.name_scope('sigmoid') as scope:
|
336
|
+
y_conv=tf.nn.sigmoid(tf.matmul(h_fc1_drop, W_fc2) + b_fc2)
|
337
|
+
```
|
331
338
|
### 補足情報(FW/ツールのバージョンなど)
|
332
339
|
|
333
340
|
tensorflow 2.0.0
|
1
タイトル変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
Tensorflow で学習
|
1
|
+
Tensorflow を使用した顔分類で、うまく学習できていないのを直したい
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
### 発生している問題・エラーメッセージ
|
9
|
-
プログラムは問題なく動きますが、途中の学習精度が
|
9
|
+
プログラムは問題なく動きますが、途中の学習精度が変化しないままプログラムが動いてしまいます。
|
10
10
|
|
11
11
|
```result
|
12
12
|
step 0, training accuracy 0.7
|