Skip to content

Commit e4fc439

Browse files
committed
patch around import
1 parent 06fdf87 commit e4fc439

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/diffusers/quantization/quantize.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@
3737
DiffusionPipeline,
3838
FluxPipeline,
3939
LTXConditionPipeline,
40-
LTXLatentUpsamplePipeline,
4140
StableDiffusion3Pipeline,
4241
)
42+
try:
43+
from diffusers import LTXLatentUpsamplePipeline
44+
except ImportError:
45+
LTXLatentUpsamplePipeline = None
46+
4347
from onnx_utils.export import generate_fp8_scales, modelopt_export_sd
4448
from tqdm import tqdm
4549
from utils import (

0 commit comments

Comments
 (0)