use right value for step arg in img_callback

This commit is contained in:
Lincoln Stein 2022-10-03 05:46:23 -04:00
parent 8e97bc24a4
commit 7c6dbcb14a

View File

@ -272,7 +272,7 @@ class Sampler(object):
if callback:
callback(i)
if img_callback:
img_callback(img,step)
img_callback(img,i)
if index % log_every_t == 0 or index == total_steps - 1:
intermediates['x_inter'].append(img)