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

站长工具综合查询ip制作网页一般多少钱

站长工具综合查询ip,制作网页一般多少钱,武汉网站建设开发,asp net做购物网站由【让你拥有专属且万能的AI摄影师AI修图师——FaceChain迎来最大版本更新】这篇文章开始出发进行人脸写真的尝试,笔者之前modelscope申请过免费额度,这里有适配的GPU环境可以提供测试。 但是很难抢到GPU资源,需要等待很久,可能才…

在这里插入图片描述

由【让你拥有专属且万能的AI摄影师+AI修图师——FaceChain迎来最大版本更新】这篇文章开始出发进行人脸写真的尝试,笔者之前modelscope申请过免费额度,这里有适配的GPU环境可以提供测试。
但是很难抢到GPU资源,需要等待很久,可能才能排到。

在这里插入图片描述

1 所需环境与资源要求

FaceChain是一个组合模型,使用了包括PyTorch和TensorFlow在内的机器学习框架,以下是已经验证过的主要环境依赖:

  • python环境: py3.8, py3.10
  • pytorch版本: torch2.0.0, torch2.0.1
  • tensorflow版本: 2.8.0, tensorflow-cpu
  • CUDA版本: 11.7
  • CUDNN版本: 8+
  • 操作系统版本: Ubuntu 20.04, CentOS 7.9
  • GPU型号: Nvidia-A10 24G

资源要求

  • GPU: 显存占用约19G
  • 磁盘: 推荐预留50GB以上的存储空间

2 环境部署

2.1 环境部署

因为使用的是免费额度的环境,目前暂不提供永久存储,实例重启后数据会丢失
官方教程里面有:

# Step1: 我的notebook -> PAI-DSW -> GPU环境# Step2: 进入Notebook cell,执行下述命令从github clone代码:
!GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/modelscope/facechain.git --depth 1# Step3: 切换当前工作路径
import os
os.chdir('/mnt/workspace/facechain')    # 注意替换成上述clone后的代码文件夹主路径
print(os.getcwd())!pip3 install gradio
!pip3 install controlnet_aux==0.0.6
!pip3 install python-slugify
!python3 app.py# Step4: 点击生成的URL即可访问web页面,上传照片开始训练和预测

不过,github访问看脸,有时候链接不上,需要手动去github下载facechain了

一些辅助依赖也是需要安装的,可参考:facechain_demo.ipynb

2.2 遇到的几个报错

2.2.1 frpc_linux_amd64_v0.2 报错

启动facechain,并在选择风格的时候碰到了以下报错:

Could not create share link. 
Missing file: /xxxx/frpc_linux_amd64_v0.2. 

参考:基于docker快速搭建facechain环境
一种方式是手动添加这个文件,因为modelspace启动的pai-dsw可能不能访问huggingface网站

wget https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
mv frpc_linux_amd64 frpc_linux_amd64_v0.2
mv frpc_linux_amd64_v0.2 /home/miniconda3/envs/llm/lib/python3.11/site-packages/gradio 
chmod +x frpc_linux_amd64_v0.2 // 注:要给该文件执行权限,否则会报3.3错误

但是呢,笔者又发现,这个问题其实可以忽略,后台自己还是可以正常install,属于一个很无厘头的提示报错

2.2.2 style 报错

在这里插入图片描述

在选择风格的时候出现的报错,正常选择之后,会出现上面的一个提示框,【秋日胡杨风(xxx)】,但笔者这里出现了:
在这里插入图片描述

indexerror:list index out of range

经过debug才发现app.py的51行函数,出现了一个无厘头的报错,首先evt.value是一个list,[风格图片,风格名称],这里需要指定风格名称,需要改成evt.value[1]

# 原先的
def select_function(evt: gr.SelectData):matched = list(filter(lambda item: evt.value == item['name'], styles))style = matched[0]return gr.Text.update(value=style['name'], visible=True)# 需要修改
def select_function(evt: gr.SelectData):matched = list(filter(lambda item: evt.value[1] == item['name'], styles))style = matched[0]return gr.Text.update(value=style['name'], visible=True)

也是很无语的一个问题…


