MCPcopy Index your code
hub / github.com/ImprintLab/MedSegDiff / get_model_input_time

Function get_model_input_time

guided_diffusion/dpm_solver.py:240–249  ·  view source on GitHub ↗

Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuous` in [1 / N, 1] to `t_input` in [0, 1000 * (N - 1) / N]. For continuous-time DPMs, we just use `t_continuous`.

(t_continuous)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

noise_pred_fnFunction · 0.85
model_fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected