# 4. set current image to prev_image: x_t -> x_t-1
image=pred_prev_image+variance
# 4. set current image to prev_image: x_t -> x_t-1
image=pred_prev_image+variance
# 5. process image to PIL
image_processed=image.cpu().permute(0,2,3,1)
...
...
@@ -132,7 +133,7 @@ image_pil.save("test.png")
### 2. `diffusers` as a collection of most important Diffusion systems (GLIDE, Dalle, ...)
`models` directory in repository hosts the complete code necessary for running a diffusion system as well as to train it. A `DiffusionPipeline` class allows to easily run the diffusion model in inference: