This commit is contained in:
Vladimir Mandic
2024-09-07 18:01:48 -04:00
parent 50fc4202b0
commit 787b321d57
2 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ Major refactor of [FLUX.1](https://blackforestlabs.ai/announcing-black-forest-la
try enabling **NNCF** for quantization/compression on-the-fly!
Few image related goodies...
- **Context-aware** image resize that allows for *img2img* or *inpaint* even at massively different aspect ratios!
- **Context-aware** resize that allows for *img2img/inpaint* even at massively different aspect ratios without distortions!
- Auto **HDR** image create for SD and SDXL with both 16ch true-HDR and 8-ch HDR-effect images ;)
And few video related goodies...
@@ -78,8 +78,8 @@ Plus tons of minor items and fixes - see [changelog](https://github.com/vladmand
allow for creation of much longer videos, automatically enabled if frames > 16
- **Context-aware** image resize, thanks @AI-Casanova!
based on [seam-carving](https://github.com/li-plus/seam-carving)
allows for img2img or inpaint even at massively different aspect ratios!
simply select as resize method when using img2img or control tabs
allows for *img2img/inpaint* even at massively different aspect ratios without distortions!
simply select as resize method when using *img2img* or *control* tabs
- **HDR** high-dynamic-range image create for SD and SDXL
create hdr images from in multiple exposures by latent-space modifications during generation
use via *scripts -> hdr*
+8 -4
View File
@@ -11,7 +11,7 @@ from threading import Thread
import modules.loader
import torch # pylint: disable=wrong-import-order
from modules import timer, errors, paths # pylint: disable=unused-import
from installer import log, git_commit, diffusers_commit, custom_excepthook
from installer import log, git_commit, custom_excepthook
import ldm.modules.encoders.modules # pylint: disable=unused-import, wrong-import-order
from modules import shared, extensions, gr_tempdir, modelloader # pylint: disable=ungrouped-imports
from modules import extra_networks, ui_extra_networks # pylint: disable=ungrouped-imports
@@ -34,7 +34,7 @@ import modules.textual_inversion.textual_inversion
import modules.hypernetworks.hypernetwork
import modules.script_callbacks
from modules.api.middleware import setup_middleware
from modules.shared import cmd_opts, opts
from modules.shared import cmd_opts, opts # pylint: disable=unused-import
sys.excepthook = custom_excepthook
@@ -220,8 +220,12 @@ def start_common():
create_paths(shared.opts)
async_policy()
initialize()
if diffusers_commit != 'unknown':
shared.opts.diffusers_version = diffusers_commit # update installed diffusers version
try:
from installer import diffusers_commit
if diffusers_commit != 'unknown':
shared.opts.diffusers_version = diffusers_commit # update installed diffusers version
except Exception:
pass
if shared.opts.clean_temp_dir_at_start:
gr_tempdir.cleanup_tmpdr()
timer.startup.record("cleanup")