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
dd870f3f
Commit
dd870f3f
authored
Sep 04, 2025
by
Yang Yong(雍洋)
Committed by
GitHub
Sep 04, 2025
Browse files
remove bucket_shape log (#288)
parent
e3663f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lightx2v/models/runners/wan/wan_audio_runner.py
lightx2v/models/runners/wan/wan_audio_runner.py
+2
-2
No files found.
lightx2v/models/runners/wan/wan_audio_runner.py
View file @
dd870f3f
...
@@ -122,14 +122,14 @@ def resize_image(img, resize_mode="adaptive", bucket_shape=None, fixed_area=None
...
@@ -122,14 +122,14 @@ def resize_image(img, resize_mode="adaptive", bucket_shape=None, fixed_area=None
bucket_config
=
{}
bucket_config
=
{}
for
ratio
,
resolutions
in
bucket_shape
.
items
():
for
ratio
,
resolutions
in
bucket_shape
.
items
():
bucket_config
[
float
(
ratio
)]
=
np
.
array
(
resolutions
,
dtype
=
np
.
int64
)
bucket_config
[
float
(
ratio
)]
=
np
.
array
(
resolutions
,
dtype
=
np
.
int64
)
logger
.
info
(
f
"[wan_audio] use custom bucket_shape:
{
bucket_config
}
"
)
#
logger.info(f"[wan_audio] use custom bucket_shape: {bucket_config}")
else
:
else
:
bucket_config
=
{
bucket_config
=
{
0.667
:
np
.
array
([[
480
,
832
],
[
544
,
960
],
[
720
,
1280
]],
dtype
=
np
.
int64
),
0.667
:
np
.
array
([[
480
,
832
],
[
544
,
960
],
[
720
,
1280
]],
dtype
=
np
.
int64
),
1.500
:
np
.
array
([[
832
,
480
],
[
960
,
544
],
[
1280
,
720
]],
dtype
=
np
.
int64
),
1.500
:
np
.
array
([[
832
,
480
],
[
960
,
544
],
[
1280
,
720
]],
dtype
=
np
.
int64
),
1.000
:
np
.
array
([[
480
,
480
],
[
576
,
576
],
[
704
,
704
],
[
960
,
960
]],
dtype
=
np
.
int64
),
1.000
:
np
.
array
([[
480
,
480
],
[
576
,
576
],
[
704
,
704
],
[
960
,
960
]],
dtype
=
np
.
int64
),
}
}
logger
.
info
(
f
"[wan_audio] use default bucket_shape:
{
bucket_config
}
"
)
#
logger.info(f"[wan_audio] use default bucket_shape: {bucket_config}")
ori_height
=
img
.
shape
[
-
2
]
ori_height
=
img
.
shape
[
-
2
]
ori_weight
=
img
.
shape
[
-
1
]
ori_weight
=
img
.
shape
[
-
1
]
...
...
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