mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-04 05:19:12 +01:00
Remove warning about embeddings in low vram mode, works now
This commit is contained in:
parent
4975f8167e
commit
34de4fe8fe
@ -2559,17 +2559,7 @@ function updateEmbeddingsList(filter = "") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove after fixing https://github.com/huggingface/diffusers/issues/3922
|
embeddingsList.innerHTML = html(modelsOptions.embeddings, "", filter)
|
||||||
let warning = ""
|
|
||||||
if (vramUsageLevelField.value == "low") {
|
|
||||||
warning = `
|
|
||||||
<div style="border-color: var(--accent-color); border-width: 4px; border-radius: 1em; border-style: solid; background: black; text-align: center; padding: 1em; margin: 1em; ">
|
|
||||||
<i class="fa fa-fire" style="color:#f7630c;"></i> Warning: Your GPU memory profile is set to "Low". Embeddings currently only work in "Balanced" mode!
|
|
||||||
</div>`
|
|
||||||
}
|
|
||||||
// END of remove block
|
|
||||||
|
|
||||||
embeddingsList.innerHTML = warning + html(modelsOptions.embeddings, "", filter)
|
|
||||||
embeddingsList.querySelectorAll("button").forEach((b) => {
|
embeddingsList.querySelectorAll("button").forEach((b) => {
|
||||||
b.addEventListener("click", onButtonClick)
|
b.addEventListener("click", onButtonClick)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user