convert stable diffusion model to fp16/bf16 no-ema/ema-only safetensors
default fp32, full model.
-f: file path -t: convert type full/ema-only/no-ema -p: precision fp32(full)/fp16/bf16 -st: safe-tensors model format
# convert to ema only
python convert.py -f path/to/model.ckpt -t ema-only
or
python convert.py -f path/to/model.ckpt -t prune
# convert to ema only, fp16
python convert.py -f path/to/model.ckpt -t prune -p fp16
# convert to ema only, fp16, safe-tensors
python convert.py -f path/to/model.ckpt -t prune -p fp16 --safe-tensors
# convert to fp16
python convert.py -f path/to/model.ckpt -p fp16
before:
Anything-V3.0.ckpt 7.17 GB
after: