質問編集履歴
1
バージョン情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,9 +6,11 @@
|
|
6
6
|
|
7
7
|
現在colaboratory・python・tensorflowを使用して、CNNをつくっています。しかし、学習させたモデルをtf.train.Saver().save()で保存した後、異なるファイルにおいて、tf.train.Saver().restore()で復元をした後に同じデータでテストしたのですが全く違う結果が出力されます。
|
8
8
|
|
9
|
-
おそらく、変数の入れ込みがうまくいっていないか、保存の仕方が間違っているかだと思うのですが、どこがおかしいのかわかりません。
|
9
|
+
おそらく、変数の入れ込みがうまくいっていないか、保存の仕方が間違っているかだと思うのですが、どこがおかしいのかわかりません。
|
10
10
|
|
11
11
|
保存時のエラーなどはありませんが、復元時以下のようなwarningが出ます(毎回、sess.close()は行っているはずなのですが、)。
|
12
|
+
|
13
|
+
また、違う方法で変数を保存する方法などありましたらお教えください。
|
12
14
|
|
13
15
|
|
14
16
|
|
@@ -18,7 +20,7 @@
|
|
18
20
|
|
19
21
|
```
|
20
22
|
|
21
|
-
INFO:tensorflow:Restoring parameters from /
|
23
|
+
INFO:tensorflow:Restoring parameters from /・・・/y_12_testmodel
|
22
24
|
|
23
25
|
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py:1750: UserWarning: An interactive session is already active. This can cause out-of-memory errors in some cases. You must explicitly call `InteractiveSession.close()` to release resources held by the other session(s).
|
24
26
|
|
@@ -190,6 +192,6 @@
|
|
190
192
|
|
191
193
|
Google Colaboratory
|
192
194
|
|
193
|
-
TensorFlow ver 1.
|
195
|
+
TensorFlow ver 1.15(colaboratoryのデフォルト)
|
194
196
|
|
195
197
|
python3
|