11import folder_paths
22import os
3+ from comfy_api .latest import ComfyExtension , io
34
45
56def _add_folder_path (folder_name : str , extensions_to_register : list ):
@@ -21,29 +22,23 @@ def _add_folder_path(folder_name: str, extensions_to_register: list):
2122
2223from . import nodes
2324
24- NODE_CLASS_MAPPINGS = {
25- "INPAINT_LoadFooocusInpaint" : nodes .LoadFooocusInpaint ,
26- "INPAINT_ApplyFooocusInpaint" : nodes .ApplyFooocusInpaint ,
27- "INPAINT_VAEEncodeInpaintConditioning" : nodes .VAEEncodeInpaintConditioning ,
28- "INPAINT_MaskedFill" : nodes .MaskedFill ,
29- "INPAINT_MaskedBlur" : nodes .MaskedBlur ,
30- "INPAINT_LoadInpaintModel" : nodes .LoadInpaintModel ,
31- "INPAINT_InpaintWithModel" : nodes .InpaintWithModel ,
32- "INPAINT_ExpandMask" : nodes .ExpandMask ,
33- "INPAINT_ShrinkMask" : nodes .ShrinkMask ,
34- "INPAINT_StabilizeMask" : nodes .StabilizeMask ,
35- "INPAINT_DenoiseToCompositingMask" : nodes .DenoiseToCompositingMask ,
36- }
37- NODE_DISPLAY_NAME_MAPPINGS = {
38- "INPAINT_LoadFooocusInpaint" : "Load Fooocus Inpaint" ,
39- "INPAINT_ApplyFooocusInpaint" : "Apply Fooocus Inpaint" ,
40- "INPAINT_VAEEncodeInpaintConditioning" : "VAE Encode & Inpaint Conditioning" ,
41- "INPAINT_MaskedFill" : "Fill Masked Area" ,
42- "INPAINT_MaskedBlur" : "Blur Masked Area" ,
43- "INPAINT_LoadInpaintModel" : "Load Inpaint Model" ,
44- "INPAINT_InpaintWithModel" : "Inpaint (using Model)" ,
45- "INPAINT_ExpandMask" : "Expand Mask" ,
46- "INPAINT_ShrinkMask" : "Shrink Mask" ,
47- "INPAINT_StabilizeMask" : "Stabilize Mask" ,
48- "INPAINT_DenoiseToCompositingMask" : "Denoise to Compositing Mask" ,
49- }
25+
26+ class InpaintNodes (ComfyExtension ):
27+ async def get_node_list (self ) -> list [type [io .ComfyNode ]]:
28+ return [
29+ nodes .LoadFooocusInpaint ,
30+ nodes .ApplyFooocusInpaint ,
31+ nodes .VAEEncodeInpaintConditioning ,
32+ nodes .MaskedFill ,
33+ nodes .MaskedBlur ,
34+ nodes .LoadInpaintModel ,
35+ nodes .InpaintWithModel ,
36+ nodes .ExpandMask ,
37+ nodes .ShrinkMask ,
38+ nodes .StabilizeMask ,
39+ nodes .DenoiseToCompositingMask ,
40+ ]
41+
42+
43+ async def comfy_entrypoint ():
44+ return InpaintNodes ()
0 commit comments