1
0
Fork 0

avoid joining none path

This commit is contained in:
Sean Sube 2023-04-29 21:16:23 -05:00
parent 5760be710a
commit 4eba9a6400
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ def convert_diffusion_diffusers(
dtype = conversion.torch_dtype() dtype = conversion.torch_dtype()
logger.debug("using Torch dtype %s for pipeline", dtype) logger.debug("using Torch dtype %s for pipeline", dtype)
config_path = path.join(conversion.model_path, "config", pipe_config) config_path = None if pipe_config is None else path.join(conversion.model_path, "config", pipe_config)
dest_path = path.join(conversion.model_path, name) dest_path = path.join(conversion.model_path, name)
model_index = path.join(dest_path, "model_index.json") model_index = path.join(dest_path, "model_index.json")
model_cnet = path.join(dest_path, "cnet", ONNX_MODEL) model_cnet = path.join(dest_path, "cnet", ONNX_MODEL)