mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
better handle partial models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -262,7 +262,6 @@ class EmbeddingDatabase:
|
||||
if shared.native:
|
||||
return 0
|
||||
if not shared.sd_loaded:
|
||||
shared.log.error('Model not loaded')
|
||||
return 0
|
||||
vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1)
|
||||
return vec.shape[1]
|
||||
|
||||
Reference in New Issue
Block a user