<?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>FLUX &#8211; 0260</title>
	<atom:link href="https://0to60.top/tag/flux/feed/" rel="self" type="application/rss+xml" />
	<link>https://0to60.top</link>
	<description>Zero To More</description>
	<lastBuildDate>Wed, 17 Sep 2025 07:55:00 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://0to60.top/wp-content/uploads/2025/05/cropped-ba4ded44ed2ce0995e556ab476fd11d2-1-150x150.jpg</url>
	<title>FLUX &#8211; 0260</title>
	<link>https://0to60.top</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ComfyUI，Flux入门总结篇</title>
		<link>https://0to60.top/comfyui%ef%bc%8cflux%e5%85%a5%e9%97%a8%e6%80%bb%e7%bb%93%e7%af%87/</link>
					<comments>https://0to60.top/comfyui%ef%bc%8cflux%e5%85%a5%e9%97%a8%e6%80%bb%e7%bb%93%e7%af%87/#respond</comments>
		
		<dc:creator><![CDATA[burson]]></dc:creator>
		<pubDate>Sun, 14 Sep 2025 03:46:59 +0000</pubDate>
				<category><![CDATA[ComfyUI-SD]]></category>
		<category><![CDATA[ComfyUI]]></category>
		<category><![CDATA[FLUX]]></category>
		<guid isPermaLink="false">https://0to60.top/?p=940</guid>

					<description><![CDATA[<p>引言 本篇文章的阅读前置条件(必须)&#46;&#46;&#46;</p>
<p><a rel="nofollow" href="https://0to60.top/comfyui%ef%bc%8cflux%e5%85%a5%e9%97%a8%e6%80%bb%e7%bb%93%e7%af%87/">ComfyUI，Flux入门总结篇</a>最先出现在<a rel="nofollow" href="https://0to60.top">0260</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">引言</h2>



<p>本篇文章的阅读前置条件(必须)：</p>



<ul class="wp-block-list">
<li>需阅读<a href="https://0to60.top/2025/07/09/comfyui%ef%bc%8csd1-5-xl%e5%9f%ba%e7%a1%80%e6%80%bb%e7%bb%93%e7%af%87/" data-type="post" data-id="931">《ComfyUI，SD基础总结篇》</a></li>
</ul>



<p>介绍内容包含：</p>



<ul class="wp-block-list">
<li>核心概念的理解</li>



<li>基本工作流及主要控制模块总结</li>
</ul>



<p>在<a href="https://0to60.top/2025/07/09/comfyui%ef%bc%8csd1-5-xl%e5%9f%ba%e7%a1%80%e6%80%bb%e7%bb%93%e7%af%87/" data-type="post" data-id="931">《ComfyUI，SD基础总结篇》</a>中，我们已经了解了 Stable Diffusion 1.5 和 SDXL。它们就像拥有精湛技艺的<strong>“雕塑家”</strong>，从“混沌石料”中一步步雕刻出令人惊叹的作品，代表着当前主流的 AI 图像生成技术。</p>



<p></p>



<p>现在，是时候揭开 AI 绘画领域另一条前沿技术路径的面纱了——介绍 Flux。Flux 不再是 SDXL 的简单升级，它代表了图像生成方式上的一种架构创新，为 AI 绘画带来了新的可能性。它并非要取代 SDXL，而是提供了一个不同的、有潜力的技术方向。</p>



<h2 class="wp-block-heading">一、Flux核心理解</h2>



<p>虽然在底层技术原理上，会有较大的区别。但在应用层的理解上，我们仍然可以使用SD15/XL的理解<a href="https://0to60.top/2025/07/09/comfyui%ef%bc%8csd1-5-xl%e5%9f%ba%e7%a1%80%e6%80%bb%e7%bb%93%e7%af%87/" data-type="post" data-id="931" target="_blank" rel="noreferrer noopener nofollow">《ComfyUI，SD基础总结篇》</a>，一句话：</p>



<p><strong><strong><strong>独具特色的雕塑家拿着原始石料在设计需求说明书的指引下按某种雕塑策略进行雕塑创作</strong></strong></strong>，同样的，也有以下核心概念。</p>



<ul class="wp-block-list">
<li><strong>雕塑家：</strong>Diffusion Model，每个雕塑家都有自己的特色，如：Flux1-dev，Flux1-fill-dev，Flux1-cany/depth-dev，Flux1-kontext等。</li>



<li><strong>原始石料：</strong>latent image，潜空间图像，SD1.5&amp;SDXL&amp;FLUX都是在潜空间进行图像生成的，至于为什么需要在潜空间中进行，最大原因是能极大的压缩空间，使得寻常硬件得以计算。总之，可以将其理解为创作所需的原始石料，以下如何获取原始石料的方式：
<ul class="wp-block-list">
<li>直接提供latent image，设定长宽。</li>



<li>将原始空间图像(寻常人眼感知的图片)通过VAE Encode的方式转换成潜空间图像。</li>
</ul>
</li>



<li><strong>作品去色/上色器</strong>：VAE Encode/Decode，将原始空间图像(人眼寻常感知的图片)转变成潜空间图像，这个过程也称为编码Encode，好比对雕塑成品进行去色，从而得到石料本体；同时也支持从潜空间图像转换成原始空间图像，这个过程称为Decode，好比对雕塑完毕的石料本体进行上色。这个去色和上色规则记录在VAE model中，即需要加载这个模型。</li>



<li><strong>设计需求说明书</strong>：Text Embedding(pos + neg)，用于指导雕塑家进行雕刻，雕塑家每次雕刻都需参照设计需求说明书。如何获得需求设计说明书：
<ul class="wp-block-list">
<li>通过一个转换器Text Embedding Encode将自然语言(人类语言，通常是英文)转换成雕塑家能理解的设计需求说明书，转换规则被记录在CLIP model中，即需要加载这个模型。</li>
</ul>
</li>



<li><strong>雕塑策略</strong>：调度器(scheduler)、去噪步数(steps)，采样器(sampler)。其好比雕刻策略，先制定整个雕刻计划(“路线图”)，决定了在整个生成过程需要去除的石料应该如何逐渐减少；再定义执行步骤数量，越多，耗费时间越长，就越细致；最后，基于路线图，在每一步中具体执行雕刻动作，计算并将多余的石料进行雕刻去除。</li>
</ul>



<h2 class="wp-block-heading">二、核心组件/概念理解</h2>



<p>主要介绍与SD15/XL有区别的一些组件和概念</p>



<ul class="wp-block-list">
<li><strong>DualCLIPLoader：</strong>和在SD15及XL中一样，Flux依然需要一个CLIP模型将自然语言转换成设计需求说明书，只是这里需要指定两个模型：CLIP_I和CLIP_T5。其设计思路与SDXL基本一致。</li>



<li><strong>LoadVae：</strong>与SD15和XL不一样的是，Flux在使用上会单独指定配套的VAE模型，一般名称叫ae.sft或者ae.safetensors.</li>



<li><strong>FluxGuidance：</strong>此处与SD15和XL有较大区别，对标其CFG。
<ul class="wp-block-list">
<li>Flux将引导条件融合到一起，不再区分positive和negative。（若使用ksampler，negative可接空条件）</li>



<li>在flux的实际使用中，不再使用cfg参数，取代而代之的是guidance参数，表示条件引导的程度。（若依然使用ksampler，将其设置为1，否则会产生糊图。）</li>



<li>guidance的参数值，在Flux1-dev中，一般设置为3.5，在Fill+redux组合使用中，一般在[30-50]中选择。</li>
</ul>
</li>



<li><strong>Redux：</strong>Flux提供的配套风格模型，就实际使用效果来说，其实就是通过Clip vision encode提取参考图的细节信息，再通过apply style model(redux模型作为规则转换器)并将其补充到<strong>设计需求说明书</strong>中，值得注意的是，redux的引导强度相当强烈，若使用原生自带的节点，基本上很难和CN及其他控制模块共同作用与图像生成，建议使用redux adv节点(实测有效)。</li>
</ul>



<h2 class="wp-block-heading"><strong>三、Flux工作流</strong>总结</h2>



<p>在实践探索过程中，FLUX在思路上和SD15/XL并没有什么大的差别。先学习了基本文生图/图生图/重绘之后，再加入一些其他控制模块，主要包括：</p>



<ul class="wp-block-list">
<li>LoRa：有一些比较有意思的LoRa，包括消除LoRa，图像编辑LoRa</li>



<li>IP-Adapter：对雕塑家进行增强训练(风格内容参考）</li>



<li>PuLID：对嗲苏佳进行增加训练(脸部参考)</li>



<li>Controlnet：对需求设计说明书进行补充说明</li>



<li>Redux：对需求设计说明书进行补充说明</li>
</ul>



<p>这样就能得到FlUX工作流的各种变体。</p>



<p>本部分主要介绍内容：</p>



<ul class="wp-block-list">
<li>FLUX.1-DEV基本工作流</li>



<li>FLUX.1-FILL-DEV基本工作流</li>



<li>Redux模块&amp;其余控制模块，和SD15/XL其实并为太大区别</li>
</ul>



<p>FLUX.1-cany/depth模型并无太多应用场景，此处主要对FLUX特有的模块进行进行介绍，另外对FLUX.1-DEV和FLUX.1-FILL-DEV模型进行工基本作流总结。</p>



<h3 class="wp-block-heading">3.2 FLUX.1-DEV 工作流</h3>



<h4 class="wp-block-heading">3.2.1 基本文生图</h4>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-17-1024x576.png" alt="" class="wp-image-1058" srcset="https://0to60.top/wp-content/uploads/2025/09/image-17-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-17-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-17-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-17-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-17-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-17-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-17.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>和SD15/XL差别不大，主要区别在于：</p>



<ul class="wp-block-list">
<li>model/clip/vae的加载方式不一样：
<ul class="wp-block-list">
<li>model的加载节点是Load Diffusion Model</li>



<li>clip是dualcliploader，需要指定一个Clip_I和T5模型</li>



<li>vae也要单独指定与Flux配套的模型，ae.sft</li>
</ul>
</li>



<li>ksampler使用变化
<ul class="wp-block-list">
<li>中的cfg参数固定为1(该参数已经没啥用了)，设计需求说明书的遵循程度变为了另一个flux参数：guidance，越高，约束能力越强，反之越能发挥自由度。</li>



<li>由于Flux不再区分正负prompt，使用ksampler时，neg-prompt为空即可。</li>
</ul>
</li>
</ul>



<h4 class="wp-block-heading">3.2.2 基本图生图</h4>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-18-1024x576.png" alt="" class="wp-image-1060" srcset="https://0to60.top/wp-content/uploads/2025/09/image-18-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-18-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-18-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-18-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-18-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-18-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-18.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>没什么好说的，一般来说很少用到直接图生图的情况，目前就两种：</p>



<ul class="wp-block-list">
<li>放大图生图重绘增加细节</li>



<li>粗略的风格转绘</li>
</ul>



<h3 class="wp-block-heading">3.2 FLUX.1-FILL-DEV工作流</h3>



<h4 class="wp-block-heading">3.2.1 局部重绘（inpaint）</h4>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-23-1024x576.png" alt="" class="wp-image-1075" srcset="https://0to60.top/wp-content/uploads/2025/09/image-23-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-23-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-23-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-23-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-23-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-23-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-23.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>大方向和SD15/XL类型，在使用上有以下差异：</p>



<ul class="wp-block-list">
<li>重绘时，是用FILL模型</li>



<li>基本工作流中，FluxXGuidance参数一般设置为30，也可以尝试其他的。</li>



<li>FILL模型的所有工作流中，都建议加入一个节点Differential Diffusion，它的核心作用正是<strong>参照一个已有的图像，从而让新生成的内容在风格、色彩或氛围上与之保持协调一致</strong>。</li>
</ul>



<h4 class="wp-block-heading">3.2.2 扩展绘制（outpaint）</h4>



<p>所谓的扩展绘制其实和重绘区别不大，只是不图片原有区域进行绘制，增加新的区域进行内容补充。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-24-1024x576.png" alt="" class="wp-image-1076" srcset="https://0to60.top/wp-content/uploads/2025/09/image-24-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-24-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-24-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-24-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-24-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-24-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-24.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">3.3 FLUX其他控制模块</h3>



<h4 class="wp-block-heading"><strong>3.3.1 一些好玩的LoRa</strong></h4>



<ul class="wp-block-list">
<li>消除LoRa，结合FILL模型，可以很好的消除不需要的元素，也能起到修复效果。</li>



<li>加速LoRa，能让出图步数控制在8步甚至4步内。</li>



<li>编辑LoRa，结合FILL模型，能实现图像编辑效果。具体在此不再细说</li>
</ul>



<h4 class="wp-block-heading">3.3.2 FLUX.1-Redux-DEV 模块</h4>



<p>Redux是Flux中特有的一个模块，使用工作流图示如下：</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-19-1024x576.png" alt="" class="wp-image-1061" srcset="https://0to60.top/wp-content/uploads/2025/09/image-19-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-19-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-19-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-19-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-19-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-19-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-19.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>基于输入输出来看这个模块，其实就两个步骤：</p>



<ul class="wp-block-list">
<li>其实就是将图片信息抽取出来(CLIP Vision Encode)，CLIP Vision模型提供抽取规则。</li>



<li>再将抽取的信息通过一个转化器（Apply Style Model）增加到需求设计说明书中(Embedding)，Redux模型提供转换规则。</li>
</ul>



<p>就实践而言，Redux对整体的色彩风格、内容、结构都提取得比较到位，但是在一些细节特征上表现不太好(如脸部特征)。</p>



<h4 class="wp-block-heading">3.3.3 Flux IPAdapter模块</h4>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-20-1024x576.png" alt="" class="wp-image-1072" srcset="https://0to60.top/wp-content/uploads/2025/09/image-20-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-20-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-20-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-20-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-20-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-20-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-20.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>使用上，和SD15/XL区别不大，需使用xlabs团队提供的x-flux-comfyui插件</p>



<p>基于输入输出来看这个模块，</p>



<ul class="wp-block-list">
<li>其实就是先基于CLIP Vision模型的规则将图片信息抽取出，在通过FLUX Adapter模型对雕塑家(diffusion model)进行训练。</li>
</ul>



<h4 class="wp-block-heading">3.3.4 PuLID模块</h4>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-21-1024x576.png" alt="" class="wp-image-1073" srcset="https://0to60.top/wp-content/uploads/2025/09/image-21-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-21-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-21-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-21-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-21-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-21-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-21.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>对标FaceID，SDXL中也可使用。<br>使用FLUX版本需要结合PuLID-Flux-Enhanced插件使用。</p>



<p>用于提取脸部信息，并让雕塑家(diffusion model)增强训练学习.</p>



<h4 class="wp-block-heading">3.3.5 Controlnet</h4>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://0to60.top/wp-content/uploads/2025/09/image-25-1024x576.png" alt="" class="wp-image-1077" srcset="https://0to60.top/wp-content/uploads/2025/09/image-25-1024x576.png 1024w, https://0to60.top/wp-content/uploads/2025/09/image-25-300x169.png 300w, https://0to60.top/wp-content/uploads/2025/09/image-25-768x432.png 768w, https://0to60.top/wp-content/uploads/2025/09/image-25-1536x864.png 1536w, https://0to60.top/wp-content/uploads/2025/09/image-25-520x293.png 520w, https://0to60.top/wp-content/uploads/2025/09/image-25-700x394.png 700w, https://0to60.top/wp-content/uploads/2025/09/image-25.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>没什么好说的，为设计需求说明书增加额外条件信息。</p>



<h2 class="wp-block-heading">三、最后</h2>



<p>Flux的的变体工作流基本上就是基本工作流+控制模块的灵性组合，后续有机会可能出视频或者直播进行细致讲解，敬请期待。</p>
<p><a rel="nofollow" href="https://0to60.top/comfyui%ef%bc%8cflux%e5%85%a5%e9%97%a8%e6%80%bb%e7%bb%93%e7%af%87/">ComfyUI，Flux入门总结篇</a>最先出现在<a rel="nofollow" href="https://0to60.top">0260</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://0to60.top/comfyui%ef%bc%8cflux%e5%85%a5%e9%97%a8%e6%80%bb%e7%bb%93%e7%af%87/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
