mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
fixed LTX Video FP16
This commit is contained in:
parent
2a2853a893
commit
2dd9260197
@ -154,6 +154,8 @@ class LTXV:
|
|||||||
mixed_precision_transformer = False
|
mixed_precision_transformer = False
|
||||||
):
|
):
|
||||||
|
|
||||||
|
if dtype == torch.float16:
|
||||||
|
dtype = torch.bfloat16
|
||||||
self.mixed_precision_transformer = mixed_precision_transformer
|
self.mixed_precision_transformer = mixed_precision_transformer
|
||||||
self.distilled = any("lora" in name for name in model_filepath)
|
self.distilled = any("lora" in name for name in model_filepath)
|
||||||
model_filepath = [name for name in model_filepath if not "lora" in name ]
|
model_filepath = [name for name in model_filepath if not "lora" in name ]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user