0

Text-to-image generation with Qwen-Image and OpenVINO

Qwen-Image, an image generation foundation model in the Qwen series that achieves significant advances in complex text rendering and precise image editing. Experiments show strong general capabilities in both image generation and editing, with exceptional performance in text rendering, especially fo

Example · مثال

Content

Text-to-image generation with Qwen-Image and OpenVINO

Qwen-Image, an image generation foundation model in the Qwen series that achieves significant advances in complex text rendering and precise image editing. Experiments show strong general capabilities in both image generation and editing, with exceptional performance in text rendering, especially for Chinese. More details about model can be found in blog post and model card.

In this tutorial we consider how to convert and optimize Qwen-Image model using OpenVINO.

Note: Some demonstrated models can require at least 64GB RAM for conversion and running.

Notebook Contents

In this demonstration, you will learn how to perform text-to-image generation using Qwen-Image 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 Text-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/qwen-image
License
Apache-2.0