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
5a2e0f71
Unverified
Commit
5a2e0f71
authored
Apr 18, 2025
by
YiYi Xu
Committed by
GitHub
Apr 18, 2025
Browse files
update output for Hidream transformer (#11366)
up
parent
ef47726e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/models/transformers/transformer_hidream_image.py
...iffusers/models/transformers/transformer_hidream_image.py
+2
-2
No files found.
src/diffusers/models/transformers/transformer_hidream_image.py
View file @
5a2e0f71
...
...
@@ -918,5 +918,5 @@ class HiDreamImageTransformer2DModel(ModelMixin, ConfigMixin, PeftAdapterMixin):
unscale_lora_layers
(
self
,
lora_scale
)
if
not
return_dict
:
return
(
output
,
hidden_states_masks
)
return
Transformer2DModelOutput
(
sample
=
output
,
mask
=
hidden_states_masks
)
return
(
output
,)
return
Transformer2DModelOutput
(
sample
=
output
)
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