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