We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61cfec commit 250e60fCopy full SHA for 250e60f
stable-diffusion.cpp
@@ -326,8 +326,12 @@ class StableDiffusionGGML {
326
clip_backend = backend;
327
bool use_t5xxl = false;
328
if (sd_version_is_dit(version)) {
329
- // TODO: check if t5 is actually loaded?
330
- use_t5xxl = true;
+ for (auto pair : model_loader.tensor_storages_types) {
+ if (pair.first.find("text_encoders.t5xxl") != std::string::npos) {
331
+ use_t5xxl = true;
332
+ break;
333
+ }
334
335
}
336
if (!clip_on_cpu && !ggml_backend_is_cpu(backend) && use_t5xxl) {
337
LOG_WARN(
0 commit comments