<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>潘锦的空间 &#187; OOTDiffusion</title>
	<atom:link href="https://www.phppan.com/tag/ootdiffusion/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.phppan.com</link>
	<description>SaaS SaaS架构 团队管理 技术管理 技术架构 PHP 内核 扩展 项目管理</description>
	<lastBuildDate>Sat, 25 Apr 2026 00:56:17 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>在 AWS 的 EC2 上搭建换装模型 ComfyUI OOTDiffusion</title>
		<link>https://www.phppan.com/2024/06/aws-ec2-comfyui-ootdiffusion/</link>
		<comments>https://www.phppan.com/2024/06/aws-ec2-comfyui-ootdiffusion/#comments</comments>
		<pubDate>Wed, 26 Jun 2024 09:03:43 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[程序相关]]></category>
		<category><![CDATA[comfyUI]]></category>
		<category><![CDATA[OOTDiffusion]]></category>

		<guid isPermaLink="false">http://www.phppan.com/?p=2246</guid>
		<description><![CDATA[项目地址：https://github.com/AuroBit/ComfyUI-OOTDiffusion 在  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>项目地址：https://github.com/AuroBit/ComfyUI-OOTDiffusion</p>
<p>在 AWS 上购买 <span style="color: #16191f;">g4dn.xlarge ，带有一个 gpu  nvidia 显卡</span></p>
<p>初始化机器，如果没有选带 nvidia 驱动的操作系统，需要自己安装 nvidia 的显卡</p>
<p><!--?xml version="1.0" encoding="UTF-8"?--></p>
<div></div>
<div></div>
<div style="padding-left: 30px;">sudo apt-get update #更新软件列表</div>
<div style="padding-left: 30px;">sudo apt-get install g++</div>
<div style="padding-left: 30px;">sudo apt-get install gcc</div>
<div style="padding-left: 30px;">sudo apt-get install make ubuntu-drivers</div>
<div style="padding-left: 30px;">sudo vim /etc/modprobe.d/blacklist-nouveau.conf</div>
<div style="padding-left: 30px;">blacklist nouveau</div>
<div style="padding-left: 30px;">options nouveau modeset=0</div>
<div style="padding-left: 30px;">sudo update-initramfs -u #更新系统</div>
<div style="padding-left: 30px;">sudo reboot # 重启</div>
<div style="padding-left: 30px;"></div>
<div style="padding-left: 30px;"></div>
<div style="padding-left: 30px;">lsmod | grep nouveau</div>
<div style="padding-left: 30px;">sudo apt-get remove &#8211;purge nvidia*</div>
<div style="padding-left: 30px;">ubuntu-drivers devices</div>
<div style="padding-left: 30px;">sudo add-apt-repository ppa:graphics-drivers/ppa</div>
<div style="padding-left: 30px;">sudo apt-get update</div>
<div style="padding-left: 30px;">sudo apt-get install nvidia-driver-535 #此处数字要对应上面查询到的版本号</div>
<div style="padding-left: 30px;">sudo apt-get install mesa-common-dev</div>
<div style="padding-left: 30px;">sudo reboot # 重启</div>
<div style="padding-left: 30px;"></div>
<div style="padding-left: 30px;"></div>
<div style="padding-left: 30px;">nvidia-smi</div>
<div></div>
<div></div>
<p>Clone 项目并安装相关依赖：</p>
<pre style="color: #1f2328;">conda create -n ootd python=3.10
conda activate ootd

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia

<span class="pl-c" style="color: var(--color-prettylights-syntax-comment);"># Install nvcc compiler for torch cpp extensions</span>
conda install cuda-nvcc -c nvidia

#  Clone ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI.git
<span class="pl-c" style="color: var(--color-prettylights-syntax-comment);"># Clone to custom_nodes</span>
git clone https://github.com/AuroBit/ComfyUI-OOTDiffusion.git custom_nodes/ComfyUI-OOTDiffusion

<span class="pl-c" style="color: var(--color-prettylights-syntax-comment);"># Install dependencies</span>
pip install -r custom_nodes/ComfyUI-OOTDiffusion/requirements.txt</pre>
<p>如果想外网访问，在启动的时候带上 &#8211;listen，如： python main.py &#8211;listen 0.0.0.0</p>
]]></content:encoded>
			<wfw:commentRss>https://www.phppan.com/2024/06/aws-ec2-comfyui-ootdiffusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
