From bd95cac5fc8cef96890d01a33f5fb25093ea8a28 Mon Sep 17 00:00:00 2001 From: Inoland Date: Tue, 22 Jul 2025 19:13:39 +0400 Subject: [PATCH] Update node_utils.py --- src/comfyui_ino_nodes/node_utils.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/comfyui_ino_nodes/node_utils.py b/src/comfyui_ino_nodes/node_utils.py index d6f03ab..5e0f571 100644 --- a/src/comfyui_ino_nodes/node_utils.py +++ b/src/comfyui_ino_nodes/node_utils.py @@ -800,14 +800,11 @@ class InoCalculateLoraConfig: return 0, 0, 0, 0, 0 batch_size = min(max_batch_size, max(1, dataset_count // 10)) - grad_accum = max(1, 24 // batch_size) + grad_accum = max(1, 12 // batch_size) - steps = int(dataset_count * 60 ) + steps = int(dataset_count * 35 ) - if steps > 3500: - ema = True - else: - ema = False + ema = False dim = 32 alpha = dim // 2