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
d50b8884
"test/vscode:/vscode.git/clone" did not exist on "0dcb3496cf3e274386272e0a4430282f9ddf1169"
Commit
d50b8884
authored
Aug 06, 2025
by
helloyongyang
Browse files
fix bug
parent
08be2ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lightx2v/models/schedulers/wan/audio/scheduler.py
lightx2v/models/schedulers/wan/audio/scheduler.py
+1
-1
No files found.
lightx2v/models/schedulers/wan/audio/scheduler.py
View file @
d50b8884
...
@@ -8,7 +8,7 @@ from lightx2v.models.schedulers.scheduler import BaseScheduler
...
@@ -8,7 +8,7 @@ from lightx2v.models.schedulers.scheduler import BaseScheduler
from
lightx2v.utils.envs
import
*
from
lightx2v.utils.envs
import
*
def
unsqueeze_to_ndim
(
in_tensor
:
Tensor
,
tgt_n_dim
:
int
):
def
unsqueeze_to_ndim
(
in_tensor
,
tgt_n_dim
):
if
in_tensor
.
ndim
>
tgt_n_dim
:
if
in_tensor
.
ndim
>
tgt_n_dim
:
warnings
.
warn
(
f
"the given tensor of shape
{
in_tensor
.
shape
}
is expected to unsqueeze to
{
tgt_n_dim
}
, the original tensor will be returned"
)
warnings
.
warn
(
f
"the given tensor of shape
{
in_tensor
.
shape
}
is expected to unsqueeze to
{
tgt_n_dim
}
, the original tensor will be returned"
)
return
in_tensor
return
in_tensor
...
...
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