refactor backend detection

This commit is contained in:
Vladimir Mandic
2024-06-06 20:41:10 -04:00
parent c8d6f03209
commit 5574833f0d
55 changed files with 171 additions and 170 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class Script(scripts.Script):
return 'LayerDiffuse'
def show(self, is_img2img):
return True if shared.backend == shared.Backend.DIFFUSERS else False
return True if shared.native else False
def apply(self):
from modules import layerdiffuse