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
xuwx1
LightX2V
Commits
a4b666ca
"vscode:/vscode.git/clone" did not exist on "24974b75f8bb4f0a72ac610c589d9d09b3a7f4ec"
Commit
a4b666ca
authored
Jul 08, 2025
by
gushiqiao
Browse files
Fix bugs
parent
06f9891a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
app/gradio_demo.py
app/gradio_demo.py
+1
-1
app/gradio_demo_zh.py
app/gradio_demo_zh.py
+1
-1
lightx2v/common/offload/manager.py
lightx2v/common/offload/manager.py
+1
-1
lightx2v/models/networks/wan/infer/transformer_infer.py
lightx2v/models/networks/wan/infer/transformer_infer.py
+1
-1
lightx2v/models/networks/wan/infer/utils.py
lightx2v/models/networks/wan/infer/utils.py
+1
-1
No files found.
app/gradio_demo.py
View file @
a4b666ca
...
...
@@ -1022,4 +1022,4 @@ if __name__ == "__main__":
model_path
=
args
.
model_path
model_cls
=
args
.
model_cls
main
()
\ No newline at end of file
main
()
app/gradio_demo_zh.py
View file @
a4b666ca
...
...
@@ -1022,4 +1022,4 @@ if __name__ == "__main__":
model_path
=
args
.
model_path
model_cls
=
args
.
model_cls
main
()
\ No newline at end of file
main
()
lightx2v/common/offload/manager.py
View file @
a4b666ca
...
...
@@ -360,4 +360,4 @@ class MemoryBuffer:
self
.
insertion_index
=
0
self
.
used_mem
=
0
torch
.
cuda
.
empty_cache
()
gc
.
collect
()
\ No newline at end of file
gc
.
collect
()
lightx2v/models/networks/wan/infer/transformer_infer.py
View file @
a4b666ca
...
...
@@ -503,4 +503,4 @@ class WanTransformerInfer(BaseTransformerInfer):
if
self
.
clean_cuda_cache
:
del
y
,
c_gate_msa
torch
.
cuda
.
empty_cache
()
return
x
\ No newline at end of file
return
x
lightx2v/models/networks/wan/infer/utils.py
View file @
a4b666ca
...
...
@@ -169,4 +169,4 @@ def sinusoidal_embedding_1d(dim, position):
x
=
torch
.
cat
([
torch
.
cos
(
sinusoid
),
torch
.
sin
(
sinusoid
)],
dim
=
1
)
if
GET_DTYPE
()
==
"BF16"
:
x
=
x
.
to
(
torch
.
bfloat16
)
return
x
\ No newline at end of file
return
x
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