mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
@@ -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()
|
||||
|
||||
Submodule extensions-builtin/sdnext-modernui updated: 9052df510e...95b8f72f06
@@ -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")
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user