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
chenpangpang
ComfyUI
Commits
605e64f6
Commit
605e64f6
authored
Jun 12, 2024
by
comfyanonymous
Browse files
Fix lowvram issue.
parent
0eaa34ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/ldm/modules/diffusionmodules/mmdit.py
comfy/ldm/modules/diffusionmodules/mmdit.py
+1
-1
No files found.
comfy/ldm/modules/diffusionmodules/mmdit.py
View file @
605e64f6
...
...
@@ -934,7 +934,7 @@ class MMDiT(nn.Module):
context
=
self
.
context_processor
(
context
)
hw
=
x
.
shape
[
-
2
:]
x
=
self
.
x_embedder
(
x
)
+
self
.
cropped_pos_embed
(
hw
,
device
=
x
.
device
).
to
(
dtype
=
x
.
dtype
)
x
=
self
.
x_embedder
(
x
)
+
self
.
cropped_pos_embed
(
hw
,
device
=
x
.
device
).
to
(
dtype
=
x
.
dtype
,
device
=
x
.
device
)
c
=
self
.
t_embedder
(
t
,
dtype
=
x
.
dtype
)
# (N, D)
if
y
is
not
None
and
self
.
y_embedder
is
not
None
:
y
=
self
.
y_embedder
(
y
)
# (N, D)
...
...
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