diffsynth-engine 0.4.3.dev5__py3-none-any.whl → 0.4.3.dev6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- diffsynth_engine/pipelines/wan_video.py +13 -1
- {diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/METADATA +1 -1
- {diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/RECORD +6 -6
- {diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/WHEEL +0 -0
- {diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/licenses/LICENSE +0 -0
- {diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/top_level.txt +0 -0
|
@@ -417,7 +417,7 @@ class WanVideoPipeline(BasePipeline):
|
|
|
417
417
|
cfg_scale_ = cfg_scale if isinstance(cfg_scale, float) else cfg_scale[0]
|
|
418
418
|
|
|
419
419
|
timestep = timestep * mask[:, :, :, ::2, ::2].flatten() # seq_len
|
|
420
|
-
timestep = timestep.to(dtype=self.
|
|
420
|
+
timestep = timestep.to(dtype=self.dtype, device=self.device)
|
|
421
421
|
# Classifier-free guidance
|
|
422
422
|
noise_pred = self.predict_noise_with_cfg(
|
|
423
423
|
model=model,
|
|
@@ -574,6 +574,18 @@ class WanVideoPipeline(BasePipeline):
|
|
|
574
574
|
if config.offload_mode is not None:
|
|
575
575
|
pipe.enable_cpu_offload(config.offload_mode)
|
|
576
576
|
|
|
577
|
+
if config.model_dtype == torch.float8_e4m3fn:
|
|
578
|
+
pipe.dtype = torch.bfloat16 # compute dtype
|
|
579
|
+
pipe.enable_fp8_autocast(
|
|
580
|
+
model_names=["dit"], compute_dtype=pipe.dtype, use_fp8_linear=config.use_fp8_linear
|
|
581
|
+
)
|
|
582
|
+
|
|
583
|
+
if config.t5_dtype == torch.float8_e4m3fn:
|
|
584
|
+
pipe.dtype = torch.bfloat16 # compute dtype
|
|
585
|
+
pipe.enable_fp8_autocast(
|
|
586
|
+
model_names=["text_encoder"], compute_dtype=pipe.dtype, use_fp8_linear=config.use_fp8_linear
|
|
587
|
+
)
|
|
588
|
+
|
|
577
589
|
if config.parallelism > 1:
|
|
578
590
|
return ParallelWrapper(
|
|
579
591
|
pipe,
|
|
@@ -135,7 +135,7 @@ diffsynth_engine/pipelines/qwen_image.py,sha256=3S-eL2GY-c0g9nqDyYByr9RV-kdY589m
|
|
|
135
135
|
diffsynth_engine/pipelines/sd_image.py,sha256=5cIIknh2M-fOqj7urKi9nZ40yc1LnvepbH_Af7SF4UA,17789
|
|
136
136
|
diffsynth_engine/pipelines/sdxl_image.py,sha256=otv1T_0fhX3UcIoKbKCqb47Yge6xg0fPM0ry-uPEanI,21548
|
|
137
137
|
diffsynth_engine/pipelines/utils.py,sha256=lk7sFGEk-fGjgadLpwwppHKG-yZ0RC-4ZmHW7pRRe8A,473
|
|
138
|
-
diffsynth_engine/pipelines/wan_video.py,sha256=
|
|
138
|
+
diffsynth_engine/pipelines/wan_video.py,sha256=lb0FrMFxQ6BNfOUErveWcnzPJa1gq0yYtMXUZjNTOuU,26126
|
|
139
139
|
diffsynth_engine/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
140
140
|
diffsynth_engine/processor/canny_processor.py,sha256=hV30NlblTkEFUAmF_O-LJrNlGVM2SFrqq6okfF8VpOo,602
|
|
141
141
|
diffsynth_engine/processor/depth_processor.py,sha256=dQvs3JsnyMbz4dyI9QoR8oO-mMFBFAgNvgqeCoaU5jk,1532
|
|
@@ -168,8 +168,8 @@ diffsynth_engine/utils/parallel.py,sha256=Z9jqCv4mLV4JyXR3uTHyv1rujPiKU8PSCbAfiN
|
|
|
168
168
|
diffsynth_engine/utils/platform.py,sha256=2lXdw6YkqcRONCeT98n4cyg1Ii8Ybbyj2Ns72Se9tlk,496
|
|
169
169
|
diffsynth_engine/utils/prompt.py,sha256=YItMchoVzsG6y-LB4vzzDUWrkhKRVlt1HfVhxZjSxMQ,280
|
|
170
170
|
diffsynth_engine/utils/video.py,sha256=Ne0rd2lb59UT1q5EotpjlY7OT8F9oTCFDyo1ST77uoQ,1004
|
|
171
|
-
diffsynth_engine-0.4.3.
|
|
172
|
-
diffsynth_engine-0.4.3.
|
|
173
|
-
diffsynth_engine-0.4.3.
|
|
174
|
-
diffsynth_engine-0.4.3.
|
|
175
|
-
diffsynth_engine-0.4.3.
|
|
171
|
+
diffsynth_engine-0.4.3.dev6.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
|
|
172
|
+
diffsynth_engine-0.4.3.dev6.dist-info/METADATA,sha256=co6yukvv0EkCz5Bb5t_fd2swvqoajL9SC6cYhLVszII,1110
|
|
173
|
+
diffsynth_engine-0.4.3.dev6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
174
|
+
diffsynth_engine-0.4.3.dev6.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
|
|
175
|
+
diffsynth_engine-0.4.3.dev6.dist-info/RECORD,,
|
|
File without changes
|
{diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{diffsynth_engine-0.4.3.dev5.dist-info → diffsynth_engine-0.4.3.dev6.dist-info}/top_level.txt
RENAMED
|
File without changes
|