-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
19 lines (14 loc) · 852 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from . import pyramid_noise_sampling
from .pyramid_noise_sampling import sample_euler_pyramid, sample_heun_pyramid, sample_dpmpp_2s_pyramid
if pyramid_noise_sampling.BACKEND == "ComfyUI":
if not pyramid_noise_sampling.INITIALIZED:
from comfy.k_diffusion import sampling as k_diffusion_sampling
from comfy.samplers import SAMPLER_NAMES
setattr(k_diffusion_sampling, "sample_euler_pyramid", sample_euler_pyramid)
setattr(k_diffusion_sampling, "sample_heun_pyramid", sample_heun_pyramid)
setattr(k_diffusion_sampling, "sample_dpmpp_2s_pyramid", sample_dpmpp_2s_pyramid)
SAMPLER_NAMES.append("sample_euler_pyramid")
SAMPLER_NAMES.append("sample_heun_pyramid")
SAMPLER_NAMES.append("sample_dpmpp_2s_pyramid")
pyramid_noise_sampling.INITIALIZED = True
NODE_CLASS_MAPPINGS = {}