Update pipeline_void.py: handle diffusers/ subfolder for local paths
Browse files377 unmodified lines378379380381382383377 unmodified linesif os.path.isdir(pretrained_model_name_or_path):checkpoint_path = os.path.join(pretrained_model_name_or_path, checkpoint_name)else:checkpoint_path = hf_hub_download(repo_id=pretrained_model_name_or_path,377 unmodified lines378379380381382383384385386377 unmodified linesif os.path.isdir(pretrained_model_name_or_path):checkpoint_path = os.path.join(pretrained_model_name_or_path, checkpoint_name)if not os.path.exists(checkpoint_path):# Check parent dir (checkpoints at root, code in diffusers/)checkpoint_path = os.path.join(pretrained_model_name_or_path, "..", checkpoint_name)else:checkpoint_path = hf_hub_download(repo_id=pretrained_model_name_or_path,
diffusers/pipeline_void.py+3