質問するログイン新規登録

質問編集履歴

1

2021/01/13 04:05

投稿

mnmnmmmn
mnmnmmmn

スコア18

title CHANGED
File without changes
body CHANGED
@@ -36,7 +36,7 @@
36
36
  ```
37
37
 
38
38
  ### 試したこと
39
- 同様の質問がteratailに記載されていたので(https://teratail.com/questions/271765)、参考に上記コードを以下の通り修正いたしました。(float32→uint8に置換)
39
+ 同様の質問がteratailに記載されていたので(https://teratail.com/questions/271765)、参考にさせていただき上記コードを以下の通り修正いたしました。(float32→uint8に置換)
40
40
  ```python
41
41
  ary = np.load("hiragana.npz")['arr_0'].reshape([-1, 127, 128]).astype(np.uint8) / 15
42
42
  X_train = np.zeros([nb_classes * 160, img_rows, img_cols], dtype=np.uint8)