MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / run

Method run

modules/scripts.py:128–139  ·  view source on GitHub ↗

This function is called if the script has been selected in the script dropdown. It must do all processing and return the Processed object with results, same as one returned by processing.process_images. Usually the processing is done by calling the processing.p

(self, p, *args)

Source from the content-addressed store, hash-verified

126 return True
127
128 def run(self, p, *args):
129 """
130 This function is called if the script has been selected in the script dropdown.
131 It must do all processing and return the Processed object with results, same as
132 one returned by processing.process_images.
133
134 Usually the processing is done by calling the processing.process_images function.
135
136 args contains all values returned by components from ui()
137 """
138
139 pass
140
141 def setup(self, p, *args):
142 """For AlwaysVisible scripts, this function is called when the processing object is set up, before any processing starts.

Callers 13

runFunction · 0.45
check_run_pythonFunction · 0.45
runMethod · 0.45
process_batchFunction · 0.45
img2img_functionFunction · 0.45
txt2img_upscale_functionFunction · 0.45
txt2img_functionFunction · 0.45
save_videoFunction · 0.45
run_postprocessingFunction · 0.45
text2imgapiMethod · 0.45
img2imgapiMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected