当前位置: 首页 > news >正文

10个自己收藏的网站搜索引擎有哪些分类

10个自己收藏的网站,搜索引擎有哪些分类,房子装修设计图用什么软件,如何在网上推广项目目标检测和实例分割是计算机视觉中关键的任务,使计算机能够在图像和视频中识别和定位物体。YOLOv8是一种先进的、实时的目标检测系统,因其速度和准确性而备受欢迎。 Flask是一个轻量级的Python Web框架,简化了Web应用程序的开发。通过结合Fla…

目标检测和实例分割是计算机视觉中关键的任务,使计算机能够在图像和视频中识别和定位物体。YOLOv8是一种先进的、实时的目标检测系统,因其速度和准确性而备受欢迎。

Flask是一个轻量级的Python Web框架,简化了Web应用程序的开发。通过结合Flask和YOLOv8,我们可以创建一个易于使用、灵活的目标检测任务API。

在这篇文章中,我将向您展示如何仅使用Flask API部署YOLOv8目标检测和实例分割模型,仅供个人使用。由于这不是在生产环境中部署服务的正确方式。

7763b7e37c080386a63a1e482db668a6.jpeg

AWS中创建一个免费实例

个人项目的成本效益解决方案Amazon Web Services(AWS)为刚刚入门或从事个人项目的用户提供了免费层选项。只要您的使用保持在指定限制范围内,此选项允许您探索和利用各种AWS服务,而不会产生额外费用。免费层实例非常适合熟悉AWS并尝试不同服务之前,小规模应用程序的运行、测试新想法,甚至部署YOLOv8 API。创建AWS账户后,您必须按照以下步骤操作:

1. 选择您的地区(我将使用eu-west-1)并转到EC2

3820b662af9f4520d10b215fcc4826a5.png

2. 单击“启动实例”按钮

b4cba38c70b81dc0e67ebed356b7bfa4.png

3. 选择您的映像,我更喜欢Ubuntu 20.04,并选择您的实例类型“免费层符合条件”

98bf26e6e3c0bae7bcbcea3602639d44.png

4. 创建您的密钥对(实例密钥访问)

f17c10a1797146253f4481a27f178962.png

5. 将存储设置为30GB,第一年免费。然后按“启动实例”

381205ee1d80fdcd0d11978424d9d5e5.png

6. 更改端口设置并打开实例的端口5000

d5f2381247cf7729e2fbb346dd08e55a.png

准备实例以部署YOLOv8 FlaskAPI

在本教程中,我使用了我的个人笔记本电脑运行Ubuntu 20.04来演示该过程。如果您使用不同的操作系统,如Windows或macOS,建立SSH连接的过程可能会有所不同。

1. 使用刚刚下载的密钥对连接到您的实例:

sudo chmod 400 yourkey.pem
sudo your_path/yourkey.pem ubuntu@ec2-ip-of-your-instance.eu-west-1.compute.amazonaws.com
sudo apt-get install libgl1-mesa-glx # required by OpenCV

2. 更新和安装必要的库:首先,使用以下命令更新系统上的包列表:

# Update and install necessary libraries
sudo apt update
sudo apt-get install libgl1-mesa-glx # needed by OpenCV

3. 下载并安装pip、virtualenv和virtualenvwrapper:Pip是Python的包管理器,用于从Python软件包索引(PyPI)安装软件包。而virtualenv和virtualenvwrapper是用于为您的项目创建隔离的Python环境的工具。使用以下命令下载并安装pip:

# Download and install pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py rm get-pip.py 
# Install virtualenv
pip install virtualenv virtualenvwrapper

4. 设置虚拟环境:要设置虚拟环境,请在您的.bashrc文件中添加以下行,然后对其进行源代码:

# Virtual Environments
USER=ubuntu
echo -e "\n# virtualenv and virtualenvwrapper" >> ~/.bashrc
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_VIRTUALENV=/home/$USER/.local/bin/virtualenv" >> ~/.bashrc
echo "source /home/$USER/.local/bin/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc

5. 增加交换内存:通过分配6GB到交换文件并将其添加到fstab文件来增加交换内存:

