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
@@ -67,7 +67,7 @@ class Script(scripts.Script):
return title
def show(self, is_img2img):
if shared.backend == shared.Backend.DIFFUSERS:
if shared.native:
return img2img if is_img2img else txt2img
return False