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

Function run_master_image

cake-cli/src/main.rs:622–643  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

620
621#[cfg(feature = "master")]
622async fn run_master_image(ctx: Context) -> Result<()> {
623 use cake_core::cake::Master;
624
625 match ctx.args.image_model_arch {
626 ImageModelArch::SD => {
627 Master::<cake_core::models::sd::SD>::new(ctx).await?.run().await
628 }
629 #[cfg(feature = "flux")]
630 ImageModelArch::Flux => {
631 Master::<cake_core::models::flux::FluxGen>::new(ctx).await?.run().await
632 }
633 #[cfg(feature = "flux")]
634 ImageModelArch::Flux1 => {
635 Master::<cake_core::models::flux::Flux1Gen>::new(ctx).await?.run().await
636 }
637 #[allow(unreachable_patterns)]
638 _ => anyhow::bail!(
639 "no image model feature enabled for architecture {:?}",
640 ctx.args.image_model_arch
641 ),
642 }
643}
644
645#[cfg(not(feature = "master"))]
646async fn run_master(_ctx: Context) -> Result<()> {

Callers 1

run_masterFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected