Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 7e8c92e

Browse files
Fix offset noise and rescale vars
1 parent e8cd8db commit 7e8c92e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

train.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,8 @@ def main(
780780
progress_bar.set_description("Steps")
781781

782782
def finetune_unet(batch, train_encoder=False):
783+
nonlocal use_offset_noise
784+
nonlocal rescale_schedule
783785

784786
# Check if we are training the text encoder
785787
text_trainable = (train_text_encoder or use_text_lora)

0 commit comments

Comments
 (0)