<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>瑜廷的生活记录</title><link>http://vlink.ltd/</link><description>Good Luck To You!</description><item><title>ComfyUI 安装详细流程</title><link>http://vlink.ltd/?id=1</link><description>&lt;h2 id=&quot;h2-u7CFBu7EDFu8981u6C42&quot;&gt;&lt;a name=&quot;系统要求&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;系统要求&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Python 3.10 或更高版本&lt;/li&gt;&lt;li&gt;Git&lt;/li&gt;&lt;li&gt;推荐：NVIDIA显卡（需安装 CUDA 11.8）&lt;/li&gt;&lt;li&gt;操作系统：Windows 10/11 或 Linux&lt;/li&gt;&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;h2-u5B89u88C5u6B65u9AA4&quot;&gt;&lt;a name=&quot;安装步骤&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;安装步骤&lt;/h2&gt;&lt;h3 id=&quot;h3-1-&quot;&gt;&lt;a name=&quot;1. 克隆仓库&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;1. 克隆仓库&lt;/h3&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;h3-2-&quot;&gt;&lt;a name=&quot;2. 安装依赖&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;2. 安装依赖&lt;/h3&gt;&lt;h4 id=&quot;h4--pip-&quot;&gt;&lt;a name=&quot;使用 pip：&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;使用 pip：&lt;/h4&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pip install -r requirements.txt&lt;/code&gt;&lt;/pre&gt;
&lt;h4 id=&quot;h4--conda-&quot;&gt;&lt;a name=&quot;（可选）使用 Conda：&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;（可选）使用 Conda：&lt;/h4&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;conda create -n comfyui python=3.10
conda activate comfyui
pip install -r requirements.txt&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;h3-3-&quot;&gt;&lt;a name=&quot;3. 模型文件准备&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;3. 模型文件准备&lt;/h3&gt;&lt;ol&gt;
&lt;li&gt;创建模型目录：&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;mkdir -p models/checkpoints&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;li&gt;将下载的模型（.ckpt 或 .safetensors）放入 &lt;code&gt;models/checkpoints/&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;hr&gt;
&lt;h2 id=&quot;h2--comfyui&quot;&gt;&lt;a name=&quot;运行 ComfyUI&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;运行 ComfyUI&lt;/h2&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;python main.py&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;h3--&quot;&gt;&lt;a name=&quot;常用启动参数：&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;常用启动参数：&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;--listen&lt;/code&gt;：允许局域网访问&lt;/li&gt;&lt;li&gt;&lt;code&gt;--port 8188&lt;/code&gt;：指定端口&lt;/li&gt;&lt;li&gt;&lt;code&gt;--highvram&lt;/code&gt;：高显存模式&lt;/li&gt;&lt;li&gt;&lt;code&gt;--lowvram&lt;/code&gt;：低显存优化&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;示例：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;python main.py --listen --port 9000&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2 id=&quot;h2-u6D4Fu89C8u5668u8BBFu95EE&quot;&gt;&lt;a name=&quot;浏览器访问&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;浏览器访问&lt;/h2&gt;&lt;p&gt;打开 &lt;code&gt;http://localhost:8188&lt;/code&gt;（默认端口）或自定义端口地址&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;h2-u53EFu9009u914Du7F6E&quot;&gt;&lt;a name=&quot;可选配置&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;可选配置&lt;/h2&gt;&lt;h3 id=&quot;h3-u5B89u88C5u81EAu5B9Au4E49u8282u70B9&quot;&gt;&lt;a name=&quot;安装自定义节点&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;安装自定义节点&lt;/h3&gt;&lt;ol&gt;
&lt;li&gt;将节点文件放入 &lt;code&gt;custom_nodes/&lt;/code&gt; 目录&lt;/li&gt;&lt;li&gt;重启 ComfyUI&lt;/li&gt;&lt;/ol&gt;
&lt;h3 id=&quot;h3--comfyui&quot;&gt;&lt;a name=&quot;更新 ComfyUI&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;更新 ComfyUI&lt;/h3&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git pull
pip install -r requirements.txt --upgrade&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2 id=&quot;h2-u5E38u89C1u95EEu9898u89E3u51B3&quot;&gt;&lt;a name=&quot;常见问题解决&quot; class=&quot;reference-link&quot; href=&quot;#&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;常见问题解决&lt;/h2&gt;&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;依赖安装失败&lt;/strong&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;确保 Python 版本 ≥3.10&lt;/li&gt;&lt;li&gt;尝试 &lt;code&gt;pip install --upgrade pip setuptools&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;端口冲突&lt;/strong&gt;：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;netstat -ano | findstr :8188  # Windows
lsof -i :8188                # Linux&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;CUDA 错误&lt;/strong&gt;：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pip uninstall torch torchvision torchaudio
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;无界面显示&lt;/strong&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;检查 &lt;code&gt;comfy.log&lt;/code&gt; 日志文件&lt;/li&gt;&lt;li&gt;确保模型文件已正确放置&lt;/li&gt;&lt;/ul&gt;
&lt;/li&gt;&lt;/ol&gt;
</description><pubDate>Thu, 06 May 2021 14:16:59 +0800</pubDate></item></channel></rss>