作品:




一、支持设备清单(必须先核对)
仅支持以下 Intel 独立显卡 / 核显,不在列表内无法正常加速
1. 独立显卡
Intel Arc B 系列:B580、B570
Intel Arc A 系列:Flex 170、A770、A750、A580、A770M、A730M、A550M
2. 集成 Arc 显卡
酷睿 Ultra 200 系列(Arrow Lake‑H):9 285H、7 265H、7 255H、5 235H、5 225H
酷睿 Ultra 200V 系列(Lunar Lake‑V):9 288V、7 268V、7 266V、7 258V、7 256V、5 238V、5 236V、5 228V、5 226V
酷睿 Ultra 100 系列(Meteor Lake‑H):9 185H、7 165H、7 155H、5 135H、5 125H 及其 HL 版本
二、环境准备(必装)
三、拉取 ComfyUI 代码
以普通权限打开 CMD,依次执行:
# 进入根目录并创建文件夹
cd /
mkdir comfyui
cd comfyui
# 拉取代码(失败可科学上网或手动下载 ZIP)
git clone https://github.com/Comfy-Org/ComfyUI.git
# 查看是否拉取成功
dir comfyui四、创建 Conda 隔离环境
# 创建环境(Python 3.10)
conda create -n intel_xpu python=3.10 -y
# 激活环境
conda activate intel_xpu
# 升级 pip
python -m pip install --upgrade pip五、安装 PyTorch + Intel XPU 插件
# 安装 torch(Intel XPU 专用)
python -m pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/xpu
# 安装 Intel 扩展
python -m pip install intel-extension-for-pytorch==2.8.10+xpu --index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/六、检查安装是否成功
执行以下命令,出现 XpuDeviceProperties=intel arc 即为成功:
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(管理员权限 CMD)
进入 ComfyUI-master 目录,执行:
python main.py --use-pytorch-cross-attention --bf16-unet --lowvram --disable-cuda-malloc --disable-smart-memory --oneapi-device-selector level_zero:gpu --disable-ipex-optimize --reserve-vram 1024八、访问工作台
浏览器打开:http://127.0.0.1:8188
九、优质提示词
1.写实人像。2.
(best quality, masterpiece, photorealistic:1.3), raw photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3,
(beautiful young woman:1.2), detailed skin texture, natural makeup, glowing skin, intricate eyes, long eyelashes,
wearing a cozy white sweater, soft focus background, bokeh, depth of field,
shot on 35mm lens, f/1.8, golden hour lighting, warm tone