major requirements refactor

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-01 13:12:21 -04:00
parent 4c43c1cc5e
commit 7736382028
18 changed files with 99 additions and 51 deletions
+1 -1
View File
@@ -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
View File
@@ -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">&nbsp 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):
+1 -1
View File
@@ -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')