Unverified Commit 724a6371 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

Merge pull request #8878 from butaixianran/master

Fix None type error for TI module
parents 89ea746f 803d44c4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -152,7 +152,11 @@ class EmbeddingDatabase:
                name = data.get('name', name)
            else:
                data = extract_image_data_embed(embed_image)
                if data:
                    name = data.get('name', name)
                else:
                    # if data is None, means this is not an embeding, just a preview image
                    return
        elif ext in ['.BIN', '.PT']:
            data = torch.load(path, map_location="cpu")
        elif ext in ['.SAFETENSORS']: