wiikoo commited on
Commit
531dee2
·
verified ·
1 Parent(s): 5806c82

Upload custom_nodes/comfyui_controlnet_aux/src/custom_mmpkg/custom_mmseg/core/seg/builder.py with huggingface_hub

Browse files
custom_nodes/comfyui_controlnet_aux/src/custom_mmpkg/custom_mmseg/core/seg/builder.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from custom_mmpkg.custom_mmcv.utils import Registry, build_from_cfg
2
+
3
+ PIXEL_SAMPLERS = Registry('pixel sampler')
4
+
5
+
6
+ def build_pixel_sampler(cfg, **default_args):
7
+ """Build pixel sampler for segmentation map."""
8
+ return build_from_cfg(cfg, PIXEL_SAMPLERS, default_args)