Flux Kontext 模型实在是太强了

思路

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

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

Kontext 预设尺寸列表

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

宽度 高度 宽高比 比例 (Width:Height)
672 1568 0.429 3:7
688 1504 0.457 43:94
720 1456 0.494 45:91
752 1392 0.540 47:87
800 1328 0.603 25:41
832 1248 0.667 16:23
880 1184 0.743 55:74
944 1104 0.855 59:69
1024 1024 1.000 1:1
1104 944 1.170 69:59
1184 880 1.345 74:55
1248 832 1.500 23:16
1328 800 1.660 41:25
1392 752 1.851 87:47
1456 720 2.022 91:45
1504 688 2.186 94:43
1568 672 2.333 7:3

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 对写实风格的优化方向,提升画面精细度与氛围感。

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

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

挂上加速模型:TeaChe

再挂上加速 Lora:4步出图

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

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

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

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

体验地址:

💡
欢迎分享文章,或是与我联系