Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"tmp not found" when I'm using pth conversion #47

Open
qingxivar opened this issue Oct 10, 2023 · 0 comments
Open

"tmp not found" when I'm using pth conversion #47

qingxivar opened this issue Oct 10, 2023 · 0 comments

Comments

@qingxivar
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant