ファイルの実行ができないです。
test.pyを実行したいのですが、うまくいかず...。
import deel from deel.network import * from deel.network.googlenet import * from deel.commands import * import argparse x = deel.Deel() CNN = deel.Alexnet() CNN.Input("deel.png") CNN.classify() x.ShowLabels()
と書いたファイルを
python test.py と実行すると
Traceback (most recent call last):
File "test.py", line 7, in <module>
x = deel.Deel()
AttributeError: 'module' object has no attribute 'Deel'
とエラーが出て、
import deel from deel.network import * from deel.network.googlenet import * from deel.commands import * import argparse x = Deel() CNN = Alexnet() CNN.Input("deel.png") CNN.classify() x.ShowLabels()
とファイルを書き直して実行すると
Loading bvlc_alexnet.caffemodel
Converting from bvlc_alexnet.caffemodel
Traceback (most recent call last):
File "test.py", line 8, in <module>
CNN = Alexnet()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/deel/network/alexnet.py", line 35, in init
self.func = LoadCaffeModel(model)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/deel/network/init.py", line 51, in LoadCaffeModel
func = CaffeFunction('misc/'+path)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/deel/model/caffefunction.py", line 138, in init
with open(model_path, 'rb') as model_file:
IOError: [Errno 2] No such file or directory: 'misc/bvlc_alexnet.caffemodel'
とエラーが出ました。
どう直せば良いのでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/04/22 09:30
2017/04/23 10:37