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

Method load

cake-core/src/models/sd/vae.rs:26–41  ·  view source on GitHub ↗
(_name: String, ctx: &Context)

Source from the content-addressed store, hash-verified

24#[async_trait]
25impl Forwarder for VAE {
26 fn load(_name: String, ctx: &Context) -> anyhow::Result<Box<Self>>
27 where
28 Self: Sized,
29 {
30 let sd_config = get_sd_config(ctx)?;
31
32 Self::load_model(
33 ctx.args.sd_args.vae.clone(),
34 ctx.args.sd_args.sd_version,
35 ctx.args.sd_args.use_f16,
36 &ctx.device,
37 ctx.dtype,
38 ctx.args.model.clone(),
39 &sd_config,
40 )
41 }
42
43 async fn forward(
44 &self,

Callers

nothing calls this directly

Calls 2

get_sd_configFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected