Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-02 15:28:45 -04:00
parent 800521d885
commit e90ac68dcc
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ def search_civitai(
model_names = [model.name.lower()]
version_names = [v.name.lower() for v in model.versions]
file_names = [f.name.lower() for v in model.versions for f in v.files]
if any([query.lower() in name for name in model_names + version_names + file_names]):
if any([query.lower() in name for name in model_names + version_names + file_names]): # noqa: C419
exact_models.append(model)
t1 = time.time()
+3 -1
View File
@@ -14,7 +14,8 @@ from typing import List
import lark
import torch
from compel import Compel
from modules.shared import opts, log, native
from modules.shared import opts, log
# a prompt like this: "fantasy landscape with a [mountain:lake:0.25] and [an oak:a christmas tree:0.75][ in foreground::0.6][ in background:0.25] [shoddy:masterful:0.5]"
# will be represented with prompt_schedule like this (assuming steps=100):
@@ -24,6 +25,7 @@ from modules.shared import opts, log, native
# [75, 'fantasy landscape with a lake and an oak in background masterful']
# [100, 'fantasy landscape with a lake and a christmas tree in background masterful']
round_bracket_multiplier = 1.1
square_bracket_multiplier = 1.0 / 1.1
re_AND = re.compile(r"\bAND\b")
+1 -1
View File
@@ -98,7 +98,7 @@ def create_ui():
stat = os.stat(row.filename)
if os.path.isfile(f):
typ = os.path.splitext(f)[1][1:]
size = f'{str(round(stat.st_size / 1024 / 1024 / 1024, 3)) + ' mb'}'
size = f"{round(stat.st_size / 1024 / 1024 / 1024, 3)} gb"
elif os.path.isdir(f):
typ = 'diffusers'
size = 'folder'
+1 -1
Submodule wiki updated: 79b18f2c5e...a6e3a70d17