我昨天尝试使用 TensorFlow 作为后端我可以使用它,但是今天当我尝试导入 Keras 时使用它显示一些错误消息,所以这是我的代码:
# Install required libs
# NOTE: Run this one code, then restart this runtime and run again for next all... (PENTING!!!)
### please update Albumentations to version>=0.3.0 for `Lambda` transform support
!pip install -U segmentation-models
!pip install q tensorflow==2.1
!pip install q keras==2.3.1
!pip install tensorflow-estimator==2.1.
## Imports libs
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
import cv2
import Keras
import NumPy as np
import matplotlib.pyplot as plt
Run Code Online (Sandbox Code Playgroud)
它显示此错误:
AttributeError Traceback (most recent call last)
<ipython-input-3-9c78a7be919d> in …Run Code Online (Sandbox Code Playgroud)