MCPcopy Create free account
hub / github.com/evilsocket/cake / default_guidance_scale

Function default_guidance_scale

cake-core/src/models/sd/sd.rs:670–677  ·  view source on GitHub ↗

Return the default guidance scale for a given SD version.

(version: StableDiffusionVersion)

Source from the content-addressed store, hash-verified

668
669/// Return the default guidance scale for a given SD version.
670pub(crate) fn default_guidance_scale(version: StableDiffusionVersion) -> f64 {
671 match version {
672 StableDiffusionVersion::V1_5
673 | StableDiffusionVersion::V2_1
674 | StableDiffusionVersion::Xl => 7.5,
675 StableDiffusionVersion::Turbo => 0.,
676 }
677}
678
679/// Return the default number of sampling steps for a given SD version.
680pub(crate) fn default_n_steps(version: StableDiffusionVersion) -> usize {

Callers 2

generate_imageMethod · 0.85

Calls

no outgoing calls

Tested by 1