Download custom_nodes/comfyui_controlnet_aux/node_wrappers/tile.py from StupidGame/MyComfySetUp: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/comfyui_controlnet_aux/node_wrappers/tile.py
- Command line
-
hf download hf://StupidGame/MyComfySetUp/custom_nodes/comfyui_controlnet_aux/node_wrappers/tile.py
-
curl -L -o tile.py https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/comfyui_controlnet_aux/node_wrappers/tile.py
753 Bytes
| from ..utils import common_annotator_call, create_node_input_types | |
| class Tile_Preprocessor: | |
| def INPUT_TYPES(s): | |
| return create_node_input_types( | |
| pyrUp_iters = ("INT", {"default": 3, "min": 1, "max": 10, "step": 1}) | |
| ) | |
| RETURN_TYPES = ("IMAGE",) | |
| FUNCTION = "execute" | |
| CATEGORY = "ControlNet Preprocessors/others" | |
| def execute(self, image, pyrUp_iters, resolution=512, **kwargs): | |
| from controlnet_aux.tile import TileDetector | |
| return (common_annotator_call(TileDetector(), image, pyrUp_iters=pyrUp_iters, resolution=resolution),) | |
| NODE_CLASS_MAPPINGS = { | |
| "TilePreprocessor": Tile_Preprocessor, | |
| } | |
| NODE_DISPLAY_NAME_MAPPINGS = { | |
| "TilePreprocessor": "Tile" | |
| } | |