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
4b8aebabfb
commit
c3aa3d48a0
@ -50,6 +50,8 @@ class TextualInversionManager():
|
|||||||
return [ti.trigger_string for ti in self.textual_inversions]
|
return [ti.trigger_string for ti in self.textual_inversions]
|
||||||
|
|
||||||
def load_textual_inversion(self, ckpt_path, defer_injecting_tokens: bool=False):
|
def load_textual_inversion(self, ckpt_path, defer_injecting_tokens: bool=False):
|
||||||
|
if str(ckpt_path).endswith('.DS_Store'):
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
scan_result = scan_file_path(ckpt_path)
|
scan_result = scan_file_path(ckpt_path)
|
||||||
if scan_result.infected_files == 1:
|
if scan_result.infected_files == 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user