Skip to content

convert stable diffusion model to fp16/bf16 no-ema/ema-only safetensors

License

Notifications You must be signed in to change notification settings

Akegarasu/sd-model-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sd-model-converter

convert stable diffusion model to fp16/bf16 no-ema/ema-only safetensors

Usage

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:

{V71`3YV22UP2A9R2 LGVDN

About

convert stable diffusion model to fp16/bf16 no-ema/ema-only safetensors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages