Hi. I want to use the code on google colab but I got below error. Could you please help me?
@thePetrMarek
/usr/local/lib/python3.7/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'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/dtypes.py:527: 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'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/dtypes.py:528: 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'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/dtypes.py:529: 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'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/dtypes.py:530: 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'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/dtypes.py:535: 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'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "Main.py", line 4, in
from tensorflow.contrib import slim
File "/usr/local/lib/python3.7/dist-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/init.py", line 82, in
from tensorflow.python import keras
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/init.py", line 24, in
from tensorflow.python.keras import activations
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/activations.py", line 24, in
from tensorflow.python.keras.utils.generic_utils import deserialize_keras_object
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/utils/init.py", line 38, in
from tensorflow.python.keras.utils.multi_gpu_utils import multi_gpu_model
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/utils/multi_gpu_utils.py", line 22, in
from tensorflow.python.keras.engine.training import Model
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/init.py", line 23, in
from tensorflow.python.keras.engine.base_layer import Layer
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/base_layer.py", line 36, in
from tensorflow.python.keras import initializers
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/initializers/init.py", line 20, in
from tensorflow.python.keras.initializers import initializers_v1
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/initializers/initializers_v1.py", line 19, in
from tensorflow.python.util.tf_export import keras_export
ImportError: cannot import name 'keras_export' from 'tensorflow.python.util.tf_export' (/usr/local/lib/python3.7/dist-packages/tensorflow/python/util/tf_export.py)