bmaltais / kohya_ss

Apache License 2.0
9.75k stars 1.25k forks source link

LCM converter script #1760

Closed KarelAI closed 10 months ago

KarelAI commented 11 months ago

Please add a section in utilities for the lcm-convert.py script.

https://github.com/vladmandic/automatic/blob/master/cli/lcm-convert.py

bmaltais commented 11 months ago

A custom conversion script and the GUI for it is now in the dev2 branch for testing.

image

Give it a try.

megvadulthangya commented 1 month ago

Hi Guys!

This thing is working? Is there a tutorial what i can follow how to work with this? Couse im not sure about...

Im just a noob, dont do anything in Kohya_ss but first I try to convert SDXL models to LCM.... but i got errors....

I tryed to convert first the volumetric lighting style v2.safetensors

then i go choose almost the tinyest what i have in my lora folder RPGBarbariansXL.safetensors

Both giving me the same errors:

Executing command: ~/kohya_ss/venv/bin/python ~/kohya_ss/tools/lcm_convert.py --lora-scale 1 --model ~/kohya_ss/volumetric lighting style v2.safetensors --name ~/kohya_ss/outputs/volumetric_lighting.safeten sors --sdxl 2024-10-27 09:27:56.771217: E external/local_xla/xla/stream_executor/cuda/cuda_d nn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-10-27 09:27:56.771262: E external/local_xla/xla/stream_executor/cuda/cuda_f ft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-10-27 09:27:56.772090: E external/local_xla/xla/stream_executor/cuda/cuda_b las.cc:1515] Unable to register cuBLAS factory: Attempting to register factory f or plugin cuBLAS when one has already been registered 2024-10-27 09:27:56.776580: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in perfor mance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild Ten sorFlow with the appropriate compiler flags. 2024-10-27 09:27:57.417633: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc: 38] TF-TRT Warning: Could not find TensorRT 2024-10-27 09:28:02 ERROR An error occurred: lcm_convert.py:74 'time_embed.0.weight' 09:28:03-436851 INFO Done extracting...