
使用 Flux 进行图像创作:详细提示完全指南
- Rifx.Online
- Generative AI , Computer Vision , Technology/Web
- 24 Jan, 2025
想了解如何使用人工智能和FLUX生成惊艳的图像吗?
Flux,这个创新的图像生成AI模型,使您能够精准地实现您的想法。在本文中,我想揭示一些关于创建提示的细节,以充分利用Flux的强大功能,并让您获得意想不到的结果。我希望我们能发现Flux与Stable Diffusion之间的关键差异,学习如何逐步构建提示,并掌握控制您创作中每个元素的策略。
Flux与Stable Diffusion:解码架构Flux和Stable Diffusion看似相似,但根本的架构差异对它们的工作方式及您与之互动的方式产生了显著影响。
虽然Stable Diffusion将模型、clip和VAE集成到一个节点中,但Flux采用模块化的方法,将它们分离成单独的节点。这种模块化的设计,类似于Flux的开发者版本。
在Stable Diffusion中,使用负提示可以从图像中移除不需要的元素。然而,Flux依赖于提示遵循性,这意味着生成的图像将忠实地反映所提供的描述,而无需指定您不想要的内容。
简而言之,使用Flux的关键在于以添加的方式思考。图像是逐步构建的,通过添加细节和通过描述的数量来指定每个元素的重要性。
第二部分:Flux中详细提示的力量:让您的想法变为现实
为了充分利用双CLIP系统,了解每个输入的具体作用至关重要。第一个是核心概念,提供您希望在图像中包含的主要元素的简明列表,另一个是详细蓝图,应该包含具体的指示、风格细节、光照条件和LLM应遵循的总体方向。这种分离将使您对最终结果有显著的控制力。Flux最显著的特点之一是其对提示的强烈遵循。这在很大程度上归功于使用了两个clip加载器:Clip L和T5XXL。Clip L负责解释文本与图像之间的关系。它分析提示中的单词如何与您想生成的图像相连接。另一方面,T5XXL被设计用于自然语言理解。它使Flux能够理解单词背后的含义和意图,类似于人类在听对话时的理解。提示越详细和具体,Flux生成与用户愿景匹配的图像的能力就越强。Flux不仅理解单个单词,还理解它们使用的上下文。
元素描述的详细程度决定了其在最终图像中的突出程度。想象一下详细描述一个“巨型鹦鹉”,包括它五彩斑斓的羽毛、锐利的目光和在树枝上的威严姿态。这个鹦鹉将成为图像的焦点,而描述较短的元素将处于次要位置。提示中元素的顺序也会影响图像的构图。通常,提到的第一个元素在构图中优先考虑,因此考虑您想突出的元素是重要的。
第三部分:在Flux中构建精妙提示:逐步方法Flux的关键在于制作详细而具体的提示,其中元素的描述量决定了其在最终图像中的突出程度。在Flux中,您逐步构建图像,添加细节并通过描述的数量来指定每个元素的重要性。
实际示例
CLIP 1 (Main Prompt): confidence, golden spiral, unfolding, journey, energy, momentum
CLIP 2 (LLM Guidance): Generate a dynamic and realistic photograph of a
golden spiral that's unfolding and twisting as if by sheer internal
energy alone. Make it be a flowing movement that shows both a starting
and an ending point. Capture an upward motion showing both the progress
of internal momentum, and the golden and intricate spiral with small details
and reflections to showcase inner richness. Showcase a feeling of growing
forcefulness through soft and luminous color elements with clear lines and
clear progress, that represent a personal journey into one self's personal
and powerful form of expression, showing energy and inner momentum.
Use glowing and dynamic gold tones.
CLIP 1 (Main Prompt): synesthetic, soundscape, harmonics, light, color, patterns
CLIP 2 (LLM Guidance): Generate a hyperrealistic photograph visualizing
sound waves as patterns of vibrant light and color interacting with a dark,
smooth reflective surface. Visualize these sounds with flowing forms of color
as light harmonics emerge from the invisible and become visual,
creating a truly synesthetic effect, focusing on capturing complex
patterns of light and textures. Use colors from the
visible spectrum to evoke emotions of the harmonies that are becoming visible.
CLIP 1 (Main Prompt): memory, palimpsest, time, layers, fragments, transparent
CLIP 2 (LLM Guidance): Create a layered, photorealistic illustration that
visualizes memory as a palimpsest, with different scenes from a person’s
life fading into one another, overlapping, and intertwining, forming an
entirely new concept, with partially transparent fragments of different
environments that interpenetrate each other to demonstrate their presence
in our mind. Use soft, glowing light to showcase the overlapping layers of images,
blending subtle colors together from different scenarios, while showcasing
that even in separation, all scenarios intertwine together. Capture fragments
of environments and human emotions, and integrate transparency to create a
unique visual output. It must have an otherworldly and surreal, yet also
realistic feeling.
清晰度和准确性的提示:
使用清晰、直接的语言。避免使用技术术语或模糊语言。具体描述。与其说“树”,不如说“古老的橡树,带有枝繁叶茂的树冠”。
请记住,创建“完美”图像可能需要多次尝试,因为您对FLUX的熟悉程度逐渐提高。
始终记住,创建一个出色的提示可能需要多次生成,因此请尝试迭代,并专注于进行小的更改和改进,直到获得所需的结果,并始终相信您的视觉感知。
小常见问题解答
- FLUX中的提示是如何工作的? 在FLUX中,您给元素提供的细节量决定了它在最终图像中的突出程度。FLUX理解单词之间的上下文和关系。您提示中的首个描述会优先于后面的描述。
- 我需要负面提示吗? 不需要,FLUX依赖于提示的遵循,因此您不必指定不想要的元素,您想要的描述将定义图像。
- 我应该如何排列FLUX提示中的元素? 您提到的第一个元素通常是优先级最高的,因此它将在生成的图像中首先出现。
- 我可以在FLUX中使用LoRAs吗? 可以,LoRAs可以在FLUX中添加。与Stable Diffusion相同的工作流程和工具适用。
请记住,您描述得越详细,FLUX就能越好地实现您的愿景。如果您想开始,我希望这篇文章和这个常见问题解答能帮助您入门。
祝您生成一些有趣的图像!