Skip to content

Commit f4466f0

Browse files
authored
fix error (#279)
1 parent 7fe1bf2 commit f4466f0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

python_coreml_stable_diffusion/mixed_bit_compression_apply.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ def op_selector(const):
136136
type=str,
137137
help=("The string key into --pre-analysis-json-path's baselines dict"
138138
))
139+
parser.add_argument(
140+
"--custom-vae-version",
141+
type=str,
142+
default=None,
143+
help=
144+
("Custom VAE checkpoint to override the pipeline's built-in VAE. "
145+
"If specified, the specified VAE will be converted instead of the one associated to the `--model-version` checkpoint. "
146+
"No precision override is applied when using a custom VAE."
147+
))
139148

140149
args = parser.parse_args()
141150

python_coreml_stable_diffusion/mixed_bit_compression_pre_analysis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import torch
2020
import torch.nn as nn
21+
import requests
2122
torch.set_grad_enabled(False)
2223

2324
from tqdm import tqdm, trange

0 commit comments

Comments
 (0)