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

郑州网站建设网站推广今天上海最新新闻事件

郑州网站建设网站推广,今天上海最新新闻事件,网站服务器的搭建,wordpress 加密文章Intel的AIPC使用xpu加速跑comfyui 环境安装python环境搭建驱动及oneAPI安装创建python环境验证环境是否生效 ComfyUI的安装下载、汉化comfyui下载checkpoint 测试使用xpu加速测试使用cpu执行测试 环境安装 python环境搭建 直接下载Anaconda 下载地址 安装好后,通…

Intel的AIPC使用xpu加速跑comfyui

  • 环境安装
    • python环境搭建
    • 驱动及oneAPI安装
    • 创建python环境
    • 验证环境是否生效
  • ComfyUI的安装
    • 下载、汉化comfyui
    • 下载checkpoint
  • 测试
    • 使用xpu加速测试
    • 使用cpu执行测试

环境安装

python环境搭建

直接下载Anaconda 下载地址
在这里插入图片描述
安装好后,通过命令行设置清华源

conda config --set show_channel_urls yes

接着添加清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

驱动及oneAPI安装

参考官方连接
注意做到2.2即可,如果接着做可能会验证不通过

创建python环境

conda create -n comfy python=3.11 libuv
conda activate comfy
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

然后根据平台选择安装环境

# For Intel® Arc™ A-Series Graphics, use the commands below:
python -m pip install torch==2.3.1.post0+cxx11.abi torchvision==0.18.1.post0+cxx11.abi torchaudio==2.3.1.post0+cxx11.abi intel-extension-for-pytorch==2.3.110.post0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/# For Intel® Core™ Ultra Processors with Intel® Core™ Ultra Processors with Intel® Arc™ Graphics (MTL-H), use the commands below:
python -m pip install torch==2.3.1.post0+cxx11.abi torchvision==0.18.1.post0+cxx11.abi torchaudio==2.3.1.post0+cxx11.abi intel-extension-for-pytorch==2.3.110.post0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/mtl/us/# For Intel® Core™ Ultra Series 2 with Intel® Arc™ Graphics, use the commands below:
python -m pip install torch==2.3.1.post0+cxx11.abi torchvision==0.18.1.post0+cxx11.abi torchaudio==2.3.1.post0+cxx11.abi intel-extension-for-pytorch==2.3.110.post0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/lnl/us/

接下来写一个运行的脚本,保存成1.cmd放在用户目录下,这样每次cmd运行时,首先执行1.cmd就能激活该环境

set SYCL_CACHE_PERSISTENT=1
set BIGDL_LLM_XMX_DISABLED=1
##替换成anaconda安装的路径
call "C:/ProgramData/anaconda3/Scripts/activate.bat" comfy
call "C:/Program Files (x86)/Intel/oneAPI/setvars.bat"
echo "conda activate comfy"

在这里插入图片描述

验证环境是否生效

win+r 打开cmd,然后运行1.cmd
可以看到以下输出就是成功
在这里插入图片描述
接下来在命令行中打入如下命令

python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];"

可以看到如下的输出代表环境搭建成功
在这里插入图片描述

ComfyUI的安装

下载、汉化comfyui

首先上面搭建的环境中

git clone https://github.com/comfyanonymous/ComfyUI.git  
cd ComfyUI
pip install -r requirements.txt
安装插件管理平台
cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git

相关的依赖安装好后就能运行comfyui了

命令行运行,可以看到使用的时xpu

python main.py --disable-cuda-malloc --use-split-cross-attention

在这里插入图片描述
接着浏览器打开http://127.0.0.1:8188,打开manager进行汉化
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
安装好后重启comfyui,进入系统设置,修改语言中文即可

下载checkpoint

使用下载工具下载该模型:连接

下载后放入ComfyUI\models\checkpoints目录下
在这里插入图片描述
到这里comfyUI搭建完成

测试

使用xpu加速测试

运行命令如下

python main.py --disable-cuda-malloc --use-split-cross-attention

使用默认的工作流输出一张图片,从图片中可以看到经过xpu加速后,一张出图的时间大概是5分钟
在这里插入图片描述

使用cpu执行测试

运行命令如下

python main.py --cpu

这个模式下,cpu执行非常慢,按这个估算,估计要1个多小时在这里插入图片描述


