回答編集履歴

1

fix answer

2020/08/16 04:53

投稿

YufanLou
YufanLou

スコア463

test CHANGED
@@ -1,3 +1,33 @@
1
+ 更新:
2
+
3
+
4
+
5
+ ローカルの Keras バーションを Colab のと一致化してみましょう。
6
+
7
+
8
+
9
+ Colab の Keras バーションを下記のコードでモデルファイルにでチェックできます:
10
+
11
+
12
+
13
+ ```python
14
+
15
+ import h5py
16
+
17
+
18
+
19
+ f = h5py.File('CNN.hdf5', 'r')
20
+
21
+ print(f.attrs.get('keras_version'))
22
+
23
+ ```
24
+
25
+
26
+
27
+ ---
28
+
29
+
30
+
1
31
  ```python
2
32
 
3
33
  #CNNモデル