mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
refactor backend detection
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user