小显存再次沸腾:6步出图的Flux(可NSFW)

部署运行你感兴趣的模型镜像

随着AI绘画转入Flux时代,小显存用户面临着抉择:换显卡还是继续停留在SD?

Flux的全量大模型要22G,量化版的也要16G以上才能跑的很好,像我12G显存只能勉强跑,效率非常低。

好像是是,很多创作者通过各种优化精简了Flux模型,基本实现了小显存可以跑起来,甚至可以跑得很快。

今天推荐一个6步就可以出图的Flux模型,同时支持涩涩(官方大模型无法涩涩):Flux1 - Dev NF4 6 steps NSFW & Hybrid FP8 4 steps NSFW。

作者在C站称:

Flux1-Hybrid:结合Dev的真实感、Schnell的速度和改进的提示遵循性

引言:

介绍您的新型扩散模型,突出其独特的真实感、速度和提示遵循性的结合。强调与Dev和Schnell等其他流行选项相比,使用此模型的好处。它非常适合计算资源有限但想要快速生成高质量图像的用户。

主要特点:

4步生成:与许多其他模型相比,以一小部分时间生产高质量图像。

增强的提示遵循性:准确捕捉提示的细微差别,从而产生更相关和创造性的输出。

照片级质量:实现与Dev相媲美的真实感,同时保持Schnell的多功能性。

CFG灵敏度:通过CFG尺度提供对图像生成的细粒度控制。

与其他模型的比较:

创建一个详细的比较表:

特性Flux1-HybridDevSchnell
提示遵循性优秀非常好
真实感非常高中等
多功能性
效率高(4步)中等
光照质量非常好优秀
细节非常高中等
艺术风格多样真实感艺术感

分析:

提示遵循性:我们的混合模型始终生成与提供的提示紧密对齐的图像,在这一点上超越了Dev。

真实感:虽然Dev在照片级真实感方面表现出色,我们的模型提供了一种更平衡的方法,结合了真实元素和艺术风格。

效率:4步生成过程使我们的模型比Dev快得多,而不会牺牲质量。

多功能性:我们的混合模型能够产生从照片级肖像到抽象艺术的广泛风格。

推理时间:Intel I5,32 RAM,Nvidia 3060 12Gb,45秒(相同设置,Dev,2分42秒)。在ComfyUI上使用SwarmUI进行测试。

注意事项:图像生成时间是在模型预加载的情况下测量的。从点击生成按钮到图像结束。模型首先制作一个初始图像,然后通过4步进行细化,这4步的时间远少于初始图像的生成时间。

如何使用:

推荐设置:随机种子,CFG=1(0.8-1.2)范围,采样器:欧拉,调度器:正常/简单,在示例中分辨率:5:8(768x1216)。

Clip、T5编码器和vae与Kijai Flux1-FP8结合使用。建议使用–lowvram界面标志将编码器的句柄传递给CPU。

限制:非扭曲图像的CFG范围较窄。真实图像受CFG影响,抽象和风景则不是,因此对于没有人物的图像,在暗图像中您可以提高CFG,在亮图像中您可以稍微降低CFG(0.6-1.4)。没有像Dev模型中的FluxGuidance。文本是一个需要解决的问题。


该模型默认欧美风格,为了更符合中国人的审美,以下示例我使用了墨幽的Lora,权重0.85,速度基本不受影响,3060 12G采用6步出图,极端情况下可以4步,几十秒即可,效率非常高。

1、黑夜给了我黑色的眼睛

提示词:

WALLPER,a medium-angle shot of an Asian woman with long black hair stands in front of a dark backdrop. She is dressed in a black strapless dress,adorned with a ruffled neckline. Her left arm is raised above her head,adding a touch of balance to the scene. The woman’s face is angled towards the right,her lips are slightly parted,as if she’s lips are pursed. Her eyes are closed,and her hair is cascading over her shoulders. The backdrop is a stark black,creating a stark contrast to the woman’s outfit.,