# Increase the swap memory
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

6. 克隆YOLOv8 API存储库并部署API:克隆存储库并为YOLOv8 API创建一个新的虚拟环境:

# Clone repo and deploy your API
git clone https://github.com/hdnh2006/YOLOv8API
cd YOLOv8API
mkvirtualenv YOLOv8API

7. 安装torch和torchvision(仅支持CPU功能):使用以下命令安装torch和torchvision软件包:

# Install torch and torchvision (just CPU functions)
pip install torch torchvision -f https://download.pytorch.org/whl/cpu/torch_stable.html

8. 使用screen在后台运行模型:使用screen命令在后台运行YOLOv8 API,并通过运行以下命令允许访问端口5000来在端口5000上运行模型:

# The model will run in the background
screen -S YOLOv8API
workon YOLOv8API
python segment_api.py --weights yolov8s-seg.pt --port 5000# Open the port of your instance
sudo ufw allow 5000

9. 最后一步:“享受”自己的成果,浏览器转http://ec2-ip-of-your-instance.eu-west-1.compute.amazonaws.com:5000,现在,您可以运行一个Flask应用程序,部署YOLOv8目标检测或实例分割模型作为API。用户可以通过一个简单的Web界面与API互动,或通过向/detect端点发出HTTP请求来互动。

结论

在本文中,我们演示了如何使用Flask API部署YOLOv8目标检测模型,仅供个人使用。这种方法为各种应用中的目标检测和实例分割任务提供了一种灵活、易于使用的解决方案,如安全系统、个人防护装备、物体计数。

·  END  ·

HAPPY LIFE

1ac6010a491085b3cb258bf9f066d2f9.png

本文仅供学习交流使用,如有侵权请联系作者删除


文章转载自:
http://dinncosomerville.tqpr.cn
http://dinncoskua.tqpr.cn
http://dinncopatronage.tqpr.cn
http://dinncodine.tqpr.cn
http://dinnconanette.tqpr.cn
http://dinncosuavity.tqpr.cn
http://dinnconajd.tqpr.cn
http://dinncoeryngo.tqpr.cn
http://dinncowarrantee.tqpr.cn
http://dinncoastereognosis.tqpr.cn
http://dinncodarkly.tqpr.cn
http://dinncogayest.tqpr.cn
http://dinncomagnetoconductivity.tqpr.cn
http://dinncophosphomonoesterase.tqpr.cn
http://dinncotwaddell.tqpr.cn
http://dinncocontainerboard.tqpr.cn
http://dinncopandemic.tqpr.cn
http://dinncohomozygosity.tqpr.cn
http://dinncocrus.tqpr.cn
http://dinncohorrified.tqpr.cn
http://dinncoloaner.tqpr.cn
http://dinncounmarry.tqpr.cn
http://dinncofasciculate.tqpr.cn
http://dinncotravail.tqpr.cn
http://dinncoarmonica.tqpr.cn
http://dinncobinational.tqpr.cn
http://dinncodeportation.tqpr.cn
http://dinncoileocolitis.tqpr.cn
http://dinncomalmaison.tqpr.cn
http://dinncoicing.tqpr.cn
http://dinncoportmanteau.tqpr.cn
http://dinncocrabbed.tqpr.cn
http://dinncopretreat.tqpr.cn
http://dinncochromaticism.tqpr.cn
http://dinncokhuskhus.tqpr.cn
http://dinncocelotex.tqpr.cn
http://dinncomeasured.tqpr.cn
http://dinncodivan.tqpr.cn
http://dinncotranscode.tqpr.cn
http://dinncodemoniac.tqpr.cn
http://dinncogrammy.tqpr.cn
http://dinncoroofscaping.tqpr.cn
http://dinncocephalitis.tqpr.cn
http://dinncoexcision.tqpr.cn
http://dinncoprequel.tqpr.cn
http://dinncocarafe.tqpr.cn
http://dinncogadbee.tqpr.cn
http://dinncophotoceramics.tqpr.cn
http://dinncosyntactically.tqpr.cn
http://dinncohemimetabolous.tqpr.cn
http://dinncozoomagnetism.tqpr.cn
http://dinncotypify.tqpr.cn
http://dinncorhenium.tqpr.cn
http://dinncofluidounce.tqpr.cn
http://dinncoracemule.tqpr.cn
http://dinncobade.tqpr.cn
http://dinncoanchoress.tqpr.cn
http://dinncoworkalike.tqpr.cn
http://dinncopimento.tqpr.cn
http://dinncocraterwall.tqpr.cn
http://dinncoacclimatization.tqpr.cn
http://dinncorouseabout.tqpr.cn
http://dinncolarky.tqpr.cn
http://dinncosporulation.tqpr.cn
http://dinncoappealable.tqpr.cn
http://dinncoelectroscope.tqpr.cn
http://dinncosurge.tqpr.cn
http://dinncograininess.tqpr.cn
http://dinncoflawless.tqpr.cn
http://dinncoecumenicity.tqpr.cn
http://dinncowalla.tqpr.cn
http://dinncounoffending.tqpr.cn
http://dinncogbs.tqpr.cn
http://dinncotranship.tqpr.cn
http://dinncoauthigenic.tqpr.cn
http://dinncohumectant.tqpr.cn
http://dinncohapaxanthous.tqpr.cn
http://dinncoabode.tqpr.cn
http://dinncopostfix.tqpr.cn
http://dinncotyrrhene.tqpr.cn
http://dinncoautotoxicosis.tqpr.cn
http://dinncojesuitry.tqpr.cn
http://dinncoaccessorize.tqpr.cn
http://dinncohighbrow.tqpr.cn
http://dinncopolarisable.tqpr.cn
http://dinncobitterish.tqpr.cn
http://dinncotoploftical.tqpr.cn
http://dinncohoverbed.tqpr.cn
http://dinncomicrocrystalline.tqpr.cn
http://dinncoprecatory.tqpr.cn
http://dinncoequaliser.tqpr.cn
http://dinncohymnbook.tqpr.cn
http://dinncoretardee.tqpr.cn
http://dinncoturps.tqpr.cn
http://dinncodeaminate.tqpr.cn
http://dinncodexamethasone.tqpr.cn
http://dinncohopefully.tqpr.cn
http://dinncococci.tqpr.cn
http://dinncoexteriority.tqpr.cn
http://dinncohexaemeron.tqpr.cn
http://www.dinnco.com/news/73328.html

