在 ComfyUI 中使用 FLUX 大模型让多次生成的人物一致的方法如下:
- 控制人物在多场景、多个姿势下的一致性有很多方法,课程后期会介绍。
- 对于多张图输出的显示问题,一次产出多张图在预览窗口目前不能并排显示。
- Lora 的刷新:将 Lora 丢到文件夹后,多点几次刷新即可,Web UI 中 Lora 库有刷新按钮。
另外,在 Midjourney 中,人物一致性已上线,其操作如下:
- DavidH 介绍:Hey @everyone @here we're testing a new "Character Reference" feature today This is similar to the "Style Reference" feature, except instead of matching a reference style it tries to make the character match a "Character Reference" image.
- 具体操作:Type --cref URL after your prompt with a URL to an image of a character. You can use --cw to modify reference 'strength' from 100 to 0. strength 100 (--cw 100) is default and uses the face, hair, and clothes. At strength 0 (--cw 0) it'll just focus on face (good for changing outfits / hair etc).
- 适用范围:This feature works best when using characters made from Midjourney images. It's not designed for real people / photos (and will likely distort them as regular image prompts do). Cref works similarly to regular image prompts except it 'focuses' on the character traits. The precision of this technique is limited, it won't copy exact dimples / freckles / or tshirt logos. Cref works for both Niji and normal MJ models and also can be combined with --sref Advanced Features. You can use more than one URL to blend the information / characters from multiple images like this --cref URL1 URL2 (this is similar to multiple image or style prompts).
- 网页端操作:How does it work on the web alpha? Drag or paste an image into the imagine bar, it now has three icons. Selecting these sets whether it is an image prompt, a style reference, or a character reference. Shift + select an option to use an image for multiple categories.
在 ComfyUI 中处理模型连接和提示词相关问题,如让两个模型同时起作用的操作:
- 加入一个新节点,右键点击 - 【新建节点】 - 【实用工具】 - 【Primitive 元节点】。
- 在文本节点上单击右键,选择【转换文本为输入】,此时文本节点上就多了一个文本的连接点。
- 将元节点与文本节点相连接,元节点就变成了正向提示词的输入框。同理,可以将负向提示词框也用元节点代替。
- 再复制出一套正负提示词节点,一套给 base 模型,一套给 refiner 模型。然后,base 模型的那一套输出给第一个采样器节点,refiner 模型的那一套输出给第二个采样器节点。