MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / isFluxModel

Function isFluxModel

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

Source from the content-addressed store, hash-verified

1925let sdModelField = document.querySelector("#stable_diffusion_model")
1926
1927function isFluxModel() {
1928 let sdModel = stableDiffusionModelField.value
1929 let tags = modelsDB["stable-diffusion"][sdModel]?.tags || []
1930 let isFlux = tags.includes("flux_dev") || tags.includes("flux_schnell")
1931 return isFlux
1932}
1933
1934function isChromaModel() {
1935 let sdModel = stableDiffusionModelField.value

Callers 8

getCurrentUserRequestFunction · 0.85
checkReferenceImageFieldFunction · 0.85
checkGuidanceValueFunction · 0.85
checkFluxSamplerFunction · 0.85
checkFluxSchedulerFunction · 0.85
checkFluxSchedulerStepsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected