Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
c944f065
Unverified
Commit
c944f065
authored
Jan 15, 2025
by
Sayak Paul
Committed by
GitHub
Jan 15, 2025
Browse files
[Chore] fix vae annotation in mochi pipeline (#10585)
fix vae annotation in mochi pipeline
parent
bba59fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/diffusers/pipelines/mochi/pipeline_mochi.py
src/diffusers/pipelines/mochi/pipeline_mochi.py
+4
-4
No files found.
src/diffusers/pipelines/mochi/pipeline_mochi.py
View file @
c944f065
...
@@ -21,7 +21,7 @@ from transformers import T5EncoderModel, T5TokenizerFast
...
@@ -21,7 +21,7 @@ from transformers import T5EncoderModel, T5TokenizerFast
from
...callbacks
import
MultiPipelineCallbacks
,
PipelineCallback
from
...callbacks
import
MultiPipelineCallbacks
,
PipelineCallback
from
...loaders
import
Mochi1LoraLoaderMixin
from
...loaders
import
Mochi1LoraLoaderMixin
from
...models.autoencoders
import
AutoencoderKL
from
...models.autoencoders
import
AutoencoderKL
Mochi
from
...models.transformers
import
MochiTransformer3DModel
from
...models.transformers
import
MochiTransformer3DModel
from
...schedulers
import
FlowMatchEulerDiscreteScheduler
from
...schedulers
import
FlowMatchEulerDiscreteScheduler
from
...utils
import
(
from
...utils
import
(
...
@@ -151,8 +151,8 @@ class MochiPipeline(DiffusionPipeline, Mochi1LoraLoaderMixin):
...
@@ -151,8 +151,8 @@ class MochiPipeline(DiffusionPipeline, Mochi1LoraLoaderMixin):
Conditional Transformer architecture to denoise the encoded video latents.
Conditional Transformer architecture to denoise the encoded video latents.
scheduler ([`FlowMatchEulerDiscreteScheduler`]):
scheduler ([`FlowMatchEulerDiscreteScheduler`]):
A scheduler to be used in combination with `transformer` to denoise the encoded image latents.
A scheduler to be used in combination with `transformer` to denoise the encoded image latents.
vae ([`AutoencoderKL`]):
vae ([`AutoencoderKL
Mochi
`]):
Variational Auto-Encoder (VAE) Model to encode and decode
image
s to and from latent representations.
Variational Auto-Encoder (VAE) Model to encode and decode
video
s to and from latent representations.
text_encoder ([`T5EncoderModel`]):
text_encoder ([`T5EncoderModel`]):
[T5](https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel), specifically
[T5](https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel), specifically
the [google/t5-v1_1-xxl](https://huggingface.co/google/t5-v1_1-xxl) variant.
the [google/t5-v1_1-xxl](https://huggingface.co/google/t5-v1_1-xxl) variant.
...
@@ -171,7 +171,7 @@ class MochiPipeline(DiffusionPipeline, Mochi1LoraLoaderMixin):
...
@@ -171,7 +171,7 @@ class MochiPipeline(DiffusionPipeline, Mochi1LoraLoaderMixin):
def
__init__
(
def
__init__
(
self
,
self
,
scheduler
:
FlowMatchEulerDiscreteScheduler
,
scheduler
:
FlowMatchEulerDiscreteScheduler
,
vae
:
AutoencoderKL
,
vae
:
AutoencoderKL
Mochi
,
text_encoder
:
T5EncoderModel
,
text_encoder
:
T5EncoderModel
,
tokenizer
:
T5TokenizerFast
,
tokenizer
:
T5TokenizerFast
,
transformer
:
MochiTransformer3DModel
,
transformer
:
MochiTransformer3DModel
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment