Skip to content

Commit bdbc66b

Browse files
RyanJDickbrandonrising
authored andcommitted
Add tqdm progress bar to FLUX denoising.
1 parent 9c5c31c commit bdbc66b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

invokeai/backend/flux/sampling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import torch
55
from einops import rearrange, repeat
66
from torch import Tensor
7+
from tqdm import tqdm
78

89
from .model import Flux
910
from .modules.conditioner import HFEncoder
@@ -115,7 +116,7 @@ def denoise(
115116

116117
# this is ignored for schnell
117118
guidance_vec = torch.full((img.shape[0],), guidance, device=img.device, dtype=img.dtype)
118-
for t_curr, t_prev in zip(timesteps[:-1], timesteps[1:], strict=True):
119+
for t_curr, t_prev in tqdm(list(zip(timesteps[:-1], timesteps[1:], strict=True))):
119120
t_vec = torch.full((img.shape[0],), t_curr, dtype=img.dtype, device=img.device)
120121
pred = model(
121122
img=img,

0 commit comments

Comments
 (0)