From a1c0818a081bab8aace84c0ee7ecbcf27bf2ea46 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 20 Jan 2023 17:13:32 -0500 Subject: [PATCH] ignore .DS_Store files when scanning Mac embeddings --- ldm/modules/textual_inversion_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ldm/modules/textual_inversion_manager.py b/ldm/modules/textual_inversion_manager.py index dcb77d6098..cf28cf8c7a 100644 --- a/ldm/modules/textual_inversion_manager.py +++ b/ldm/modules/textual_inversion_manager.py @@ -54,6 +54,8 @@ class TextualInversionManager(): return [ti.trigger_string for ti in self.textual_inversions] def load_textual_inversion(self, ckpt_path, defer_injecting_tokens: bool=False): + if str(ckpt_path).endswith('.DS_Store'): + return try: scan_result = scan_file_path(ckpt_path) if scan_result.infected_files == 1: