MCPcopy Create free account
hub / github.com/vladmandic/sdnext / is_active

Method is_active

scripts/layerdiffuse_ext.py:32–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 return self.is_active()
31
32 def is_active(self):
33 if not shared.sd_loaded:
34 return '<div style="color: darkred">LayerDiffuse: model not loaded</div><br>'
35 if shared.sd_model_type != 'sd' and shared.sd_model_type != 'sdxl':
36 return '<div style="color: darkred">LayerDiffuse: incorrect base model</div><br>'
37 if hasattr(shared.sd_model, 'layerdiffusion'):
38 return '<div style="color: darkgreen">LayerDiffuse: active</div><br>'
39 return '<div style="color: darkgray">LayerDiffuse: inactive</div><br>'
40
41 def ui(self, _is_img2img):
42 with gr.Row():

Callers 4

applyMethod · 0.95
reloadMethod · 0.95
process_samplesFunction · 0.80
processMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected