Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

KeyError after Conversion (safetensors -> ckpt)#30

Unanswered
apr-dhyoo asked this question inQ&A
Discussion options

After converting safetensors->ckpt file, in cmd "python scripts/img2img.py --init-img D:\RealImage\2-1.png --outdir D:\RealImage\Output --prompt beautiful --ckpt Deliberate- inpainting.ckpt" action was taken,

Global seed set to 42
Loading model from Deliberate-inpainting.ckpt
Traceback (most recent call last):
File "scripts/img2img.py", line 293, in
main()
File "scripts/img2img.py", line 200, in main
model = load_model_from_config(config, f"{opt.ckpt}")
File "scripts/img2img.py", line 33, in load_model_from_config
sd = pl_sd["state_dict"]
KeyError: 'state_dict'

I am getting the above error, is there any solution?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@apr-dhyoo

[8]ページ先頭

©2009-2025 Movatter.jp