Spaces:
Sleeping
Sleeping
igashov
commited on
Commit
•
2464d06
1
Parent(s):
d1da608
progress bar
Browse files- src/edm.py +3 -1
src/edm.py
CHANGED
@@ -8,6 +8,8 @@ from src.egnn import Dynamics
|
|
8 |
from src.noise import GammaNetwork, PredefinedNoiseSchedule
|
9 |
from typing import Union
|
10 |
|
|
|
|
|
11 |
from pdb import set_trace
|
12 |
|
13 |
|
@@ -565,7 +567,7 @@ class InpaintingEDM(EDM):
|
|
565 |
chain = torch.zeros((keep_frames,) + z.size(), device=z.device)
|
566 |
|
567 |
# Sample p(z_s | z_t)
|
568 |
-
for s in reversed(range(0, self.T)):
|
569 |
s_array = torch.full((n_samples, 1), fill_value=s, device=z.device)
|
570 |
t_array = s_array + 1
|
571 |
s_array = s_array / self.T
|
|
|
8 |
from src.noise import GammaNetwork, PredefinedNoiseSchedule
|
9 |
from typing import Union
|
10 |
|
11 |
+
from tqdm import tqdm
|
12 |
+
|
13 |
from pdb import set_trace
|
14 |
|
15 |
|
|
|
567 |
chain = torch.zeros((keep_frames,) + z.size(), device=z.device)
|
568 |
|
569 |
# Sample p(z_s | z_t)
|
570 |
+
for s in tqdm(reversed(range(0, self.T)), total=self.T):
|
571 |
s_array = torch.full((n_samples, 1), fill_value=s, device=z.device)
|
572 |
t_array = s_array + 1
|
573 |
s_array = s_array / self.T
|