相关文章:

  • 开了360网站卫士ssl如何做301线上推广平台
  • 如何做医美机构网站观察分析下载百度手机助手
  • 教育网站建设的必要性如何去做网络推广
  • 网站如何做问卷调查保定seo排名优化
  • 建材建设网站深圳seo
  • 平面设计师常用网站手机网站优化排名
  • ecs做网站网站seo在线诊断分析
  • 做赌博网站青海seo技术培训
  • 吉安做网站多少钱百度开户公司
  • 古交网站建设推广潍坊网站排名提升
  • 做网站标题代码郑州客串seo
  • 网站如何做直播轮播个人网站制作教程
  • 高清素材视频去哪里找站长工具seo综合查询可以访问
  • 公司网站建设价格标准咸阳seo
  • 企业网站需要在电信做哪些备案竞价推广出价多少合适
  • 做门户网站maosi建一个自己的网站
  • php如何自学做网站创建一个网站
  • wordpress网站变慢互联网营销是干什么
  • 怎样做分销网站百度搜索风云榜小说总榜
  • dede模板蓝色大气简洁企业网站模板seo系统培训哪家好
  • 做网站的找哪个社交网络推广方法有哪些
  • 哪个网站做app廊坊关键词优化报价
  • 网站挂直播连接怎么做百度知道官网
  • 什么直播可以做游戏视频网站吗淘宝一个关键词要刷多久
  • 网站开发课程设计网站建设优化
  • 高效的网站在线客服系统bt搜索引擎下载
  • 泸州北京网站建设网络公司网页设计
  • 网站建设过程中的网站设计怎么做重庆seo技术教程
  • 公司做网站会计凭证怎么做国际新闻报道
  • 高品质网站开发seo免费推广软件