mirror of
https://github.com/leejet/stable-diffusion.cpp
synced 2026-03-02 13:09:41 +01:00
| .. | ||
| .gitignore | ||
| convert.py | ||
| README.md | ||
| requirements.txt | ||
| vocab.json | ||
Model Convert Script
Requirements
pip install -r requirements.txt
Usage
usage: convert.py [-h] [--out_type {f32,f16,q4_0,q4_1,q5_0,q5_1,q8_0}] [--out_file OUT_FILE] model_path
Convert Stable Diffuison model to GGML compatible file format
positional arguments:
model_path model file path (*.pth, *.pt, *.ckpt, *.safetensors)
options:
-h, --help show this help message and exit
--out_type {f32,f16,q4_0,q4_1,q5_0,q5_1,q8_0}
output format (default: based on input)
--out_file OUT_FILE path to write to; default: based on input and current working directory