Shortcut to convert Lora model.pt to model.ckpt (for use with Auto1111 or "gen_img_diffusers" script) #80
healthyfat
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Create new file inside /kohya_ss folder with *.bat extension (eg. merge.bat) and paste below code inside:
@echo off
set VENV_DIR=.\venv
set PYTHON=python
call %VENV_DIR%\Scripts\activate.bat
%PYTHON% networks\merge_lora.py --sd_model "C:\Programs\Automatic1111\models\Stable-diffusion/sd-v1-4.ckpt" --save_to "C:\Programs\Automatic1111\models\Stable-diffusion/lora_model.ckpt" --models "C:\Users\pdept\Desktop\AI pics\training\train data\model/lora_model.pt" --ratios 0.8 --save_precision fp16
pause
Now you can convert models with one click.
Beta Was this translation helpful? Give feedback.
All reactions