Skip to content

Commit 9d90c51

Browse files
committed
train()
1 parent 7d63a2a commit 9d90c51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/control-lora/train_control_lora_flux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,7 @@ def get_sigmas(timesteps, n_dim=4, dtype=torch.float32):
11391139

11401140
image_logs = None
11411141
for epoch in range(first_epoch, args.num_train_epochs):
1142+
flux_transformer.train()
11421143
for step, batch in enumerate(train_dataloader):
11431144
with accelerator.accumulate(flux_transformer):
11441145
# Convert images to latent space

0 commit comments

Comments
 (0)