Spaces:
Runtime error
Runtime error
use_precompiled = False
Browse files- optimization.py +1 -1
optimization.py
CHANGED
|
@@ -129,7 +129,7 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
|
|
| 129 |
# Quantize text encoder
|
| 130 |
quantize_(pipeline.text_encoder, Int8WeightOnlyConfig())
|
| 131 |
|
| 132 |
-
use_precompiled =
|
| 133 |
precompiled_repo = os.getenv("WAN_PRECOMPILED_REPO", "Fabrice-TIERCELIN/Wan_2.2_compiled")
|
| 134 |
|
| 135 |
if use_precompiled:
|
|
|
|
| 129 |
# Quantize text encoder
|
| 130 |
quantize_(pipeline.text_encoder, Int8WeightOnlyConfig())
|
| 131 |
|
| 132 |
+
use_precompiled = False
|
| 133 |
precompiled_repo = os.getenv("WAN_PRECOMPILED_REPO", "Fabrice-TIERCELIN/Wan_2.2_compiled")
|
| 134 |
|
| 135 |
if use_precompiled:
|