Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
ca9e247
1
Parent(s):
a67d007
Update pipeline.py
Browse files- pipeline.py +1 -3
pipeline.py
CHANGED
@@ -3,6 +3,7 @@ import numpy as np
|
|
3 |
from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5TokenizerFast, CLIPTextModelWithProjection
|
4 |
from diffusers import FlowMatchEulerDiscreteScheduler, AutoPipelineForImage2Image, FluxPipeline, FluxTransformer2DModel
|
5 |
from diffusers import StableDiffusion3Pipeline, AutoencoderKL, DiffusionPipeline
|
|
|
6 |
from diffusers.loaders import FluxLoraLoaderMixin, FromSingleFileMixin, SD3LoraLoaderMixin
|
7 |
from diffusers.utils import (
|
8 |
USE_PEFT_BACKEND,
|
@@ -67,9 +68,6 @@ def prepare_timesteps(
|
|
67 |
|
68 |
# FLUX pipeline function
|
69 |
class FluxWithCFGPipeline(DiffusionPipeline, FluxLoraLoaderMixin, FromSingleFileMixin):
|
70 |
-
_optional_components = []
|
71 |
-
_callback_tensor_inputs = ["latents", "prompt_embeds"]
|
72 |
-
|
73 |
def __init__(
|
74 |
self,
|
75 |
scheduler: FlowMatchEulerDiscreteScheduler,
|
|
|
3 |
from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5TokenizerFast, CLIPTextModelWithProjection
|
4 |
from diffusers import FlowMatchEulerDiscreteScheduler, AutoPipelineForImage2Image, FluxPipeline, FluxTransformer2DModel
|
5 |
from diffusers import StableDiffusion3Pipeline, AutoencoderKL, DiffusionPipeline
|
6 |
+
from diffusers.image_processor import VaeImageProcessor
|
7 |
from diffusers.loaders import FluxLoraLoaderMixin, FromSingleFileMixin, SD3LoraLoaderMixin
|
8 |
from diffusers.utils import (
|
9 |
USE_PEFT_BACKEND,
|
|
|
68 |
|
69 |
# FLUX pipeline function
|
70 |
class FluxWithCFGPipeline(DiffusionPipeline, FluxLoraLoaderMixin, FromSingleFileMixin):
|
|
|
|
|
|
|
71 |
def __init__(
|
72 |
self,
|
73 |
scheduler: FlowMatchEulerDiscreteScheduler,
|