画像処理の勉強中です
https://github.com/deer-dslab/keras-example
の中にあるFine-tuning.pyをpython3で実行したところ以下のエラーが出ます
python3.5
1Using TensorFlow backend. 2/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. 3 _np_qint8 = np.dtype([("qint8", np.int8, 1)]) 4/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. 5 _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) 6/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. 7 _np_qint16 = np.dtype([("qint16", np.int16, 1)]) 8/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. 9 _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) 10/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:521: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. 11 _np_qint32 = np.dtype([("qint32", np.int32, 1)]) 12/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. 13 np_resource = np.dtype([("resource", np.ubyte, 1)]) 14Traceback (most recent call last): 15 File "fine-tuning.py", line 10, in <module> 16 from keras.applications.vgg16 import VGG16 17 File "/usr/local/lib/python3.5/dist-packages/keras/__init__.py", line 3, in <module> 18 from . import utils 19 File "/usr/local/lib/python3.5/dist-packages/keras/utils/__init__.py", line 6, in <module> 20 from . import conv_utils 21 File "/usr/local/lib/python3.5/dist-packages/keras/utils/conv_utils.py", line 9, in <module> 22 from .. import backend as K 23 File "/usr/local/lib/python3.5/dist-packages/keras/backend/__init__.py", line 1, in <module> 24 from .load_backend import epsilon 25 File "/usr/local/lib/python3.5/dist-packages/keras/backend/load_backend.py", line 90, in <module> 26 from .tensorflow_backend import * 27 File "/usr/local/lib/python3.5/dist-packages/keras/backend/tensorflow_backend.py", line 13, in <module> 28 from tensorflow.python.keras.utils import tf_utils 29ImportError: cannot import name 'tf_utils' 30
if_utilsはインストールしてありimportもできるのですが...
よろしくお願いします
tensorflow1.7.0
ubuntu16.04
keras2.0.2
tf_utils 1.0.4
Location: /usr/local/lib/python3.5/dist-packages
回答1件
あなたの回答
tips
プレビュー