Image-to-image generation with Flux.1 Kontext and OpenVINO
FLUX.1 Kontext [dev] is a 12 billion parameter rectified flow transformer capable of editing images based on text instructions. More details about model can be found in blog post and [model card](https://huggingface.co/black-forest-labs/FLUX.1-Konte
Content
Image-to-image generation with Flux.1 Kontext and OpenVINO
FLUX.1 Kontext [dev] is a 12 billion parameter rectified flow transformer capable of editing images based on text instructions. More details about model can be found in blog post and model card.
In this tutorial, we consider how to convert and optimize Flux.1 Kontext model using OpenVINO.
Note: Some demonstrated models can require at least 32GB RAM for conversion and running.
Notebook Contents
In this demonstration, you will learn how to perform image-to-image generation using Flux.1 Kontext and OpenVINO.
The tutorial consists of the following steps:
- Install prerequisites
- Collect Pytorch model pipeline
- Convert model to OpenVINO intermediate representation (IR) format
- Compress weights using NNCF
- Prepare OpenVINO Inference pipeline
- Run Image-to-Image generation
- Launch interactive demo
Installation Instructions
This is a self-contained example that relies solely on its own code.</br> We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For further details, please refer to [Installation Guide](../../README.md).
⚠️ EXPERIMENTAL NOTEBOOK
This notebook demonstrates a model that has not been fully validated with OpenVINO and is using a custom branch of optimum-intel. It may be fully supported and validated in the future.
Source and license
- Source
- Intel OpenVINO Notebooks
- Original
- openvinotoolkit/openvino_notebooks/notebooks/flux.1-kontext
- License
- Apache-2.0