質問編集履歴

3

りんくなおし

2023/07/03 02:49

投稿

phpuser567
phpuser567

スコア12

test CHANGED
File without changes
test CHANGED
@@ -123,4 +123,5 @@
123
123
  AttributeError: 'Sequential' object has no attribute 'predict_classes'
124
124
  という謎なエラーが出て、古いバージョンもインストールできないようになっています。
125
125
 
126
- 参考サイトは、https://zenn.dev/hiroe_orz17/articles/53af65f491122eです。
126
+ 参考サイトは、https://zenn.dev/hiroe_orz17/articles/53af65f491122e
127
+ です。

2

タグの変更

2023/06/18 22:10

投稿

phpuser567
phpuser567

スコア12

test CHANGED
File without changes
test CHANGED
File without changes

1

違うものはってましたすいません(エラーの部分

2023/06/18 11:58

投稿

phpuser567
phpuser567

スコア12

test CHANGED
File without changes
test CHANGED
@@ -112,7 +112,15 @@
112
112
  pip install tensorflow==1.15.5 --user
113
113
  とすると、
114
114
  ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.5 (from versions: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.13.0rc0, 2.13.0rc1)
115
+
116
+ (略)
117
+ Epoch 1500/1500
118
+ 1/1 [==============================] - 0s 56ms/step - loss: 4.9603e-06 - accuracy: 1.0000 - val_loss: 0.0314 - val_accuracy: 1.0000
119
+ data/test/apple/1.jpg
120
+ Traceback (most recent call last):
121
+ File "C:\Users\TOSHIBA\Desktop\python\fruit.py", line 96, in <module>
115
- ERROR: No matching distribution found for tensorflow==1.15.5
122
+ result = model.predict_classes(np.array([image / 255.]))
123
+ AttributeError: 'Sequential' object has no attribute 'predict_classes'
116
124
  という謎なエラーが出て、古いバージョンもインストールできないようになっています。
117
125
 
118
126
  参考サイトは、https://zenn.dev/hiroe_orz17/articles/53af65f491122eです。