2、你的眼眸,深邃的像银河

提示词:

WALLPERa close-up shot of a young Asian woman with longwavy black hair is adorned with gold hoop earrings. She is dressed in a white dress adorned with a floral pattern. The backdrop is blurredcreating a stark contrast to the woman’s white dress. The sun is shining on the right side of the imageadding a touch of warmth to the scene.

3、闺房

提示词:

XS,masterpiece:1.2),best quality,high resolution,unity 8k wallpaper,(illustration:1),perfect lighting,extremely detailed CG,finely detail,extremely detailed,soft lighting and shadow,soft yet striking lighting,film grain:1.2,(skin pores:1.2),(detailed skin texture:1),((solo:1.5)),Detailed face,(see-through:1.1),misty,Low Key:1.1,depth of field,A young woman with dark hair and a floral top,sitting on what appears to be an armchair or sofa in her home.,

4、傍晚的街头

提示词:

GFSM,XS,masterpiece:1.2),best quality,high resolution,unity 8k wallpaper,(illustration:1),perfect lighting,extremely detailed CG,finely detail,extremely detailed,soft lighting and shadow,soft yet striking lighting,film grain:1.2,(skin pores:1.2),(detailed skin texture:1),((solo:1.5)),Detailed face,(see-through:1.1),misty,Low Key:1.1,depth of field,A woman in a black coat stands confidently amidst an urban backdrop,her gaze directed off to one side.,

5、浴缸

提示词:

XS,masterpiece:1.2),best quality,high resolution,unity 8k wallpaper,(illustration:1),perfect lighting,extremely detailed CG,finely detail,extremely detailed,soft lighting and shadow,soft yet striking lighting,film grain:1.2,(skin pores:1.2),(detailed skin texture:1),((solo:1.5)),Detailed face,(see-through:1.1),misty,Low Key:1.1,depth of field,A woman in a white dress lounging with her head on one hand and legs crossed,surrounded by rose petals inside an empty bathtub.,

6、仙气

提示词:

XSmasterpiece:1.2),best quality,high resolution,unity 8k wallpaper,(illustration:1),perfect lighting,extremely detailed CG,finely detail,extremely detailed,soft lighting and shadow,soft yet striking lighting,film grain:1.2,(skin pores:1.2),(detailed skin texture:1),((solo:1.5)),Detailed face,(see-through:1.1),misty,Low Key:1.1,depth of field,Elegance and Mystique: A Smoke Ring Emanates from a Woman’s Mouth in an Artistic Portrait.

7、牛仔短裤

提示词:

XS,masterpiece:1.2),best quality,high resolution,unity 8k wallpaper,(illustration:1),perfect lighting,extremely detailed CG,finely detail,extremely detailed,soft lighting and shadow,soft yet striking lighting,film grain:1.2,(skin pores:1.2),(detailed skin texture:1),((solo:1.5)),Detailed face,(see-through:1.1),misty,Low Key:1.1,depth of field,A woman posing on a bed with her back to us,showcasing an off-the shoulder top and denim shorts.,

8、你蒙住了我的眼睛,说要给我幸福

提示词:

WALLPER,a medium-angle view of a woman’s face,adorned with a white mask. The woman’s head is encased in a veil,her hair cascades over her shoulders,adding a touch of beauty to the scene. Her eyes are closed,and her lips are painted a pinkish-pink shade. She is wearing a pair of gold earrings,and a black dress with a floral pattern on it. The backdrop is a soft,light blue,creating a stark contrast to the woman’s white dress.,

9、你坐在月亮上,唱一首曾经的歌

提示词:

WALLPER,((best quality)), ((masterpiece)),A girl in Hanfu sitting on a crescent moon, wearing silk stockings and barefoot, surrounded by dreamy planets, viewed from the feet upwards, creating a mysterious and romantic atmosphere, high-quality image, high-resolution picture.

10、紫色长发

提示词:

