From 787b321d57a6f6d5a9b7a7cdef745ca2d72cafa8 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 7 Sep 2024 18:01:48 -0400 Subject: [PATCH] fix --- CHANGELOG.md | 6 +++--- webui.py | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a045bca16..3ad29dee3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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* diff --git a/webui.py b/webui.py index 27aacb8dd..6013aafd6 100644 --- a/webui.py +++ b/webui.py @@ -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")