CODEARTS IDE ONLINE-使用模型
时间:2024-07-19 11:30:50
使用模型
- 用训练好的模型预测测试集中的某个图片属于什么类别,先显示这个图片,命令如下。
1 2 3
# display a test image plt.figure() plt.imshow(test_images[9])
图1 显示用以测试的图片
- 查看预测结果,命令如下。
1 2 3 4 5 6 7 8 9
# Grab an image from the test dataset. img = test_images[9] # Add the image to a batch where it's the only member. img = (np.expand_dims(img,0)) # make prediction probability_model = tf.keras.Sequential([model, tf.keras.layers.Softmax()]) predictions_single = probability_model.predict(img) class_names[np.argmax(predictions_single[0])]
图2 查看预测结果
- 当前只对python3做了优化,python2下无法直接运行Jupyter Notebook。
- CodeArts IDE Online暂不支持GPU加速,建议安装tensorflow-cpu减小磁盘占用,并加快安装速度。
- 鲲鹏镜像暂时无法安装TensorFlow,敬请期待后续更新。
support.huaweicloud.com/bestpractice-cloudide/develop_ai_use_model.html
看了此文的人还看了
CDN加速
GaussDB
文字转换成语音
免费的服务器
如何创建网站
域名网站购买
私有云桌面
云主机哪个好
域名怎么备案
手机云电脑
SSL证书申请
云点播服务器
免费OCR是什么
电脑云桌面
域名备案怎么弄
语音转文字
文字图片识别
云桌面是什么
网址安全检测
网站建设搭建
国外CDN加速
SSL免费证书申请
短信批量发送
图片OCR识别
云数据库MySQL
个人域名购买
录音转文字
扫描图片识别文字
OCR图片识别
行驶证识别
虚拟电话号码
电话呼叫中心软件
怎么制作一个网站
Email注册网站
华为VNC
图像文字识别
企业网站制作
个人网站搭建
华为云计算
免费租用云托管
云桌面云服务器
ocr文字识别免费版
HTTPS证书申请
图片文字识别转换
国外域名注册商
使用免费虚拟主机
云电脑主机多少钱
鲲鹏云手机
短信验证码平台
OCR图片文字识别
SSL证书是什么
申请企业邮箱步骤
免费的企业用邮箱
云免流搭建教程
域名价格
推荐文章
- 华为云CodeArts API_API设计支持公共模型
- 云端开发环境服务_IDE _云开发
- 软件开发生产线CodeArts体验指南_软件开发平台_软件开发生产线-华为云
- ModelArts模型训练_模型训练简介_如何训练模型
- 软件开发生产线_玩转代码托管CodeArts Repo_代码管理
- 华为云CodeArts API_APIFirst_API设计_API设计规范_API全生命周期
- GaussDB数据库模型_GaussDB是什么_高斯数据库模型
- 华为云CodeArts API_如何利用CodeArts API设计一个接口?
- 华为云CodeArts API_批量添加请求体参数
- ModelArts开发环境_开发环境简介_开发环境怎么使用