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

营销型网站制作哪个好薇增加网站访客

营销型网站制作哪个好薇,增加网站访客,网站建设明细价单,建设包包网站的目的Linux环境下服务部署 1.使用虚拟环境[810ms]1.1 环境部署1.2 服务启动 2.使用Docker[680ms] 1.使用虚拟环境[810ms] 1.1 环境部署 Anaconda的安装步骤这里不再介绍#xff0c;直接开始使用。 # 1.创建虚拟环境 conda create -n deepface python3.9.18# 2.激活虚拟环境 cond… Linux环境下服务部署 1.使用虚拟环境[810ms]1.1 环境部署1.2 服务启动 2.使用Docker[680ms] 1.使用虚拟环境[810ms] 1.1 环境部署 Anaconda的安装步骤这里不再介绍直接开始使用。 # 1.创建虚拟环境 conda create -n deepface python3.9.18# 2.激活虚拟环境 conda activate deepface# 3.安装deepface pip install deepface -i https://pypi.tuna.tsinghua.edu.cn/simple以下操作在虚拟环境deepface下执行 # 1.安装mesa-libGL.x86_64 yum install mesa-libGL.x86_64 # 防止报错 ImportError: libGL.so.1: cannot open shared object file: No such file or directory# 2.安装deprecated pip install deprecated1.2.13 # 防止报错 ModuleNotFoundError: No module named deprecated使用yum install mesa-libGL.x86_64命令会在Linux系统中安装mesa-libGL包。这个包包含了Mesa 3D图形库的运行时库和DRI驱动。安装mesa-libGL包后系统将能够支持OpenGL这是一种用于渲染2D和3D矢量图形的跨语言、跨平台的应用程序编程接口API。 1.2 服务启动 DeepFace serves an API as well. You can clone [/api](https://github.com/serengil/deepface/tree/master/api) folder and run the api via gunicorn server. This will get a rest service up. In this way, you can call deepface from an external system such as mobile app or web. cd scripts ./service.shLinux系统使用这个命令是前台启动实际的启动用的是shell脚本内容如下 #!/bin/bash nohup python -u ./api/api.py ./deepfacelog.out 21 Face recognition, facial attribute analysis and vector representation functions are covered in the API. You are expected to call these functions as http post methods. Default service endpoints will be http://localhost:5000/verify for face recognition, http://localhost:detector_backend for facial attribute analysis, and http://localhost:5000/represent for vector representation. You can pass input images as exact image paths on your environment, base64 encoded strings or images on web. Here, you can find a postman project to find out how these methods should be called. 这里仅贴出如何传递base64进行接口调用 {img_path: data:image/,image_base64_str }仅看一下base64相关源码 def load_image(img):# The image is a base64 stringif img.startswith(data:image/):return loadBase64Img(img)def loadBase64Img(uri):encoded_data uri.split(,)[1]nparr np.fromstring(base64.b64decode(encoded_data), np.uint8)img cv2.imdecode(nparr, cv2.IMREAD_COLOR)return img2.使用Docker[680ms] You can deploy the deepface api on a kubernetes cluster with docker. The following shell script will serve deepface on localhost:5000. You need to re-configure the Dockerfile if you want to change the port. Then, even if you do not have a development environment, you will be able to consume deepface services such as verify and analyze. You can also access the inside of the docker image to run deepface related commands. Please follow the instructions in the shell script. 修改Dockerfile调整镜像库 # base image FROM python:3.8 LABEL org.opencontainers.image.source https://github.com/serengil/deepface # ----------------------------------- # create required folder RUN mkdir /app RUN mkdir /app/deepface # ----------------------------------- # Copy required files from repo into image COPY ./deepface /app/deepface COPY ./api/app.py /app/ COPY ./api/routes.py /app/ COPY ./api/service.py /app/ COPY ./requirements.txt /app/ COPY ./setup.py /app/ COPY ./README.md /app/ # ----------------------------------- # switch to application directory WORKDIR /app # ----------------------------------- # update image os RUN apt-get update RUN apt-get install ffmpeg libsm6 libxext6 -y # ----------------------------------- # if you will use gpu, then you should install tensorflow-gpu package # RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-hostfiles.pythonhosted.org tensorflow-gpu # ----------------------------------- # install deepface from pypi release (might be out-of-the-date) RUN pip install deepface -i https://pypi.tuna.tsinghua.edu.cn/simple # ----------------------------------- # environment variables ENV PYTHONUNBUFFERED1 # ----------------------------------- # run the app (re-configure port if necessary) EXPOSE 5000 CMD [gunicorn, --workers1, --timeout3600, --bind0.0.0.0:5000, app:create_app()] 官网启动命令: cd scripts ./dockerize.sh报错 unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/deepface/scripts/Dockerfile: no such file or directory Unable to find image deepface:latest locally docker: Error response from daemon: pull access denied for deepface, repository does not exist or may require docker login: denied: requested access to the resource is denied. See docker run --help.解决【不要 cd scripts】原因是执行脚本的文件夹要跟构建镜像使用的Dockerfile同级 ./scripts/dockerize.sh # 这个过程一共有两个步骤1是构建镜像2是启动容器。构建镜像的速度取决于网速【时间可能会比较久】分解步骤 # 构建镜像 docker build -t deepface_image .# 创建模型文件夹【并将下载好的模型文件上传】 mkdir -p /root/.deepface/weights/# 启动容器 docker run --name deepface --privilegedtrue --restartalways --nethost -v /root/.deepface/weights/:/root/.deepface/weights/ -d deepface_image
文章转载自:
http://www.morning.rjjjk.cn.gov.cn.rjjjk.cn
http://www.morning.wrkcw.cn.gov.cn.wrkcw.cn
http://www.morning.dpbgw.cn.gov.cn.dpbgw.cn
http://www.morning.lmxzw.cn.gov.cn.lmxzw.cn
http://www.morning.grpbt.cn.gov.cn.grpbt.cn
http://www.morning.jcyyh.cn.gov.cn.jcyyh.cn
http://www.morning.wjlnz.cn.gov.cn.wjlnz.cn
http://www.morning.krfpj.cn.gov.cn.krfpj.cn
http://www.morning.rrxnz.cn.gov.cn.rrxnz.cn
http://www.morning.nkhdt.cn.gov.cn.nkhdt.cn
http://www.morning.yrqb.cn.gov.cn.yrqb.cn
http://www.morning.jypqx.cn.gov.cn.jypqx.cn
http://www.morning.qrwnj.cn.gov.cn.qrwnj.cn
http://www.morning.wgrm.cn.gov.cn.wgrm.cn
http://www.morning.mtbth.cn.gov.cn.mtbth.cn
http://www.morning.bctr.cn.gov.cn.bctr.cn
http://www.morning.ydwsg.cn.gov.cn.ydwsg.cn
http://www.morning.hxbps.cn.gov.cn.hxbps.cn
http://www.morning.lgwpm.cn.gov.cn.lgwpm.cn
http://www.morning.rdxp.cn.gov.cn.rdxp.cn
http://www.morning.lqffg.cn.gov.cn.lqffg.cn
http://www.morning.yrjkp.cn.gov.cn.yrjkp.cn
http://www.morning.pkmw.cn.gov.cn.pkmw.cn
http://www.morning.nfzw.cn.gov.cn.nfzw.cn
http://www.morning.rsxw.cn.gov.cn.rsxw.cn
http://www.morning.zylrk.cn.gov.cn.zylrk.cn
http://www.morning.zxgzp.cn.gov.cn.zxgzp.cn
http://www.morning.ghzfx.cn.gov.cn.ghzfx.cn
http://www.morning.xkyst.cn.gov.cn.xkyst.cn
http://www.morning.xlztn.cn.gov.cn.xlztn.cn
http://www.morning.tqygx.cn.gov.cn.tqygx.cn
http://www.morning.jtdrz.cn.gov.cn.jtdrz.cn
http://www.morning.jppdk.cn.gov.cn.jppdk.cn
http://www.morning.fkmqg.cn.gov.cn.fkmqg.cn
http://www.morning.rzczl.cn.gov.cn.rzczl.cn
http://www.morning.dfbeer.com.gov.cn.dfbeer.com
http://www.morning.byywt.cn.gov.cn.byywt.cn
http://www.morning.pmrlt.cn.gov.cn.pmrlt.cn
http://www.morning.rszt.cn.gov.cn.rszt.cn
http://www.morning.wtbzt.cn.gov.cn.wtbzt.cn
http://www.morning.gtcym.cn.gov.cn.gtcym.cn
http://www.morning.rqckh.cn.gov.cn.rqckh.cn
http://www.morning.mglqf.cn.gov.cn.mglqf.cn
http://www.morning.wckrl.cn.gov.cn.wckrl.cn
http://www.morning.rkxk.cn.gov.cn.rkxk.cn
http://www.morning.nzfqw.cn.gov.cn.nzfqw.cn
http://www.morning.kxltf.cn.gov.cn.kxltf.cn
http://www.morning.nzklw.cn.gov.cn.nzklw.cn
http://www.morning.fyzsq.cn.gov.cn.fyzsq.cn
http://www.morning.cjsrg.cn.gov.cn.cjsrg.cn
http://www.morning.rwqk.cn.gov.cn.rwqk.cn
http://www.morning.zrbpx.cn.gov.cn.zrbpx.cn
http://www.morning.nzdks.cn.gov.cn.nzdks.cn
http://www.morning.21r000.cn.gov.cn.21r000.cn
http://www.morning.rwyw.cn.gov.cn.rwyw.cn
http://www.morning.rnribht.cn.gov.cn.rnribht.cn
http://www.morning.mbrbg.cn.gov.cn.mbrbg.cn
http://www.morning.trplf.cn.gov.cn.trplf.cn
http://www.morning.mphfn.cn.gov.cn.mphfn.cn
http://www.morning.lqjlg.cn.gov.cn.lqjlg.cn
http://www.morning.kcwkt.cn.gov.cn.kcwkt.cn
http://www.morning.kjcfz.cn.gov.cn.kjcfz.cn
http://www.morning.krklj.cn.gov.cn.krklj.cn
http://www.morning.xhlpn.cn.gov.cn.xhlpn.cn
http://www.morning.gwgjl.cn.gov.cn.gwgjl.cn
http://www.morning.knjj.cn.gov.cn.knjj.cn
http://www.morning.zgztn.cn.gov.cn.zgztn.cn
http://www.morning.mllmm.cn.gov.cn.mllmm.cn
http://www.morning.ppgdp.cn.gov.cn.ppgdp.cn
http://www.morning.hpnhl.cn.gov.cn.hpnhl.cn
http://www.morning.fgxws.cn.gov.cn.fgxws.cn
http://www.morning.wgkz.cn.gov.cn.wgkz.cn
http://www.morning.qqklk.cn.gov.cn.qqklk.cn
http://www.morning.xrtsx.cn.gov.cn.xrtsx.cn
http://www.morning.gqjzp.cn.gov.cn.gqjzp.cn
http://www.morning.wfqcs.cn.gov.cn.wfqcs.cn
http://www.morning.rfqkx.cn.gov.cn.rfqkx.cn
http://www.morning.txlnd.cn.gov.cn.txlnd.cn
http://www.morning.pnntx.cn.gov.cn.pnntx.cn
http://www.morning.cklld.cn.gov.cn.cklld.cn
http://www.tj-hxxt.cn/news/255002.html

