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:
@@ -995,6 +995,12 @@ class DoctorHandler:
|
||||
total_conflict_files = 0
|
||||
|
||||
for model_type, label, factory in self._scanner_factories:
|
||||
# Duplicate filename detection targets LoRAs which use basename-only
|
||||
# syntax (<lora:name:strength>). Checkpoints/embeddings reference
|
||||
# models via relative paths with extensions, so conflicts there would
|
||||
# be false positives.
|
||||
if model_type != "lora":
|
||||
continue
|
||||
try:
|
||||
scanner = await factory()
|
||||
hash_index = getattr(scanner, "_hash_index", None)
|
||||
|
||||
Reference in New Issue
Block a user