[ComfyUI]Flux 出图背景太模糊?一招解决!

小伙伴们在使用 Flux 出图的时候,应该也遇到过大多数情况下背景都是比较模糊的,虽然大多数时候没啥影响,毕竟我们很多时候都只是看主体嘛。

但是也有些场景,我们希望整体的构图中背景也可以高清一些,这样在看整张图片的时候也舒服一些。

今天我们要分享的这个背景防模糊 Lora 就可以帮我们解决这个问题。

好了,话不多说,我们直接开整。


模型名称:FLUX.1-dev-LoRA-AntiBlur,可以直接在 Hugging Face 上搜索到。模型以及用到的工作流听雨也会放在文末的网盘里,需要的小伙伴自取。

我们接下来要使用的工具是 ComfyUI,对 ComfyUI 不了解的小伙伴可以看公众号置顶的两篇文章。

好了,我们直接来看效果吧。

提示词:A captivating photograph showcases a girl playing a guitar amidst an epic sea of flowers, with the same lush flora stretching out as a vibrant backdrop. The image is rendered in stunning cinematic detail and resolution (4K), exuding a sense of grandeur that echoes both vintage and modern sensibilities. The photograph was shot on Kodak film stock to achieve a highly detailed, grainy aesthetic reminiscent of classic cinema and found footage. A vignette effect adds depth and moodiness to the image, while elements like visible imperfections and stains contribute to its authenticity and vintage charm. Inspired by both HBO's cinematic style and Lomography techniques, this photograph evokes a darker, more emotive atmosphere that transports viewers into

左边是 Flux 直出的图片,可以看到背景很模糊的,右边是加了 Lora 的效果,效果还是很不错的,这个背景就像样多了。

提示词:In an elegant and charming digital painting inspired by Joaquin Sorolla's Impressionist style, we find ourselves standing at the peak of a snow capped mountain. The theme is a powerful female warrior who proudly stands against a stunning landscape backdrop with unwavering determination. This striking portrait features a selfie angle that highlights her strength and elegance. She is dressed in armor adorned with exquisite details such as gold threads and precious g

这里左边 Flux 直出的图虽然背景不是很模糊,但是右边这里使用了 Lora 以后,可以看到背景更高清了,这背景有点抢镜啊,让听雨忍不住多看了两眼。

提示词:A striking, high-definition photograph captures a young and fashionable girl sitting on a bench, her cool demeanor evident as she dons headphones. The scene unfolds in the heart of a bustling metropolis during the enchanting night hours, with towering buildings casting long shadows and shimmering city lights reflecting off rain-soaked streets. The girl's silhouette is framed against this dazzling urban landscape, creating an intriguing contrast between her youthful energy and the dark, moody atmosphere of the cityscape behind her.

The photograph was shot using a 50mm lens on Kodak film stock, delivering an epic level of detail that highlights both the girl's stylish attire and the rich textures of the city environment.

效果还是很不错的,如果觉得模型权重 1 效果不好的话,可以调大权重试试。

效果就演示到这里了,这个 Lora 不需要触发词直接用就行,效果不好记得调整模型权重哦!

工作流就是基础的 Flux Lora 工作流,工作流听雨也会放在网盘里。

对背景有要求的小伙伴可以试试这款 Lora 哦,效果还是很不错滴!

好了,今天的分享就到这里了,感兴趣的小伙伴快去试试吧!

网盘链接:模型以及工作流分享

### ComfyUI Flux 组合概述 ComfyUI Flux 是一种基于黑森林实验室(Black Forest Labs)开发的 FLUX.1 模型与 ComfyUI 平台相结合的技术解决方案。该组合旨在为用户提供强大的像生成能力和高效的处理流程。 #### 版本说明 FLUX.1 提供三个不同版本: - **FLUX.1-pro**:最高级别的性能表现,支持最先进像生成功能以及顶级提示词解析能力。此版本仅通过官方 API 访问并提供企业级定制服务[^4]。 - **FLUX.1-dev**:从 FLUX.1-pro 中提取而来的开源版,具备相似质量和效率特性,适用于研究和技术探索场景。需要注意的是,尽管其功能强大,但不允许用于商业用途。 - **FLUX.1-schnell**:针对本地开发和个人应用优化过的快速运行模式,在 Apache 2.0 协议下开放源码发布。相比其他两个版本而言,它拥有更快的速度和更低资源消耗特点。 对于大多数个人开发者来说,推荐使用 FLUX.1-dev 或者 FLUX.1-schnell 进行实验和发展工作。 ### 安装配置指南 为了安装和配置 ComfyUIFLUX.1 的集成环境,请按照如下操作执行: 下载所需文件: ```bash wget http://file.s3/damodel-openfile/FLUX.1/FLUX.1-dev.tar tar -xf FLUX.1-dev.tar -C /path/to/ComfyUI/models/ ``` 确保将解压后的 `flux1-dev.safetensors` 文件放置于指定路径 `/path/to/ComfyUI/models/unet/` 下以便后续调用[^2]。 另外还需要获取额外的支持库来增强系统的兼容性和扩展性,比如 bitsandbytes 插件可以这样获得: ```bash git clone https://github.com/comfyanonymous/ComfyUI_bitsandbytes_NF4.git cd ComfyUI_bitsandbytes_NF4 pip install . ``` 完成上述步骤之后就可以启动应用程序了。 ### 使用实例展示 下面给一段简单的 Python 脚本来演示如何利用 ComfyUI 结合 FLUX.1 实现基本的任务处理逻辑: ```python from comfyui import load_model, generate_image model_path = "/path/to/ComfyUI/models/unet/flux1-dev.safetensors" loaded_model = load_model(model_path) prompt_text = "A beautiful sunset over mountains." generated_img = generate_image(loaded_model, prompt=prompt_text) ``` 这段代码展示了加载预训练好的 FLUX.1 模型并通过给定的文字描述 (`prompt`) 来创建一张新的片的过程。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值