Skip to content

Flux Kontext 模型实在是太强了

youxiaohanpian
Published date:

Image

Image

Image

思路

第一张图:朋友捡到的小狗 → 直接写提示词让这只狗在海滩上玩耍 → 再将生成的图片一句话描述变成线稿

当然这个线稿不够理想,我做了全套的线稿有话提示词,可以概括和优化线条的显示效果,看看后面做成教程发出来吧。

Kontext 预设尺寸列表

以下是模型训练时使用的标准尺寸列表,节点会根据输入图像的宽高比选择最接近的尺寸:

宽度高度宽高比比例 (Width:Height)
67215680.4293:7
68815040.45743:94
72014560.49445:91
75213920.54047:87
80013280.60325:41
83212480.66716:23
88011840.74355:74
94411040.85559:69
102410241.0001:1
11049441.17069:59
11848801.34574:55
12488321.50023:16
13288001.66041:25
13927521.85187:47
14567202.02291:45
15046882.18694:43
15686722.3337:3

Image

Image

转毛玻璃效果的流程

Change this bee to (a frosted smooth glass prism style:1.05), with soft light refracting through its polygonal edges to create a layered translucent effect, on a black background.best quality


Change this bee to (a frosted smooth glass prism style:1.05), with soft light refracting through its polygonal edges to create a layered translucent effect, emphasizes the glass’s texture and light refraction details, diffused light, faint internal glow on a pure, matte black background.hyperrealistic rendering,cinematic lighting,high detail

Flux: 条件 3.5

采样:euller

simple CFG: 1

我用了双语言模型

关键词思路:

  1. 补充关键变量标注 :明确标注「[目标物体]」,避免 Flux 因 “object” 指代模糊生成无主体画面,需用户根据实际需求替换(如 “a coffee mug”“a geometric decor piece”);
  2. 强化光效细节 :新增 “diffused light”(漫射光)“subtle light gradients”(细微光梯度)“faint internal glow”(微弱内发光),贴合 Flux 对光影层次的渲染优势,让 “分层半透明效果” 更具象;
  3. 明确背景质感 :补充 “pure, matte black background”(纯净哑光黑背景),避免背景泛灰或反光,同时增加 “emphasizes the glass’s texture and light refraction details”(突出玻璃质感与折射细节),引导模型聚焦核心视觉;
  4. 补充模型适配词 :添加 “hyperrealistic rendering”(超写实渲染)“high detail”(高细节)“cinematic lighting”(电影级灯光),符合 Flux 对写实风格的优化方向,提升画面精细度与氛围感。 Image

太drama了,尝试了半天,发现有kontext 的lora可以下载,没有lora毛茸茸的玩偶基本上无法出来玻璃的,特别是拉布布这种造型复杂的,小熊勉强还可以:

https://modelscope.cn/collections/Kontext—tuxiangbianjishengtaimoxing-9b9a52368ab543

DiffSynth-Studio/FLUX.1-Kontext-dev-lora-blingbling

Image

关于加速

挂上加速模型:TeaChe

再挂上加速 Lora:4步出图

4090 1024→1568 扩图:25s → 12s

整体缩短了接近一半时间,相当可观的提速!

可输入指令  Transform into a glass sculpture.  将画面中的主体内容转换为晶莹的玻璃雕像。

可输入指令  Outpaint the image.  进行图像外扩。

体验地址:

https://www.runninghub.cn/post/1961470553272029186/?inviteCode=36f9bb5a

Previous
【战争科幻体育艺术】拳王格斗·燃泪天堂·缺失空间等读书笔记(26册合集)
Next
调研了所有市面上目前开源免费的抠图顶流模型