This repo provides a simple ldm super resolution example of how to use Optimum-intel to optimize and accelerate inference of Hugging Face Model Ldm-super-resolution with OpenVINO on Intel CPU.
- optimum-intel==1.5.2 (include openvino)
- openvino
- openvino-dev
- diffusers
- pytorch >= 1.9.1
- onnx >= 1.13.0
# Install optimum-intel
conda create -n optimum-intel python=3.8
conda activate optimum-intel
python -m pip install -r requirements.txt
# Install diffusers
# by pip
pip install --upgrade diffusers[torch]
# by conda
conda install -c conda-forge diffusers
python HF-ldm4x-pipeline.py
python ov-ldm4x-model-convert.py
python ov-ldm4x-pipeline.py
- ldm super resolution model int8 quantization by NNCF