From 6248f314029e1aa8ca9b92d6eda920c8c56f5f55 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Mon, 21 Oct 2024 12:44:00 +0900 Subject: [PATCH] improved: lora in wildcard - Allows omitting leading zero when specifying floating-point values less than 1. e.g. .1 instead of 0.1 https://github.com/ltdrdata/ComfyUI-Inspire-Pack/issues/178 --- modules/impact/config.py | 2 +- modules/impact/wildcards.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/impact/config.py b/modules/impact/config.py index 2c5ea5e..ad5dff3 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [7, 10, 3] +version_code = [7, 10, 4] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 23 diff --git a/modules/impact/wildcards.py b/modules/impact/wildcards.py index 9673d28..005d710 100644 --- a/modules/impact/wildcards.py +++ b/modules/impact/wildcards.py @@ -259,7 +259,7 @@ def process(text, seed=None): def is_numeric_string(input_str): - return re.match(r'^-?\d+(\.\d+)?$', input_str) is not None + return re.match(r'^-?\d?+(\.\d+)?$', input_str) is not None def safe_float(x): diff --git a/pyproject.toml b/pyproject.toml index 8177611..51fea14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "7.10.3" +version = "7.10.4" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]