mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user