Hello, I have an urgent issue that I need to resolve. Why am I getting an error that says "tmp not found" when I'm using pth conversion? Please, if you could take a moment to answer, I would greatly appreciate it. It's extremely urgent. Thank you.
python ./scripts/convert_controlnet_to_diffusers.py --checkpoint_path /data//ControlNet-for-Diffusers-main/control_sd15_scribble/control_sd15_scribble.pth --dump_path control_sd15_scribble --device cpu
global_step key not found in model
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ /data//ControlNet-for-Diffusers-main/diffusers/./scripts/convert_controlnet_to_diffusers.py: โ
โ 105 in โ
โ โ
โ 102 โ parser.add_argument("--device", type=str, help="Device to use (e.g. cpu, cuda:0, cud โ
โ 103 โ args = parser.parse_args() โ
โ 104 โ โ
โ โฑ 105 โ pipe = load_pipeline_from_control_net_ckpt( โ
โ 106 โ โ checkpoint_path=args.checkpoint_path, โ
โ 107 โ โ original_config_file=args.original_config_file, โ
โ 108 โ โ image_size=args.image_size, โ
โ โ
โ /data//anaconda3/envs/controlnet/lib/python3.8/site-packages/diffusers/pipelines/stable_diff โ
โ usion/convert_from_ckpt.py:1475 in load_pipeline_from_control_net_ckpt โ
โ โ
โ 1472 โ โ โ โ โ ) โ
โ 1473 โ โ โ โ โ open(original_config_file, "wb").write(r.content) โ
โ 1474 โ โ โ
โ โฑ 1475 โ โ original_config = OmegaConf.load(original_config_file) โ
โ 1476 โ โ
โ 1477 โ if num_in_channels is not None: โ
โ 1478 โ โ original_config["model"]["params"]["unet_config"]["params"]["in_channels"] = nu โ
โ โ
โ /data//anaconda3/envs/controlnet/lib/python3.8/site-packages/omegaconf/omegaconf.py:183 in โ
โ load โ
โ โ
โ 180 โ โ from .utils import get_yaml_loader โ
โ 181 โ โ โ
โ 182 โ โ if isinstance(file, (str, pathlib.Path)): โ
โ โฑ 183 โ โ โ with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f: โ
โ 184 โ โ โ โ obj = yaml.load(f, Loader=get_yaml_loader()) โ
โ 185 โ โ elif getattr(file_, "read", None): โ
โ 186 โ โ โ obj = yaml.load(file_, Loader=get_yaml_loader()) โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp8594uj16/inference.yaml'