mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-17 17:24:21 +00:00
use network
This commit is contained in:
@@ -1494,7 +1494,7 @@ class NetworkTrainer:
|
||||
mean_combined_norm,
|
||||
)
|
||||
if args.gradient_noise_scale and hasattr(network, "gradient_noise_scale"):
|
||||
logs = {**logs, "grad/noise_scale": self.gradient_noise_scale()}
|
||||
logs = {**logs, "grad/noise_scale": network.gradient_noise_scale()}
|
||||
self.step_logging(accelerator, logs, global_step, epoch + 1)
|
||||
|
||||
# VALIDATION PER STEP: global_step is already incremented
|
||||
|
||||
Reference in New Issue
Block a user