@keen basin Just became aware of this bug report about the Accurate rendering of intermediate images not working. I had also encountered the same issue in the CLI's handling of intermediate images, and the solution was:
@@ -1262,10 +1263,13 @@ def make_step_callback(gen, opt, prefix):
os.makedirs(destination, exist_ok=True)
print(f">> Intermediate images will be written into {destination}")
- def callback(img, step):
+ def callback(state: PipelineIntermediateState):
+ latents = state.latents
+ step = state.step
if step % opt.save_intermediates == 0 or step == opt.steps - 1:
filename = os.path.join(destination, f"{step:04}.png")
- image = gen.sample_to_image(img)
+ image = gen.sample_to_lowres_estimated_image(latents)
+ image = image.resize((image.size[0]*8,image.size[1]*8))
image.save(filename, "PNG")