MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / checkFluxSampler

Function checkFluxSampler

ui/media/js/main.js:2026–2041  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2024sdModelField.addEventListener("change", checkGuidanceScaleVisibility)
2025
2026function checkFluxSampler() {
2027 if (!modelsDB) {
2028 return
2029 }
2030
2031 let samplerWarning = document.querySelector("#fluxSamplerWarning")
2032 if (isFluxModel() || isChromaModel()) {
2033 if (samplerField.value == "euler_a") {
2034 samplerWarning.classList.remove("displayNone")
2035 } else {
2036 samplerWarning.classList.add("displayNone")
2037 }
2038 } else {
2039 samplerWarning.classList.add("displayNone")
2040 }
2041}
2042
2043function checkFluxScheduler() {
2044 if (!modelsDB) {

Callers 1

main.jsFile · 0.85

Calls 3

isFluxModelFunction · 0.85
isChromaModelFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected