Update pk_workflow.py
Browse files369 unmodified lines37037137237337437537637761 unmodified lines439440441442443444445446369 unmodified linessigma = shift * base / (1 + (shift - 1) * base)if scheduler._dpmpp_sde_noise_sampler is None:scheduler._dpmpp_sde_noise_sampler = _BrownianTreeNoiseSampler(x, sigmas[sigmas > 0].min(), sigmas.max(), seed=scheduler._dpmpp_sde_seed, cpu=False)def half_log_snr(s):61 unmodified linessigma = shift * base / (1 + (shift - 1) * base)if scheduler._dpmpp_sde_noise_sampler is None:scheduler._dpmpp_sde_noise_sampler = _BrownianTreeNoiseSampler(x, sigmas[sigmas > 0].min(), sigmas.max(), seed=scheduler._dpmpp_sde_seed, cpu=False)def half_log_snr(s):369 unmodified lines37037137237337437537637737837938061 unmodified lines442443444445446447448449450451452369 unmodified linessigma = shift * base / (1 + (shift - 1) * base)if scheduler._dpmpp_sde_noise_sampler is None:# `cpu=True` runs the Brownian-bridge recursion on CPU rather than the GPU — negligible cost next to# the transformer forward pass, but noticeably more numerically stable than `cpu=False`, which is what# ComfyUI's own non-`_gpu`-suffixed variants default to for exactly this reason.scheduler._dpmpp_sde_noise_sampler = _BrownianTreeNoiseSampler(x, sigmas[sigmas > 0].min(), sigmas.max(), seed=scheduler._dpmpp_sde_seed, cpu=True)def half_log_snr(s):61 unmodified linessigma = shift * base / (1 + (shift - 1) * base)if scheduler._dpmpp_sde_noise_sampler is None:# `cpu=True` runs the Brownian-bridge recursion on CPU rather than the GPU — negligible cost next to# the transformer forward pass, but noticeably more numerically stable than `cpu=False`, which is what# ComfyUI's own non-`_gpu`-suffixed variants default to for exactly this reason.scheduler._dpmpp_sde_noise_sampler = _BrownianTreeNoiseSampler(x, sigmas[sigmas > 0].min(), sigmas.max(), seed=scheduler._dpmpp_sde_seed, cpu=True)def half_log_snr(s):
pk_workflow.py+8-2