mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
major requirements refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -15,7 +15,7 @@ orig_pipeline, orig_prompt_attention = None, None
|
||||
def verify_insightface():
|
||||
from installer import installed, install, reload
|
||||
if not installed('insightface', reload=False, quiet=True):
|
||||
install('insightface==0.7.3', ignore=False)
|
||||
install('git+https://github.com/deepinsight/insightface@554a05561cb71cfebb4e012dfea48807f845a0c2#subdirectory=python-package', 'insightface') # insightface==0.7.3 with patches
|
||||
install('albumentations==1.4.3', ignore=False, reinstall=True)
|
||||
install('pydantic==1.10.21', ignore=False, reinstall=True, force=True)
|
||||
reload('pydantic')
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
import inspect
|
||||
import gradio as gr
|
||||
from modules import scripts, processing, shared, sd_models
|
||||
from modules import scripts, processing, shared, sd_models, ui_common
|
||||
|
||||
|
||||
class Script(scripts.Script):
|
||||
@@ -17,7 +17,8 @@ class Script(scripts.Script):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/crowsonkb/k-diffusion">  K-Diffusion Samplers</a><br>')
|
||||
with gr.Row():
|
||||
sampler = gr.Dropdown(label="Sampler", choices=self.samplers())
|
||||
sampler = gr.Dropdown(label="Sampler", choices=[])
|
||||
_refresh = ui_common.create_refresh_button(sampler, self.samplers, lambda: {"choices": self.samplers()})
|
||||
return [sampler]
|
||||
|
||||
def samplers(self):
|
||||
|
||||
@@ -30,7 +30,7 @@ class Script(scripts.Script):
|
||||
def dependencies(self):
|
||||
from installer import install, installed, reload
|
||||
if not installed('insightface==0.7.3', reload=False, quiet=True):
|
||||
install('insightface==0.7.3', ignore=False)
|
||||
install('git+https://github.com/deepinsight/insightface@554a05561cb71cfebb4e012dfea48807f845a0c2#subdirectory=python-package', 'insightface') # insightface==0.7.3 with patches
|
||||
install('albumentations==1.4.3', ignore=False, reinstall=True)
|
||||
install('pydantic==1.10.21', ignore=False, reinstall=True, force=True)
|
||||
reload('pydantic')
|
||||
|
||||
Reference in New Issue
Block a user