标签: teachable-machine

没有名为“tensorflow.compat”的模块

我正在尝试使用可教机器网站上的代码:

from keras.models import load_model
from PIL import Image, ImageOps
import numpy as np

# Load the model
model = load_model('keras_model.h5')

# Create the array of the right shape to feed into the keras model
# The 'length' or number of images you can put into the array is
# determined by the first position in the shape tuple, in this case 1.
data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
# Replace this with the path to your image …
Run Code Online (Sandbox Code Playgroud)

python pip tensorflow teachable-machine

8
推荐指数
1
解决办法
5万
查看次数

标签 统计

pip ×1

python ×1

teachable-machine ×1

tensorflow ×1