MCPcopy
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / show

Method show

modules/scripts.py:112–122  ·  view source on GitHub ↗

is_img2img is True if this function is called for the img2img interface, and False otherwise This function should return: - False if the script should not be shown in UI at all - True if the script should be shown in UI if it's selected in the scripts dropdow

(self, is_img2img)

Source from the content-addressed store, hash-verified

110 pass
111
112 def show(self, is_img2img):
113 """
114 is_img2img is True if this function is called for the img2img interface, and False otherwise
115
116 This function should return:
117 - False if the script should not be shown in UI at all
118 - True if the script should be shown in UI if it's selected in the scripts dropdown
119 - script.AlwaysVisible if the script should be shown in UI at all times
120 """
121
122 return True
123
124 def run(self, p, *args):
125 """

Callers 2

elem_idMethod · 0.95
initialize_scriptsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected