You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for step, batch in enumerate(train_dataloader):
# TODO: how to handle context setting when unet is not training?
# https://stackoverflow.com/a/14029481
#train_all = train_unet and train_text_encoder
#with (accelerator.accumulate(unet), accelerator.accumulate(text_encoder)) if train_all else (accelerator.accumulate(unet) if train_unet else accelerator.accumulate(text_encoder))
with accelerator.accumulate(unet):
huggingface/accelerate#668
Do this manually?
The text was updated successfully, but these errors were encountered: