diff --git a/api/onnx_web/convert/diffusion/textual_inversion.py b/api/onnx_web/convert/diffusion/textual_inversion.py index df91181e..e05a9e14 100644 --- a/api/onnx_web/convert/diffusion/textual_inversion.py +++ b/api/onnx_web/convert/diffusion/textual_inversion.py @@ -30,7 +30,11 @@ def convert_diffusion_textual_inversion( encoder_model = path.join(encoder_path, "model.onnx") tokenizer_path = path.join(dest_path, "tokenizer") - if path.exists(dest_path) and path.exists(encoder_model) and path.exists(tokenizer_path): + if ( + path.exists(dest_path) + and path.exists(encoder_model) + and path.exists(tokenizer_path) + ): logger.info("ONNX model already exists, skipping.") return