mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-17 17:24:21 +00:00
fix cache text encoder outputs if not using disk. small cleanup/alignment
This commit is contained in:
@@ -1282,7 +1282,6 @@ class NetworkTrainer:
|
||||
# For --sample_at_first
|
||||
optimizer_eval_fn()
|
||||
self.sample_images(accelerator, args, 0, global_step, accelerator.device, vae, tokenizers, text_encoder, unet)
|
||||
progress_bar.unpause() # Reset progress bar to before sampling images
|
||||
optimizer_train_fn()
|
||||
is_tracking = len(accelerator.trackers) > 0
|
||||
if is_tracking:
|
||||
|
||||
Reference in New Issue
Block a user