This commit is contained in:
smhc 2026-08-12 00:31:39 +08:00 committed by GitHub
commit dc7444f144
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -849,6 +849,8 @@ class BaseSDTrainProcess(BaseTrainProcess):
paths = [p for p in paths if '_t2i' not in p]
if '_cn' not in name:
paths = [p for p in paths if '_cn' not in p]
# Exclude sidecar metadata written by model managers (e.g. ComfyUI LoRA Manager)
paths = [p for p in paths if not p.endswith('.metadata.json')]
if len(paths) > 0:
latest_path = max(paths, key=os.path.getctime)