Minor changes, add assets

This commit is contained in:
Kevin Black
2023-06-27 10:20:03 -07:00
parent 4c5322ca85
commit 8cab96dea4
5 changed files with 73 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
# Copied from https://github.com/huggingface/diffusers/blob/fc6acb6b97e93d58cb22b5fee52d884d77ce84d8/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
# with the following modifications:
# -
# - It uses the patched version of `ddim_step_with_logprob` from `ddim_with_logprob.py`. As such, it only supports the
# `ddim` scheduler.
# - It returns all the intermediate latents of the denoising process as well as the log probs of each denoising step.
from typing import Any, Callable, Dict, List, Optional, Union
@@ -10,7 +12,6 @@ from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion import (
StableDiffusionPipeline,
rescale_noise_cfg,
)
from diffusers.schedulers.scheduling_ddim import DDIMScheduler
from .ddim_with_logprob import ddim_step_with_logprob