mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
major refactoring of modules
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
import json
|
||||
from PIL import Image
|
||||
import gradio as gr
|
||||
from modules import scripts, processing, shared, ipadapter, ui_common
|
||||
from modules import scripts_manager, processing, shared, ipadapter, ui_common
|
||||
|
||||
|
||||
MAX_ADAPTERS = 4
|
||||
|
||||
|
||||
class Script(scripts.Script):
|
||||
class Script(scripts_manager.Script):
|
||||
standalone = True
|
||||
|
||||
def title(self):
|
||||
return 'IP Adapters'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return scripts.AlwaysVisible if shared.native else False
|
||||
return scripts_manager.AlwaysVisible if shared.native else False
|
||||
|
||||
def load_images(self, files):
|
||||
init_images = []
|
||||
|
||||
Reference in New Issue
Block a user