Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
docs(flux): state the conditions the schedule step counts were measured under
Alexander Eichhornb74d82921813
diff --git a/invokeai/backend/flux/sampling_utils.py b/invokeai/backend/flux/sampling_utils.pyindex f0b8e2f1ee..b8f01ead66 100644--- a/invokeai/backend/flux/sampling_utils.py+++ b/invokeai/backend/flux/sampling_utils.py@@ -66,8 +66,10 @@ def get_schedule(# schedule flattens with it -- the smallest non-zero timestep rises to 0.47, 0.97 and# 0.9997. `clip_timestep_schedule_fractional` then has almost nothing left below# `1 - denoising_start`. Steps surviving a 30-step request at `denoising_start=0.5`:- # 8 at 1 MP, 6 at 1.6 MP, 4 at 2.4 MP, 2 at 4.2 MP, and from ~3376px square every- # `denoising_start` a user can set leaves exactly one.+ # 8 at 1 MP, 6 at 1.6 MP, 4 at 2.4 MP, 2 at 4.2 MP, and one from ~2112px square. From+ # ~3376px square any `denoising_start` of 0.01 or more leaves one; only a full denoise from 0+ # escapes the clip. Asking for more steps barely helps: at 2048px and 0.499, 100 keep 4 and+ # 1000 keep 39.## The effect is graded, not a cliff: between 1 MP and ~1.6 MP the unclamped schedule is not# degenerate, and holding mu there is a judgement -- never evaluate the fit outside thediff --git a/tests/backend/flux/test_sampling_utils.py b/tests/backend/flux/test_sampling_utils.pyindex 34ba29b9f7..30f38c4dd2 100644--- a/tests/backend/flux/test_sampling_utils.py+++ b/tests/backend/flux/test_sampling_utils.py@@ -149,13 +149,13 @@ def test_the_fit_is_still_live_below_its_upper_point():[(MU_FIT_MAX_SEQ_LEN, "1024px: the anchor, a control -- unchanged by the clamp either way"),(16384, "2048px: 2 of 30 steps survived before the clamp"),- (36864, "3072px: 1 of 30 survived, whatever the user asked for"),+ (36864, "3072px: 1 of 30 survived before the clamp"),],)def test_the_clipped_schedule_keeps_the_same_steps_at_every_frame_size(image_seq_len: int, why: str):- """An extrapolated shift pushed the schedule above the `denoising_start` line, so the clip was- left with one or two steps no matter how many were requested -- an img2img or upscale pass that- silently did almost nothing.+ """An extrapolated shift pushed the schedule above the `denoising_start` line, so the clip left one+ or two of the 30 steps asked for here -- an img2img or upscale pass that silently did almost nothing.+ Asking for more barely helped: at 2048px, 100 steps kept 4 and 1000 kept 39.0.499 is not arbitrary: it is what the upscale widget's creativity slider sends at its middleposition, ((0 * -1 + 10) * 4.99) / 100 (`features/upscale/core/graph.ts`).