Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
c0f5346a
Unverified
Commit
c0f5346a
authored
Feb 16, 2024
by
co63oc
Committed by
GitHub
Feb 15, 2024
Browse files
Fix procecss process (#6591)
* Fix words * Fix --------- Co-authored-by:
YiYi Xu
<
yixu310@gmail.com
>
parent
087daee2
Changes
61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py
+2
-2
No files found.
src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py
View file @
c0f5346a
...
@@ -439,7 +439,7 @@ class UniDiffuserPipeline(DiffusionPipeline):
...
@@ -439,7 +439,7 @@ class UniDiffuserPipeline(DiffusionPipeline):
batch_size
=
prompt_embeds
.
shape
[
0
]
batch_size
=
prompt_embeds
.
shape
[
0
]
if
prompt_embeds
is
None
:
if
prompt_embeds
is
None
:
# textual inversion: proce
c
ss multi-vector tokens if necessary
# textual inversion: process multi-vector tokens if necessary
if
isinstance
(
self
,
TextualInversionLoaderMixin
):
if
isinstance
(
self
,
TextualInversionLoaderMixin
):
prompt
=
self
.
maybe_convert_prompt
(
prompt
,
self
.
clip_tokenizer
)
prompt
=
self
.
maybe_convert_prompt
(
prompt
,
self
.
clip_tokenizer
)
...
@@ -521,7 +521,7 @@ class UniDiffuserPipeline(DiffusionPipeline):
...
@@ -521,7 +521,7 @@ class UniDiffuserPipeline(DiffusionPipeline):
else
:
else
:
uncond_tokens
=
negative_prompt
uncond_tokens
=
negative_prompt
# textual inversion: proce
c
ss multi-vector tokens if necessary
# textual inversion: process multi-vector tokens if necessary
if
isinstance
(
self
,
TextualInversionLoaderMixin
):
if
isinstance
(
self
,
TextualInversionLoaderMixin
):
uncond_tokens
=
self
.
maybe_convert_prompt
(
uncond_tokens
,
self
.
clip_tokenizer
)
uncond_tokens
=
self
.
maybe_convert_prompt
(
uncond_tokens
,
self
.
clip_tokenizer
)
...
...
Prev
1
2
3
4
Next
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