前提・実現したいこと
MacOSでの画像認識等を行うための環境設定を行う上で、
deelにおける、
エラーを無くしたいです。
発生している問題・エラーメッセージ
エラーメッセージ
File "tiny.py", line 7, in <module> CNN = Alexnet() NameError: name 'Alexnet' is not defined 追記・・ File "tiny.py", line 4, in <module> from deel.network import * File "/Users/deel/deel/network/__init__.py", line 337, in <module> from deel.network.alexnet import AlexNet File "/Users/deel/deel/network/alexnet.py", line 93 return y.data.shape ^ 追記2 ./getPretrainedModels.sh: line 1: wget: command not found ./getPretrainedModels.sh: line 2: wget: command not found ./getPretrainedModels.sh: line 3: wget: command not found ./getPretrainedModels.sh: line 4: wget: command not found ./getPretrainedModels.sh: line 5: wget: command not found ./getPretrainedModels.sh: line 6: wget: command not found tar: Error opening archive: Failed to open 'googlenet_places205.tar.gz' mv: rename googlenet_places205/googlelet_places205_train_iter_2400000.caffemodel to ./googlelet_places205_train_iter_2400000.caffemodel: No such file or directory mv: rename googlenet_places205/categoryIndex_places205.csv to ./categoryIndex_places205.csv: No such file or directory### 該当のソースコード ```python ソースコード
訂正後です。
from deel import *
from deel.network import *
from deel.commands import *
deel = Deel()
CNN = AlexNet()
CNN.Input("deel.png")
CNN.classify()
ShowLabels()
試したこと
chainerのダウングレードを行い、その他にも多くのサイトを調べましたが、Macでの説明はなく、初心者のせいでもあるのだと思いますが、いくら試しても上手くいかないです。
補足情報(FW/ツールのバージョンなど)
清水亮さんの初めてのディープラーニングプログラミングを参考にして作業を進めています。
Macに沿った説明をして頂けたら嬉しいです。
回答3件
あなたの回答
tips
プレビュー