[DreamBooth] Set train mode for text encoder (#1012)
Set train mode for text encoder
This commit is contained in:
parent
abe058221c
commit
4623f095f3
|
@ -574,6 +574,8 @@ def main(args):
|
|||
|
||||
for epoch in range(args.num_train_epochs):
|
||||
unet.train()
|
||||
if args.train_text_encoder:
|
||||
text_encoder.train()
|
||||
for step, batch in enumerate(train_dataloader):
|
||||
with accelerator.accumulate(unet):
|
||||
# Convert images to latent space
|
||||
|
|
Loading…
Reference in New Issue