()
| 2024 | sdModelField.addEventListener("change", checkGuidanceScaleVisibility) |
| 2025 | |
| 2026 | function 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 | |
| 2043 | function checkFluxScheduler() { |
| 2044 | if (!modelsDB) { |
no test coverage detected