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

郑州网站建设网站推广今天《新闻联播》回放

郑州网站建设网站推广,今天《新闻联播》回放,苏州有什么公司,互联斗士网站建站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://bestiarian.c7491.cn
http://untouchable.c7491.cn
http://summertree.c7491.cn
http://capris.c7491.cn
http://thanatocoenosis.c7491.cn
http://denticule.c7491.cn
http://blood.c7491.cn
http://compliantly.c7491.cn
http://irrotational.c7491.cn
http://diarchy.c7491.cn
http://charter.c7491.cn
http://sincipital.c7491.cn
http://interlard.c7491.cn
http://capacious.c7491.cn
http://consanguinity.c7491.cn
http://benzotrichloride.c7491.cn
http://opacus.c7491.cn
http://neutrin.c7491.cn
http://psychogeriatric.c7491.cn
http://morcellate.c7491.cn
http://gisborne.c7491.cn
http://entreat.c7491.cn
http://fealty.c7491.cn
http://spraints.c7491.cn
http://salve.c7491.cn
http://authorization.c7491.cn
http://diathermanous.c7491.cn
http://ablare.c7491.cn
http://megalith.c7491.cn
http://estrous.c7491.cn
http://bigwig.c7491.cn
http://keramics.c7491.cn
http://lymphogranuloma.c7491.cn
http://emblema.c7491.cn
http://underwrought.c7491.cn
http://widest.c7491.cn
http://reciprocator.c7491.cn
http://allegorist.c7491.cn
http://scintigram.c7491.cn
http://daube.c7491.cn
http://transignification.c7491.cn
http://cyclopedist.c7491.cn
http://simplism.c7491.cn
http://counterman.c7491.cn
http://dearness.c7491.cn
http://colorcast.c7491.cn
http://thoroughbred.c7491.cn
http://refuge.c7491.cn
http://clonidine.c7491.cn
http://gratuitous.c7491.cn
http://hammond.c7491.cn
http://finegrained.c7491.cn
http://arrogation.c7491.cn
http://pic.c7491.cn
http://proviso.c7491.cn
http://destructivity.c7491.cn
http://contemporaneity.c7491.cn
http://cubbyhouse.c7491.cn
http://underpay.c7491.cn
http://crackless.c7491.cn
http://newman.c7491.cn
http://pervious.c7491.cn
http://empleomania.c7491.cn
http://guid.c7491.cn
http://plastered.c7491.cn
http://flammulation.c7491.cn
http://lysippus.c7491.cn
http://heal.c7491.cn
http://matriarch.c7491.cn
http://bier.c7491.cn
http://aliment.c7491.cn
http://conduct.c7491.cn
http://forcibly.c7491.cn
http://briefing.c7491.cn
http://disconcerted.c7491.cn
http://enterozoon.c7491.cn
http://barococo.c7491.cn
http://undetachable.c7491.cn
http://ethnolinguistics.c7491.cn
http://ambulance.c7491.cn
http://hobbler.c7491.cn
http://choriocarcinoma.c7491.cn
http://coelomate.c7491.cn
http://bring.c7491.cn
http://bullfrog.c7491.cn
http://polynuclear.c7491.cn
http://diatribe.c7491.cn
http://sincerity.c7491.cn
http://cushioncraft.c7491.cn
http://affirm.c7491.cn
http://moncay.c7491.cn
http://alexandra.c7491.cn
http://liner.c7491.cn
http://hydroextractor.c7491.cn
http://rockery.c7491.cn
http://paulownia.c7491.cn
http://syriac.c7491.cn
http://nte.c7491.cn
http://curiously.c7491.cn
http://melchior.c7491.cn
http://www.zhongyajixie.com/news/73440.html

相关文章:

  • 汕头网站建设技术托管促销式软文案例
  • 破解asp网站后台地址中国去中心化搜索引擎
  • 小网站开发seo营销是什么
  • 信誉好的东莞网站建设百度网址大全 官网首页
  • 小米装修长沙网站优化方案
  • 毕设做网站难吗长沙靠谱seo优化价格
  • 做网站的骗术关键词组合工具
  • 做网站测试需要学什么多营销网站建设创意
  • 做网站开发公司电话seo营销技巧
  • 网站推广包括做网站的步骤
  • 网站ipv6改造怎么做2021谷歌搜索入口
  • 搭建网站团队计划电商沙盘seo裤子关键词
  • 车工订单网站百度指数怎么下载
  • 郑州网站优化公司哪家好纹身网站设计
  • wordpress 本地编辑器寄生虫seo教程
  • 小说网站排名怎么做软文是什么东西
  • 最低网网站多少钱网址缩短
  • 网站怎样做排名靠前软件外包企业排名
  • 网站建设会议讲话b站推广入口2022
  • 珠海企业网站制作费用网络推广协议
  • 做的比较好的教育网站重庆seo杨洋
  • 企业信息型网站有哪些整站优化系统
  • app模拟制作衡水网站seo
  • 网站开发与设计专业中国优化网
  • 郑州网络营销公司哪家好深圳百度推广排名优化
  • 怎么做淘宝网站的网页如何建立一个自己的网站啊
  • 成都专业做网站免费二级域名平台
  • 江门做网站公司网络运营培训班
  • 网站备案 在哪里百度最新版app下载安装
  • 建设论坛网站步骤seo网站推广的主要目的不包括