refactor modular

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-08-12 14:24:09 +02:00
parent 6ec06f7019
commit 3f69bee9dd
22 changed files with 268 additions and 203 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ def download_pretrained_from_url(
return download_target
with urllib.request.urlopen(url) as source, open(download_target, "wb") as output:
with tqdm(total=int(source.headers.get("Content-Length")), ncols=80, unit='iB', unit_scale=True) as loop:
with tqdm(total=int(source.headers.get("Content-Length")), ncols=120, unit='iB', unit_scale=True) as loop:
while True:
buffer = source.read(8192)
if not buffer:
+1 -1
View File
@@ -283,7 +283,7 @@ class StableDiffusionXLPuLIDPipeline:
debug(f'PulID embedding: cond={id_embedding.shape} uncond={uncond_id_embedding.shape}')
return uncond_id_embedding, id_embedding
def set_progress_bar_config(self, bar_format: str | None = None, ncols: int = 80, colour: str | None = None):
def set_progress_bar_config(self, bar_format: str | None = None, ncols: int = 120, colour: str | None = None):
import functools
from tqdm.auto import trange as trange_orig
import pulid_sampling