MCPcopy Index your code
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / before_process

Method before_process

modules/scripts.py:143–150  ·  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, *args)

Source from the content-addressed store, hash-verified

141 pass
142
143 def before_process(self, p, *args):
144 """
145 This function is called very early during processing begins for AlwaysVisible scripts.
146 You can modify the processing object (p) here, inject hooks, etc.
147 args contains all values returned by components from ui()
148 """
149
150 pass
151
152 def process(self, p, *args):
153 """

Callers 2

before_processMethod · 0.45
process_imagesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected