| from typing_extensions import override | |
| from comfy_api.latest import ComfyExtension, io | |
| from .compat.utils import v3_schema_stub | |
| from .nodes_ppm import ( | |
| attention_couple_ppm, | |
| attention_selector, | |
| cads_ppm, | |
| clip_misc, | |
| clip_negpip, | |
| freeu_adv, | |
| guidance, | |
| image_misc, | |
| latent_misc, | |
| latent_tonemap, | |
| misc, | |
| samplers, | |
| ) | |
| from .schedulers import inject_schedulers | |
| WEB_DIRECTORY = "./js" | |
| class PPMExtension(ComfyExtension): | |
| async def on_load(self): | |
| inject_schedulers() | |
| attention_selector.init() | |
| async def get_node_list(self) -> list[type[io.ComfyNode]]: | |
| # TODO convert more nodes to v3 | |
| return [ | |
| *attention_couple_ppm.NODES, | |
| *attention_selector.NODES, | |
| *cads_ppm.NODES, | |
| *v3_schema_stub(clip_misc), | |
| *clip_negpip.NODES, | |
| *v3_schema_stub(freeu_adv), | |
| *v3_schema_stub(guidance), | |
| *image_misc.NODES, | |
| *v3_schema_stub(latent_misc), | |
| *v3_schema_stub(latent_tonemap), | |
| *misc.NODES, | |
| *v3_schema_stub(samplers), | |
| ] | |
| async def comfy_entrypoint() -> ComfyExtension: | |
| return PPMExtension() | |
Xet Storage Details
- Size:
- 1.23 kB
- Xet hash:
- faf095d4bb6fbb2316b63387292dbba17cff6c2bdb5778f27adc763bd8bc80f4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.