Update flux_train_utils.py

This commit is contained in:
sdbds
2024-09-05 14:57:55 +08:00
parent 9af36fabe7
commit 2f2473c432

View File

@@ -414,8 +414,8 @@ def get_noisy_model_input_and_timesteps(
timesteps = logits_norm.sigmoid()
x1, x2 = args.min_bucket_reso or min(args.resolution), args.max_bucket_reso or max(args.resolution)
mu = get_lin_function(
y1=x1 / 256 * get_lin_function(x1),
y2=4096 / x2 * get_lin_function(x2),
y1=get_lin_function(x1),
y2=get_lin_function(x2),
)((h // 2) * (w // 2))
timesteps = time_shift(mu, 1.0, timesteps)