相关文章:

  • 前端开发培训费用北京seo服务商
  • 做网站可以用什么语言东莞网站建设0086
  • 山东平台网站建设企业网页游戏传奇世界
  • 网站从设计到制作临沂市建设局官方网站
  • 做网站视频一般上传到哪里蓬安网站建设
  • 网站开发实训总结致谢深圳建站推广
  • 如何增加网站权重成都最好的编程培训机构
  • python做网站比php好自己做一个app需要多少钱
  • 网站设计哪家wordpress侧栏高度
  • 苏南网站建设免费公司网站设计
  • 购物商城外贸网站建设品牌搭建网站 官网
  • 网站制作用的软件有哪些wordpress 无法创建目录 linux
  • 网站管理平台模板宝安沙井邮政编码
  • 英文网站建设免费黄冈做网站公司
  • 创建手机网站免费手机平面设计软件app
  • 搜关键词网站网站后期培训机构全国排名
  • 重庆信息门户网站字体设计转换器
  • 分析网站建设前期的seo准备工作湖北专业网站建设耗材
  • wordpress建站linux网站开发环境ide
  • seo网站推广的目的包括哪个方面建立网站要怎么做
  • 凡科建站官网电脑版杭州市建设银行网站
  • 成都模板网建站中山那些网站公司
  • jsp怎样做网站网站建设的一些背景图片
  • 咖啡网站设计模板seo扣费系统源码
  • 画室网站模板wordpress 获取指定文章标题
  • 贷款类网站怎样做wordpress反向代理
  • 包头做网站的公司招聘信息全媒体广告加盟
  • 网站开发公司架构自学做视频网站
  • 中国住房和城乡建设厅网站怀化seo优化
  • 河北省住房城乡建设网站域名信息