UPDATE: More unique filenames
To prevent conflicts with other extensions during importing modules and scripts +VersionUP (beta4)
This commit is contained in:
parent
2c7187a3af
commit
9a86140cf2
@ -2,7 +2,7 @@
|
||||
|
||||
<img src="example/ReActor_logo_red.png" alt="logo" width="180px"/>
|
||||
|
||||
<hr>
|
||||
<hr>
|
||||
[](https://github.com/Gourieff/sd-webui-reactor/commits/main)
|
||||

|
||||
[](https://github.com/Gourieff/sd-webui-reactor/issues?cacheSeconds=0)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
<img src="example/ReActor_logo_red.png" alt="logo" width="180px"/>
|
||||
|
||||
<hr>
|
||||
<hr>
|
||||
[](https://github.com/Gourieff/sd-webui-reactor/commits/main)
|
||||

|
||||
[](https://github.com/Gourieff/sd-webui-reactor/issues?cacheSeconds=0)
|
||||
|
||||
@ -14,7 +14,7 @@ from insightface.model_zoo import model_zoo
|
||||
import onnxruntime
|
||||
import onnx
|
||||
from onnx import numpy_helper
|
||||
from scripts.logger import logger
|
||||
from scripts.reactor_logger import logger
|
||||
|
||||
|
||||
def patched_get_model(self, **kwargs):
|
||||
|
||||
@ -14,8 +14,8 @@ from modules.api import api
|
||||
|
||||
import gradio as gr
|
||||
|
||||
from scripts.swapper import UpscaleOptions, swap_face
|
||||
from scripts.logger import logger
|
||||
from scripts.reactor_swapper import UpscaleOptions, swap_face
|
||||
from scripts.reactor_logger import logger
|
||||
|
||||
|
||||
def default_file_path():
|
||||
|
||||
@ -16,11 +16,11 @@ from modules.face_restoration import FaceRestoration
|
||||
from modules.paths_internal import models_path
|
||||
from modules.images import save_image
|
||||
|
||||
from scripts.logger import logger
|
||||
from scripts.swapper import UpscaleOptions, swap_face, check_process_halt, reset_messaged
|
||||
from scripts.version import version_flag, app_title
|
||||
from scripts.reactor_logger import logger
|
||||
from scripts.reactor_swapper import UpscaleOptions, swap_face, check_process_halt, reset_messaged
|
||||
from scripts.reactor_version import version_flag, app_title
|
||||
from scripts.console_log_patch import apply_logging_patch
|
||||
from scripts.helpers import make_grid
|
||||
from scripts.reactor_helpers import make_grid
|
||||
|
||||
|
||||
MODELS_PATH = None
|
||||
@ -4,16 +4,6 @@ from math import isqrt, ceil
|
||||
from typing import List
|
||||
|
||||
def make_grid(image_list: List):
|
||||
"""
|
||||
Creates a square image by combining multiple images in a grid pattern.
|
||||
|
||||
Args:
|
||||
image_list (list): List of PIL Image objects to be combined.
|
||||
|
||||
Returns:
|
||||
PIL Image object: The resulting square image.
|
||||
None: If the image_list is empty or contains only one image.
|
||||
"""
|
||||
|
||||
# Count the occurrences of each image size in the image_list
|
||||
size_counter = Counter(image.size for image in image_list)
|
||||
@ -3,7 +3,7 @@ import copy
|
||||
import sys
|
||||
|
||||
from modules import shared
|
||||
from scripts.globals import IS_RUN
|
||||
from scripts.reactor_globals import IS_RUN
|
||||
|
||||
|
||||
class ColoredFormatter(logging.Formatter):
|
||||
@ -14,7 +14,7 @@ from modules.face_restoration import FaceRestoration
|
||||
from modules.upscaler import UpscalerData
|
||||
from modules.shared import state
|
||||
from modules.paths_internal import models_path
|
||||
from scripts.logger import logger
|
||||
from scripts.reactor_logger import logger
|
||||
|
||||
import warnings
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
app_title = "ReActor"
|
||||
version_flag = "v0.4.1-b3"
|
||||
version_flag = "v0.4.1-b4"
|
||||
|
||||
from scripts.logger import logger, get_Run, set_Run
|
||||
from scripts.reactor_logger import logger, get_Run, set_Run
|
||||
|
||||
is_run = get_Run()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user