Nodes/ComfyUI-ErosDiffusion-ControlnetMaps/ControlNet Map Cache (ErosDiffusion)
ComfyUI Node

ControlNet Map Cache (ErosDiffusion)

Smart caching node for controlnet maps. Checks for existing maps in the cache directory to skip expensive generation. Supports 'auto' mode to automatically detect map types from connections. Use 'Generate All' to batch process all connected inputs.

By erosDiffusion·Created 8 months ago·Updated 8 months ago· 3
ControlNet Map Cache (ErosDiffusion)
  • source_browser
  • source_original
  • source_depth
  • source_canny
  • source_openpose
  • source_lineart
  • source_scribble
  • source_softedge
  • source_normal
  • source_seg
  • source_shuffle
  • source_mediapipe_face
  • source_custom
  • map
cache_path
filename
map_typeauto
save_if_newtrue
force_generationtrue
generate_allfalse
tags
CategoryErosDiffusion

Inputs (20)

NameTypeDefaultDescription
cache_pathSTRINGRoot directory for the cache. Leave empty to use the Comfy input/maps folder.
filenameSTRINGThe unique identifier (base filename) for the map. Use 'Load Image ErosDiffusion' to extract this from a source image.
map_typeCOMBOautoThe type of map to handle. 'browser' is a pure pass-through.
save_if_newBOOLEANtrueIf True, saves the generated map to the cache directory if it wasn't found.
force_generationBOOLEANtrueIf True, ignores existing cache and forces regeneration + overwrite.
generate_allBOOLEANfalseIf True, triggers ALL connected preprocessors and saves their maps (respecting force_generation).
tagsoptSTRING
source_browseroptIMAGELazy input. Connect CacheMap Browser here. Passes through the image without saving/modifying.
source_originaloptIMAGELazy input. Connect the Original Image here. It will be saved to 'original' folder for overlay in browser.
source_depthoptIMAGELazy input. Connect your depth Preprocessor here. Only runs if cache misses.
source_cannyoptIMAGELazy input. Connect your canny Preprocessor here. Only runs if cache misses.
source_openposeoptIMAGELazy input. Connect your openpose Preprocessor here. Only runs if cache misses.
source_lineartoptIMAGELazy input. Connect your lineart Preprocessor here. Only runs if cache misses.
source_scribbleoptIMAGELazy input. Connect your scribble Preprocessor here. Only runs if cache misses.
source_softedgeoptIMAGELazy input. Connect your softedge Preprocessor here. Only runs if cache misses.
source_normaloptIMAGELazy input. Connect your normal Preprocessor here. Only runs if cache misses.
source_segoptIMAGELazy input. Connect your seg Preprocessor here. Only runs if cache misses.
source_shuffleoptIMAGELazy input. Connect your shuffle Preprocessor here. Only runs if cache misses.
source_mediapipe_faceoptIMAGELazy input. Connect your mediapipe_face Preprocessor here. Only runs if cache misses.
source_customoptIMAGELazy input. Connect your custom Preprocessor here. Only runs if cache misses.

Outputs (1)

NameTypeDescription
mapIMAGE