Skip to content

Commit 11ba3a0

Browse files
committed
Add custom_vae_version in MBP pre-analysis
1 parent 96c044e commit 11ba3a0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

python_coreml_stable_diffusion/mixed_bit_compression_pre_analysis.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,15 @@ def main(args):
570570
default=7,
571571
type=int,
572572
)
573+
parser.add_argument(
574+
"--custom-vae-version",
575+
type=str,
576+
default=None,
577+
help=
578+
("Custom VAE checkpoint to override the pipeline's built-in VAE. "
579+
"If specified, the specified VAE will be converted instead of the one associated to the `--model-version` checkpoint. "
580+
"No precision override is applied when using a custom VAE."
581+
))
573582

574583
args = parser.parse_args()
575584
main(args)

0 commit comments

Comments
 (0)