From 6bdc704323a34a70fa0c534257c13efc5d74943c Mon Sep 17 00:00:00 2001 From: Anna Likholat Date: Fri, 24 Jan 2025 07:18:06 +0100 Subject: [PATCH] [Image Generation] Image2Image for FLUX (#1621) ![img2img_flux_lite](https://github.com/user-attachments/assets/00d860c9-5e1a-46c3-8403-12e47e20d6b3) ![img2img_flux_dev](https://github.com/user-attachments/assets/13b966f4-6753-45b9-9a3f-2d5f6928f895) ![img2img_flux_schnell](https://github.com/user-attachments/assets/b6b675f5-1e37-4390-a678-b69c77bedc61) --------- Co-authored-by: Ilya Lavrenov --- SUPPORTED_MODELS.md | 2 +- .../image_generation/image2image_pipeline.hpp | 8 + .../src/image_generation/flux_pipeline.hpp | 150 ++++++++++-------- .../image_generation/image2image_pipeline.cpp | 21 +++ .../src/image_generation/image_processor.cpp | 2 + .../schedulers/euler_ancestral_discrete.cpp | 2 +- .../schedulers/flow_match_euler_discrete.cpp | 45 ++++++ .../schedulers/flow_match_euler_discrete.hpp | 9 +- .../schedulers/ischeduler.hpp | 10 ++ .../openvino_genai/py_openvino_genai.pyi | 3 + src/python/py_image_generation_pipelines.cpp | 1 + .../tests/test_cli_image.py | 7 +- 12 files changed, 190 insertions(+), 70 deletions(-) diff --git a/SUPPORTED_MODELS.md b/SUPPORTED_MODELS.md index 3064fb58c1..c5c55b8d73 100644 --- a/SUPPORTED_MODELS.md +++ b/SUPPORTED_MODELS.md @@ -242,7 +242,7 @@ The pipeline can work with other similar topologies produced by `optimum-intel` Flux Supported - Not supported + Supported Not supported