MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / call_model

Function call_model

tools/test_ideogram4.py:62–64  ·  view source on GitHub ↗
(inputs)

Source from the content-addressed store, hash-verified

60diffusion_model = model_patcher.model.diffusion_model
61
62def call_model(inputs):
63 x, t, context, attention_mask = inputs
64 return diffusion_model(x, t, context=context, attention_mask=None)
65
66# scheduler
67scheduler = diffusers.FlowMatchEulerDiscreteScheduler(shift=sample_shift)

Callers 1

test_ideogram4.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected