微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Azure 机器学习工作室 - 设计师无需培训即可使用 DenseNet?

如何解决Azure 机器学习工作室 - 设计师无需培训即可使用 DenseNet?

我实际上正在使用免费帐户在 Azure ML Studio 上上课。我有一个非常简单的笔记本,我从 Keras 加载 DenseNet 并使用它(没有拆分和训练)来预测一些图像。

from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from keras.applications.densenet import DenseNet121
from keras.applications.densenet import preprocess_input
from keras.applications.densenet import decode_predictions
from imageio import imread
from PIL import Image
import io
import numpy as np

# load the model
model = DenseNet121()

image = load_img("images/image2.jpeg",target_size=(224,224))

image = img_to_array(image)

image = image.reshape((1,image.shape[0],image.shape[1],image.shape[2]))

image = preprocess_input(image)

# predict the probability across all output classes
yhat = model.predict(image)

# convert the probabilities to class labels
label = decode_predictions(yhat)

# retrieve the most likely result,e.g. highest probability 
label = label[0][0]

# print the classification
print('%s' % (label[1]))
print('%s' % (label[2]*100))

我想知道是否可以在 Azure ML Studio 设计器(低代码)中加载在 ImageNet 上预训练的 DenseNet 而不进行训练,并且像我在笔记本中那样仅将其用于预测?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。