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
5873377a
Unverified
Commit
5873377a
authored
Apr 18, 2025
by
YiYi Xu
Committed by
GitHub
Apr 18, 2025
Browse files
[Wan2.1-FLF2V] update conversion script (#11365)
update scheuler config in conversion sript
parent
5a2e0f71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
scripts/convert_wan_to_diffusers.py
scripts/convert_wan_to_diffusers.py
+2
-1
No files found.
scripts/convert_wan_to_diffusers.py
View file @
5873377a
...
...
@@ -433,8 +433,9 @@ if __name__ == "__main__":
vae
=
convert_vae
()
text_encoder
=
UMT5EncoderModel
.
from_pretrained
(
"google/umt5-xxl"
)
tokenizer
=
AutoTokenizer
.
from_pretrained
(
"google/umt5-xxl"
)
flow_shift
=
16.0
if
"FLF2V"
in
args
.
model_type
else
3.0
scheduler
=
UniPCMultistepScheduler
(
prediction_type
=
"flow_prediction"
,
use_flow_sigmas
=
True
,
num_train_timesteps
=
1000
,
flow_shift
=
3.0
prediction_type
=
"flow_prediction"
,
use_flow_sigmas
=
True
,
num_train_timesteps
=
1000
,
flow_shift
=
flow_shift
)
if
"I2V"
in
args
.
model_type
or
"FLF2V"
in
args
.
model_type
:
...
...
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