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
4f8853e4
Unverified
Commit
4f8853e4
authored
Aug 26, 2023
by
Patrick von Platen
Committed by
GitHub
Aug 26, 2023
Browse files
[Torch compile] Fix torch compile for controlnet (#4795)
Fix torch compile for controlnete
parent
fed88195
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/controlnet.py
src/diffusers/models/controlnet.py
+1
-1
No files found.
src/diffusers/models/controlnet.py
View file @
4f8853e4
...
...
@@ -723,7 +723,7 @@ class ControlNetModel(ModelMixin, ConfigMixin, FromOriginalControlnetMixin):
class_emb
=
self
.
class_embedding
(
class_labels
).
to
(
dtype
=
self
.
dtype
)
emb
=
emb
+
class_emb
if
"
addition_embed_type
"
i
n
self
.
config
:
if
self
.
config
.
addition_embed_type
i
s
not
None
:
if
self
.
config
.
addition_embed_type
==
"text"
:
aug_emb
=
self
.
add_embedding
(
encoder_hidden_states
)
...
...
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