mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
@@ -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
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -61,9 +61,7 @@ sentencepiece==0.2.1
|
||||
# additional
|
||||
blendmodes
|
||||
scipy==1.14.1
|
||||
torchdiffeq
|
||||
scikit-image
|
||||
seam-carving
|
||||
|
||||
# lint
|
||||
ruff
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user