reduce requirements

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-11-12 19:24:47 -05:00
parent 6491b0618e
commit f4b0656dbb
4 changed files with 6 additions and 3 deletions
+1
View File
@@ -26,6 +26,7 @@ TBD
- chrono: switch to official pipeline
- pipeline: add optional preprocess and postprocess hooks
- auth: wrap all internal api calls with auth check and use token when possible
- installer: reduce requirements
- **Fixes**
- hires: strength save/load in metadata, thanks @awsr
- imgi2img: fix initial scale tab, thanks @awsr
+2
View File
@@ -95,6 +95,8 @@ def resize_image(resize_mode: int, im: Union[Image.Image, torch.Tensor], width:
return res
def context_aware(im: Image.Image, width, height, context):
from installer import install
install('seam-carving')
width, height = int(width), int(height)
import seam_carving # https://github.com/li-plus/seam-carving
if 'forward' in context.lower():
-2
View File
@@ -61,9 +61,7 @@ sentencepiece==0.2.1
# additional
blendmodes
scipy==1.14.1
torchdiffeq
scikit-image
seam-carving
# lint
ruff
+3 -1
View File
@@ -28,9 +28,11 @@ class Script(scripts_manager.Script):
return True
def dependencies(self):
from installer import installed, install_insightface
from installer import installed, install, install_insightface
if not installed('insightface', reload=False, quiet=True):
install_insightface()
if not installed('torchdiffeq'):
install('torchdiffeq')
def register(self): # register xyz grid elements
global registered # pylint: disable=global-statement