mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-09 20:39:25 -03:00
fix(doctor): exclude checkpoints/embeddings from duplicate filename detection (#934)
Duplicate filename detection is only relevant for LoRAs, which use basename-only syntax (<lora:name:strength>). Checkpoints and diffusion models reference files via relative paths with extensions, so filename conflicts there are false positives — there is no resolution ambiguity. Both _log_duplicate_filename_summary() and DoctorHandler's _check_filename_conflicts() now skip scanners with model_type != 'lora'.
This commit is contained in:
@@ -1101,7 +1101,10 @@ class ModelScanner:
|
||||
|
||||
def _log_duplicate_filename_summary(self) -> None:
|
||||
"""Log a batched summary of duplicate filename conflicts once per scan."""
|
||||
if self._hash_index is None:
|
||||
# Duplicate filename detection is only relevant for LoRAs, which use
|
||||
# basename-only syntax (<lora:name:strength>). Checkpoints and embeddings
|
||||
# use full relative paths for resolution, so conflicts are not ambiguous.
|
||||
if self._hash_index is None or self.model_type != "lora":
|
||||
return
|
||||
|
||||
duplicates = self._hash_index.get_duplicate_filenames()
|
||||
|
||||
Reference in New Issue
Block a user