rupeshs / lcm-openvino-converter

LCM OpenVINO model converter
20 stars 3 forks source link

Cannot convert LCM model unet to OpenVINO #4

Open mykeehu opened 3 weeks ago

mykeehu commented 3 weeks ago

I converted an SDXL model to LCM Diffusers format. It created the files, but the following files are in the unet folder:

config.json
diffusion_pytorch_model.bin.index.json
diffusion_pytorch_model-00001-of-00002.bin
diffusion_pytorch_model-00002-of-00002.bin

But it cannot convert this, I get an error: Error no file named diffusion_pytorch_model.bin found in directory C:\diffusers\scripts\models--local--MyPONYREAL_v10Final-LCM\snapshots\MyPONYREAL_v10Final-LCM\unet. How do I solve this problem?

YellowRoseCx commented 1 week ago

try it like this: python lcm-convert.py --no-half --model "C:\Your\Path\To\MyPONYREAL_v10Final" --name MyPONYREAL_v10Final-LCM

optimum-cli export openvino --model "C:\diffusers\scripts\models--local--MyPONYREAL_v10Final-LCM" "MyPONYREAL_v10Final-LCM-openvino" --task stable-diffusion-xl