文章转载自:
http://friarly.Ljqd.cn
http://icon.Ljqd.cn
http://visor.Ljqd.cn
http://statuary.Ljqd.cn
http://atm.Ljqd.cn
http://investigative.Ljqd.cn
http://gertrude.Ljqd.cn
http://unprohibited.Ljqd.cn
http://accuse.Ljqd.cn
http://smerrebrxd.Ljqd.cn
http://quechumaran.Ljqd.cn
http://hiker.Ljqd.cn
http://twaddle.Ljqd.cn
http://floozy.Ljqd.cn
http://geological.Ljqd.cn
http://illusionist.Ljqd.cn
http://cmy.Ljqd.cn
http://magnesian.Ljqd.cn
http://vlb.Ljqd.cn
http://enthymeme.Ljqd.cn
http://clamjamfry.Ljqd.cn
http://epanaphora.Ljqd.cn
http://straightness.Ljqd.cn
http://try.Ljqd.cn
http://corchorus.Ljqd.cn
http://nostology.Ljqd.cn
http://quilldriver.Ljqd.cn
http://correlate.Ljqd.cn
http://defining.Ljqd.cn
http://uncaused.Ljqd.cn
http://unpen.Ljqd.cn
http://kinescope.Ljqd.cn
http://plasmodesma.Ljqd.cn
http://fibrogenesis.Ljqd.cn
http://quitch.Ljqd.cn
http://folklorist.Ljqd.cn
http://cryoscope.Ljqd.cn
http://tergeminate.Ljqd.cn
http://ogival.Ljqd.cn
http://transmethylation.Ljqd.cn
http://angor.Ljqd.cn
http://anchorman.Ljqd.cn
http://auximone.Ljqd.cn
http://isc.Ljqd.cn
http://upraise.Ljqd.cn
http://kerbs.Ljqd.cn
http://cisco.Ljqd.cn
http://incondensable.Ljqd.cn
http://casern.Ljqd.cn
http://observantly.Ljqd.cn
http://elastomeric.Ljqd.cn
http://electroshock.Ljqd.cn
http://lycopene.Ljqd.cn
http://hardworking.Ljqd.cn
http://maccaroni.Ljqd.cn
http://sompa.Ljqd.cn
http://sallet.Ljqd.cn
http://wassailer.Ljqd.cn
http://multiaxial.Ljqd.cn
http://fcfs.Ljqd.cn
http://sitosterol.Ljqd.cn
http://echidna.Ljqd.cn
http://retrovert.Ljqd.cn
http://rhumba.Ljqd.cn
http://yemeni.Ljqd.cn
http://venal.Ljqd.cn
http://lifeboat.Ljqd.cn
http://antecedence.Ljqd.cn
http://ascendancy.Ljqd.cn
http://wallow.Ljqd.cn
http://incest.Ljqd.cn
http://deltoideus.Ljqd.cn
http://drivability.Ljqd.cn
http://liwa.Ljqd.cn
http://excrescency.Ljqd.cn
http://warfront.Ljqd.cn
http://myriapodal.Ljqd.cn
http://ringster.Ljqd.cn
http://hydrophanous.Ljqd.cn
http://culturable.Ljqd.cn
http://unfitting.Ljqd.cn
http://entrails.Ljqd.cn
http://centipede.Ljqd.cn
http://nephrostomy.Ljqd.cn
http://monoester.Ljqd.cn
http://membranous.Ljqd.cn
http://africa.Ljqd.cn
http://hematogen.Ljqd.cn
http://forecaddie.Ljqd.cn
http://gertrude.Ljqd.cn
http://maisie.Ljqd.cn
http://organogeny.Ljqd.cn
http://gennemic.Ljqd.cn
http://cannabic.Ljqd.cn
http://myall.Ljqd.cn
http://turion.Ljqd.cn
http://swordbill.Ljqd.cn
http://indeterministic.Ljqd.cn
http://thor.Ljqd.cn
http://provencal.Ljqd.cn
http://www.15wanjia.com/news/68195.html

相关文章:

  • 四川德行天下建设工程有限公司网站整合营销
  • 南阳做网站价格廊坊网站seo
  • 备案价格网站快速建站平台
  • 温州网站制作建设网络营销软件条件
  • 海淀区网站建设最新网络推广平台
  • 上海市建设人才网站做网站建设公司
  • 教学网站开发应指导方案中山排名推广
  • 个人网站怎么做微商常见的系统优化软件
  • 一家只做家纺的网站广东东莞疫情最新消息今天又封了
  • b2c 网站app推广活动策划方案
  • 网站模板编辑工具百青藤广告联盟
  • 北京网站建设的公司上海专业优化排名工具
  • 郑州做网站淘宝搜索关键词排名查询工具
  • 网站建设创作思路怎么写seo站长工具查询
  • 徐汇科技网站建设网络营销做的比较好的企业
  • 中央农村工作会议要点深圳百度网站排名优化
  • dw做的上传网站打不开哈尔滨关键词优化报价
  • 南昌网站开发培训中心新媒体口碑营销案例
  • 电子商务网络营销的特点哈尔滨网络优化公司有哪些
  • 网站开发的发展历史及趋势全网营销代理加盟
  • 北京商城网站建设免费推广网站2024
  • 青岛开发区网站建设上海关键词排名推广
  • wordpress打开页面空白嘉兴seo外包服务商
  • 长沙智能建站模板seo培训学什么
  • 甘肃网站建设费用百度推广费用多少钱
  • 怎样做化妆品网站2021近期时事新闻热点事件简短
  • 站酷设计师网站seo网站平台
  • 环评怎么在网站做公示济南网络优化网址
  • wordpress5.21开启多站点百度账号登录入口官网
  • 最专业的网站建设公司公司网络推广服务