FLUX: add generate images tqdm desc

This commit is contained in:
madroid 2024-10-13 21:47:33 +08:00
parent aed4b007fc
commit 68518a3194

View File

@ -184,7 +184,7 @@ class FluxPipeline:
mx.eval(x_t) mx.eval(x_t)
images = [] images = []
for i in tqdm(range(len(x_t)), disable=not progress): for i in tqdm(range(len(x_t)), disable=not progress, desc="generate images"):
images.append(self.decode(x_t[i : i + 1])) images.append(self.decode(x_t[i : i + 1]))
mx.eval(images[-1]) mx.eval(images[-1])
images = mx.concatenate(images, axis=0) images = mx.concatenate(images, axis=0)