Skip to content

[feat] Add ostris / Flex.2-preview pipeline #11485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/diffusers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
"EasyAnimateControlPipeline",
"EasyAnimateInpaintPipeline",
"EasyAnimatePipeline",
"Flex2Pipeline",
"FluxControlImg2ImgPipeline",
"FluxControlInpaintPipeline",
"FluxControlNetImg2ImgPipeline",
Expand Down Expand Up @@ -934,6 +935,7 @@
EasyAnimateControlPipeline,
EasyAnimateInpaintPipeline,
EasyAnimatePipeline,
Flex2Pipeline,
FluxControlImg2ImgPipeline,
FluxControlInpaintPipeline,
FluxControlNetImg2ImgPipeline,
Expand Down
6 changes: 6 additions & 0 deletions src/diffusers/pipelines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@
"AnimateDiffVideoToVideoPipeline",
"AnimateDiffVideoToVideoControlNetPipeline",
]
_import_structure["flex"] = [
"Flex2Pipeline",
"Flex2PipelineOutput",
]

_import_structure["flux"] = [
"FluxControlPipeline",
"FluxControlInpaintPipeline",
Expand Down Expand Up @@ -572,6 +577,7 @@
EasyAnimateInpaintPipeline,
EasyAnimatePipeline,
)
from .flex import Flex2Pipeline, Flex2PipelineOutput
from .flux import (
FluxControlImg2ImgPipeline,
FluxControlInpaintPipeline,
Expand Down
23 changes: 23 additions & 0 deletions src/diffusers/pipelines/flex/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from typing import TYPE_CHECKING

from ...utils import (
DIFFUSERS_SLOW_IMPORT,
_LazyModule,
)

_import_structure = {"pipeline_flex": ["Flex2Pipeline"],
"pipeline_output": ["Flex2PipelineOutput"]}

if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
from .pipeline_flex import Flex2Pipeline
from .pipeline_output import Flex2PipelineOutput

else:
import sys

sys.modules[__name__] = _LazyModule(
__name__,
globals()["__file__"],
_import_structure,
module_spec=__spec__,
)
Loading