Fix to work DOP with bock swap

This commit is contained in:
Kohya S
2024-11-17 16:12:10 +09:00
parent 0047bb1fc3
commit 2a188f07e6

View File

@@ -445,6 +445,7 @@ class FluxNetworkTrainer(train_network.NetworkTrainer):
if len(diff_output_pr_indices) > 0:
network.set_multiplier(0.0)
unet.prepare_block_swap_before_forward()
with torch.no_grad():
model_pred_prior = call_dit(
img=packed_noisy_model_input[diff_output_pr_indices],