Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/diffusers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
IFPipeline,
IFSuperResolutionPipeline,
KandinskyInpaintPipeline,
KandinskyImg2ImgPipeline,
KandinskyPipeline,
KandinskyPriorPipeline,
LDMTextToImagePipeline,
Expand Down
2 changes: 1 addition & 1 deletion src/diffusers/pipelines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
IFPipeline,
IFSuperResolutionPipeline,
)
from .kandinsky import KandinskyInpaintPipeline, KandinskyPipeline, KandinskyPriorPipeline
from .kandinsky import KandinskyInpaintPipeline, KandinskyPipeline, KandinskyPriorPipeline, KandinskyImg2ImgPipeline
from .latent_diffusion import LDMTextToImagePipeline
from .paint_by_example import PaintByExamplePipeline
from .semantic_stable_diffusion import SemanticStableDiffusionPipeline
Expand Down
1 change: 1 addition & 0 deletions src/diffusers/pipelines/kandinsky/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
else:
from .pipeline_kandinsky import KandinskyPipeline
from .pipeline_kandinsky_inpaint import KandinskyInpaintPipeline
from .pipeline_kandinsky_img2img import KandinskyImg2ImgPipeline
from .pipeline_kandinsky_prior import KandinskyPriorPipeline
from .text_encoder import MultilingualCLIP
from .text_proj import KandinskyTextProjModel
8 changes: 3 additions & 5 deletions src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ...models import UNet2DConditionModel, VQModel
from ...pipelines import DiffusionPipeline
from ...pipelines.pipeline_utils import ImagePipelineOutput
from ...schedulers import UnCLIPScheduler
from ...schedulers import DDPMScheduler
from ...utils import (
is_accelerate_available,
is_accelerate_version,
Expand Down Expand Up @@ -58,7 +58,7 @@ class KandinskyPipeline(DiffusionPipeline):
Frozen text-encoder.
tokenizer ([`XLMRobertaTokenizer`]):
Tokenizer of class
scheduler ([`UnCLIPScheduler`]):
scheduler ([`DDPMScheduler`]):
A scheduler to be used in combination with `unet` to generate image latents.
unet ([`UNet2DConditionModel`]):
Conditional U-Net architecture to denoise the image embedding.
Expand All @@ -74,7 +74,7 @@ def __init__(
tokenizer: XLMRobertaTokenizer,
text_proj: KandinskyTextProjModel,
unet: UNet2DConditionModel,
scheduler: UnCLIPScheduler,
scheduler: DDPMScheduler,
movq: VQModel,
):
super().__init__()
Expand Down Expand Up @@ -376,9 +376,7 @@ def __call__(
noise_pred,
t,
latent_model_input,
prev_timestep=prev_timestep,
generator=generator,
batch_size=batch_size,
).prev_sample

_, latents = latents.chunk(2)
Expand Down
Loading