mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-06-17 03:37:20 +00:00
fix: SD3 conditioning crash when clip_l text encoder is missing (#1638)
This commit is contained in:
parent
1365008348
commit
3a54597776
@ -853,7 +853,7 @@ struct SD3CLIPEmbedder : public Conditioner {
|
||||
} else {
|
||||
chunk_hidden_states_l = sd::Tensor<float>::zeros({768, static_cast<int64_t>(chunk_len), 1});
|
||||
if (chunk_idx == 0) {
|
||||
pooled = sd::Tensor<float>::zeros({768, 1});
|
||||
pooled_l = sd::Tensor<float>::zeros({768, 1});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user