学習済みモデルのdeep-learning-modelsのinception_v3.pyを実行すると下記のようなエラーが発生しました。
/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Traceback (most recent call last):
File "inception_v3.py", line 403, in <module>
img = image.load_img(img_path, target_size=(299, 299))
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/keras/preprocessing/image.py", line 347, in load_img
img = pil_image.open(path)
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/PIL/Image.py", line 2548, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'elephant.jpg'
inception_v3を実行しするとelephant.jpgをダウンロードしてきてくれると思っていたのですが
なにがいけないのでしょうか?よろしくお願いします。
h5py 2.7.1
keras 2.1.2
tensorflow 1.4.1
opencv 3.4.1
python 3.5.3
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/04/03 14:26