1
0
Fork 0

apply lint

This commit is contained in:
Sean Sube 2023-03-07 23:57:39 -06:00
parent bc21165fd9
commit 7bd98d4a46
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ def convert_diffusion_textual_inversion(
encoder_model = path.join(encoder_path, "model.onnx") encoder_model = path.join(encoder_path, "model.onnx")
tokenizer_path = path.join(dest_path, "tokenizer") 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.") logger.info("ONNX model already exists, skipping.")
return return