(self)
| 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(): |
no outgoing calls
no test coverage detected