Streamlit —使用数据应用程序更好地测试模型

本文介绍了Streamlit,这是一个开源Web框架,让数据科学家和机器学习工程师能快速用Python创建美观、高效的App。通过示例展示了如何用Streamlit创建一个用于调整NMS值并测试对象检测模型的应用,包括安装、入门步骤以及如何利用缓存优化性能。
摘要由CSDN通过智能技术生成

介绍 (Introduction)

We use all kinds of techniques from creating a very reliable validation set to using k-fold cross-validation or coming up with all sorts of fancy metrics to determine how good our model performs. However, nothing beats looking at the raw output. When you look at sample output, you figure out things that none of the other methods can tell you.

我们使用各种技术,从创建非常可靠的验证集到使用k倍交叉验证或提出各种幻想指标来确定模型的性能。 但是,看原始输出无所不能。 查看示例输出时,您会发现其他方法无法告诉您的内容。

For example, if you are performing object detection on crops, you might see that when the crop is aligned in a certain way because of the wind, our bounding boxes don’t encapsulate the crop properly.

例如,如果要对农作物执行对象检测,则可能会看到,由于风将农作物以某种方式对齐时,我们的边界框无法正确封装农作物。

However, looking at sample outputs is a tedious task. Say we want to test various NMS values, and we also want to test it on a bunch of images. We can always write a function for this, but running it, again and again, is boring.

但是,查看样本输出是一项繁琐的任务。 假设我们要测试各种NMS值,并且还要对一堆图像进行测试。 我们总是可以为此编写一个函数,但是一次又一次地运行它很无聊。

Wouldn’t it be nice to have an app where we can upload an image and use a slider to adjust the NMS value? Welcome, Streamlit.

拥有一个可以上传图像并使用滑块调整NMS值的应用程序不是很好吗? 欢迎,Streamlit。

Image for post

什么是Streamlit? (What is Streamlit?)

According to their website, Streamlit is an open-source web framework for data scientists and machine learning engineers to create beautiful, performant apps in just a few hours, all in pure Python.

根据他们的网站,Streamlit是一个开放源代码Web框架,供数据科学家和机器学习工程师在短短几个小时内使用纯Python编写漂亮,高性能的应用程序。

安装 <

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值