mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ignore .DS_Store files when scanning Mac embeddings
This commit is contained in:
parent
775e1a21c7
commit
a1c0818a08
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user