WALLPER,a medium-angle shot of a young Asian girl with long vibrant purple hair stands in front of a light blue backdrop. Her eyes are a deep blue and her lips are a vibrant pink. Her hair is cascading down her right shoulder framing her face. She is wearing a light pink hoodie adorned with a silver chain around her neck adding a pop of color to her outfit. The backdrop is a stark light blue creating a stark contrast to the girl’s purple hair.,

说明:这是6步快速模型,可以在8G甚至6G小显存上跑,追求速度的同时,必然会损失画质,只是在速度和画质之间,需要找一个平衡点。

我建议的玩法是先用该模型画出满意的作品,然后再用放大模型进行放大,从而实现细节的完美。

为了帮助大家更好地掌握 ComfyUI,我在去年花了几个月的时间,撰写并录制了一套ComfyUI的基础教程,共六篇。这套教程详细介绍了选择ComfyUI的理由、其优缺点、下载安装方法、模型与插件的安装、工作流节点和底层逻辑详解、遮罩修改重绘/Inpenting模块以及SDXL工作流手把手搭建。

由于篇幅原因,本文精选几个章节,详细版点击下方卡片免费领取
在这里插入图片描述

一、ComfyUI配置指南

  • 报错指南
  • 环境配置
  • 脚本更新
  • 后记

img

二、ComfyUI基础入门

  • 软件安装篇
  • 插件安装篇

img

三、 ComfyUI工作流节点/底层逻辑详解

  • ComfyUI 基础概念理解
  • Stable diffusion 工作原理
  • 工作流底层逻辑
  • 必备插件补全

img

四、ComfyUI节点技巧进阶/多模型串联

  • 节点进阶详解
  • 提词技巧精通
  • 多模型节点串联

img

五、ComfyUI遮罩修改重绘/Inpenting模块详解

  • 图像分辨率
  • 姿势

img

六、ComfyUI超实用SDXL工作流手把手搭建

  • Refined模型
  • SDXL风格化提示词
  • SDXL工作流搭建

img

由于篇幅原因,本文精选几个章节,详细版点击下方卡片免费领取

在这里插入图片描述

img

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

关于Flux技术及其应用环境中处理成人内容或非安全工作环境的内容过滤机制,在IT上下文中,通常会涉及到多个层面的安全措施和技术手段来确保系统的安全性以及合法合规性。 对于任何基于Flux架构的应用程序来说,实现NSFW(Not Safe For Work)内容过滤主要依赖于以下几个方面: 1. **数据源控制**:严格筛选输入到系统中的原始素材,通过人工审核或者自动化工具预先移除可能存在问题的数据项。这一步骤可以有效减少后续处理过程中遇到敏感内容的概率[^2]。 2. **模型训练优化**:如果应用程序涉及机器学习算法,则可以在训练阶段加入特定标签用于识别并排除不适当像或文本片段。例如,在构建稳定扩散模型时就应当考虑如何让其具备区分正常与异常样本的能力[^3]。 3. **实时监测与反馈调整**:部署在线服务之后还需要持续监控实际运行状况,并根据用户举报或其他渠道获取的信息及时更新黑名单库、改进检测策略等。一些先进的解决方案可能会采用多级审查制度以提高准确性[^4]。 4. **法律遵从性和伦理考量**:除了上述技术性防护外,企业也应遵循当地法律法规的要求,制定相应的内部政策指导员工行为;同时积极倡导负责任的技术开发理念,避免造成不良社会影响。 ```python def filter_nsfw_content(data_stream): """模拟一个简单的 NSFW 过滤函数""" filtered_data = [] # 假设这里有一个预定义好的关键词列表用来匹配潜在违规内容 banned_keywords = ["adult", "explicit"] for item in data_stream: if not any(word in item.lower() for word in banned_keywords): filtered_data.append(item) return filtered_data # 使用示例 safe_items = filter_nsfw_content(["normal text", "Adult themed message"]) print(safe_items) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值