mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
add webp for embed load
This commit is contained in:
parent
939f16529a
commit
9a1dcd78ed
@ -96,6 +96,10 @@ class EmbeddingDatabase:
|
||||
else:
|
||||
data = extract_image_data_embed(embed_image)
|
||||
name = data.get('name', name)
|
||||
elif filename.upper().endswith('.WEBP'):
|
||||
embed_image = Image.open(path)
|
||||
data = extract_image_data_embed(embed_image)
|
||||
name = data.get('name', name)
|
||||
else:
|
||||
data = torch.load(path, map_location="cpu")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user