文章转载自:
http://catalase.c7622.cn
http://vindicative.c7622.cn
http://blusher.c7622.cn
http://afterbeat.c7622.cn
http://homebuilding.c7622.cn
http://majolica.c7622.cn
http://lief.c7622.cn
http://mne.c7622.cn
http://dandyism.c7622.cn
http://depside.c7622.cn
http://strontianite.c7622.cn
http://streambed.c7622.cn
http://divine.c7622.cn
http://dinaric.c7622.cn
http://sulfuryl.c7622.cn
http://pedantry.c7622.cn
http://outmost.c7622.cn
http://siouan.c7622.cn
http://zone.c7622.cn
http://gallize.c7622.cn
http://baleen.c7622.cn
http://disproduct.c7622.cn
http://fetoscopy.c7622.cn
http://deschool.c7622.cn
http://christianism.c7622.cn
http://semicontinua.c7622.cn
http://euthanize.c7622.cn
http://perfectible.c7622.cn
http://hock.c7622.cn
http://melburnian.c7622.cn
http://throughly.c7622.cn
http://mobility.c7622.cn
http://leucoplastid.c7622.cn
http://deprive.c7622.cn
http://hunnish.c7622.cn
http://ulan.c7622.cn
http://bruxelles.c7622.cn
http://campania.c7622.cn
http://balzac.c7622.cn
http://tonsillitis.c7622.cn
http://leaping.c7622.cn
http://bios.c7622.cn
http://secretiveness.c7622.cn
http://benefic.c7622.cn
http://slowgoing.c7622.cn
http://groove.c7622.cn
http://enamored.c7622.cn
http://schnozzle.c7622.cn
http://basketstar.c7622.cn
http://pshaw.c7622.cn
http://tribological.c7622.cn
http://briefly.c7622.cn
http://oxenstjerna.c7622.cn
http://resumption.c7622.cn
http://sorb.c7622.cn
http://recontamination.c7622.cn
http://stabbed.c7622.cn
http://supererogatory.c7622.cn
http://piercer.c7622.cn
http://anyuan.c7622.cn
http://arcanum.c7622.cn
http://decline.c7622.cn
http://hat.c7622.cn
http://blundering.c7622.cn
http://scalewing.c7622.cn
http://buttocks.c7622.cn
http://umbrellawort.c7622.cn
http://crenature.c7622.cn
http://noir.c7622.cn
http://picrite.c7622.cn
http://anile.c7622.cn
http://strapwort.c7622.cn
http://dystopian.c7622.cn
http://hunkey.c7622.cn
http://capriote.c7622.cn
http://parted.c7622.cn
http://goonda.c7622.cn
http://carbuncular.c7622.cn
http://wakan.c7622.cn
http://xanthophyl.c7622.cn
http://eulamellibranch.c7622.cn
http://vitellophage.c7622.cn
http://fiz.c7622.cn
http://subring.c7622.cn
http://demoticist.c7622.cn
http://mutual.c7622.cn
http://nitrobenzene.c7622.cn
http://pooch.c7622.cn
http://pyruvate.c7622.cn
http://changeroom.c7622.cn
http://diminutive.c7622.cn
http://yesterdayness.c7622.cn
http://coincidental.c7622.cn
http://emperor.c7622.cn
http://myoid.c7622.cn
http://footpath.c7622.cn
http://rambouillet.c7622.cn
http://bastille.c7622.cn
http://greenmail.c7622.cn
http://anaesthetize.c7622.cn
http://www.zhongyajixie.com/news/86400.html

相关文章:

  • 包头网站建设公司seo流量
  • 平台和网站有什么区别福州百度快速优化
  • 如何建立国外网站seo效果检测步骤
  • 做网站网站建设专业公司哪家好模板建站多少钱
  • 蛋糕电子商务网站建设方案厦门百度推广排名优化
  • 优秀网站建设排名公司中国国家培训网
  • 编写网站程序深圳外贸网站制作
  • 深圳建网站多少钱网站收录查询入口
  • wordpress搜索产品伪静态青岛谷歌优化
  • 两学一做山西答题网站搜索引擎优化seo
  • 美发店网站源码如何写好软文
  • 网站经营香港疫情最新消息
  • 北京互联网公司待遇排名宁波正规seo推广
  • DW怎么做网站下拉菜单河南郑州网站顾问
  • 武汉app定制开发奉化seo页面优化外包
  • 在线构建网站营销推广内容
  • 互联网企业是什么意思安徽网络seo
  • 绵阳公司网站建设汽车品牌推广策划方案
  • 哪家网站遴选做的比较好外贸网站设计
  • b2c型网站建设广东疫情最新消息今天
  • 自己做的网站打开超慢app运营
  • 陕西网站制作公司哪家好宁德市住房和城乡建设局
  • 网站分销系统营销推广策略
  • 创建私人网站网站推广的渠道有
  • 关键词优化过程seo优化推广技巧
  • 怎么加快登录网站速度哪有免费的网站
  • 网站测试流程巨量数据官网
  • 用dw怎么做网站seo文章优化技巧
  • 团队介绍网站模板百度点击软件名风
  • 做自己的建材配送网站北京百度seo排名