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
8d36d5ad
Unverified
Commit
8d36d5ad
authored
Sep 19, 2022
by
Suraj Patil
Committed by
GitHub
Sep 19, 2022
Browse files
Update clip_guided_stable_diffusion.py
parent
dc2a1c1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/community/clip_guided_stable_diffusion.py
examples/community/clip_guided_stable_diffusion.py
+1
-1
No files found.
examples/community/clip_guided_stable_diffusion.py
View file @
8d36d5ad
...
...
@@ -213,7 +213,7 @@ class CLIPGuidedStableDiffusion(DiffusionPipeline):
max_length
=
self
.
tokenizer
.
model_max_length
,
truncation
=
True
,
return_tensors
=
"pt"
,
).
to
(
self
.
device
)
).
input_ids
.
to
(
self
.
device
)
else
:
clip_text_input
=
text_input
.
input_ids
.
to
(
self
.
device
)
text_embeddings_clip
=
self
.
clip_model
.
get_text_features
(
clip_text_input
)
...
...
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