Update pipeline.py
Browse files- pipeline.py +8 -1
pipeline.py
CHANGED
@@ -21,7 +21,14 @@ from diffusers.pipelines.flux.pipeline_output import FluxPipelineOutput
|
|
21 |
from diffusers.image_processor import PipelineImageInput
|
22 |
from typing import Any, Callable, Dict, List, Optional, Union
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
if is_torch_xla_available():
|
26 |
import torch_xla.core.xla_model as xm
|
27 |
|
|
|
21 |
from diffusers.image_processor import PipelineImageInput
|
22 |
from typing import Any, Callable, Dict, List, Optional, Union
|
23 |
|
24 |
+
from diffusers.utils import (
|
25 |
+
USE_PEFT_BACKEND,
|
26 |
+
is_torch_xla_available,
|
27 |
+
logging,
|
28 |
+
replace_example_docstring,
|
29 |
+
scale_lora_layers,
|
30 |
+
unscale_lora_layers,
|
31 |
+
)
|
32 |
if is_torch_xla_available():
|
33 |
import torch_xla.core.xla_model as xm
|
34 |
|