MCPcopy Index your code
hub / github.com/vladmandic/sdnext / before_process

Method before_process

modules/scripts_manager.py:105–111  ·  view source on GitHub ↗

This function is called very early during processing begins for AlwaysVisible scripts. You can modify the processing object (p) here, inject hooks, etc. args contains all values returned by components from ui()

(self, p: StableDiffusionProcessing, *args)

Source from the content-addressed store, hash-verified

103 pass # pylint: disable=unnecessary-pass
104
105 def before_process(self, p: StableDiffusionProcessing, *args):
106 """
107 This function is called very early during processing begins for AlwaysVisible scripts.
108 You can modify the processing object (p) here, inject hooks, etc.
109 args contains all values returned by components from ui()
110 """
111 pass # pylint: disable=unnecessary-pass
112
113 def process(self, p: StableDiffusionProcessing, *args):
114 """

Callers 2

process_imagesFunction · 0.45
before_processMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected