Skip to content

Commit 75bb6d2

Browse files
authored
Fix ONNX conversion script opset argument type (#739)
The opset argument should be an `int` but was set as a `str`.
1 parent 906e410 commit 75bb6d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/convert_stable_diffusion_checkpoint_to_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def convert_models(model_path: str, output_path: str, opset: int):
206206
parser.add_argument(
207207
"--opset",
208208
default=14,
209-
type=str,
209+
type=int,
210210
help="The version of the ONNX operator set to use.",
211211
)
212212

0 commit comments

Comments
 (0)