"tmp not found" when I'm using pth conversion
qingxivar opened this issue · 0 comments
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'