-
Notifications
You must be signed in to change notification settings - Fork 52
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
Question about Generate with Stability AI codebase #27
Comments
have you solved this? |
Sorry I just saw the issue. Can you give me the full message (incompatible keys and missing keys)? |
Sure here is the full message , |
The first part of the error (L1 to L4) are due to the model loading and keys of the ckpts. The other part is due to problems with the diffuser library. I am not very familiar with it. My guess is that you should try to install a previous version of the library. |
I mended the first part but still the same. Nothing changed. |
I haven't solved it yet can you help me fix |
Hey author, Great Work but I am bit confused in this generate with Stability AI codebase. As you told to append the lines :
state_dict = torch.load(path/to/ldm/checkpoint_000.pth)['ldm_decoder']
msg = model.first_stage_model.load_state_dict(state_dict, strict=False)
print(f"loaded LDM decoder state_dict with message\n{msg}")
print("you should check that the decoder keys are correctly matched")
I appended it in txt2img file and ran it as
python /working/another.py --prompt "a professional photograph of an astronaut riding a horse" --ckpt /working/v2-1_512-ema-pruned.ckpt --config /working/v2-inference.yaml --H 256 --W 256
but i am getting this error
state_dict = torch.load('output/imgs/checkpoint_000.pth')
loaded LDM decoder state_dict with message
_IncompatibleKeys(missing_keys=['encoder.conv_in.weight', 'encoder.conv_in.bias', 'encoder.down.0.block.0.norm1.weight', 'encoder.down.0.block.0.norm1.bias', 'encoder.down.0.block.0.conv1.weight', 'encoder.down.0.block.0.conv1.bias', 'encoder.down.0.block.0.norm2.weight', 'encoder.down.0.block.0.norm2.bias', 'encoder.down.0.block.0.conv2.weight', 'encoder.down.0.block.0.conv2.bias', 'encoder.down.0.block.1.norm1.weight', 'encoder.down.0.block.1.norm1.bias', 'encoder.down.0.block.1.conv1.weight', 'encoder.down.0.block.1.conv1.bias', 'en.........)
How to fix this ??
The text was updated successfully, but these errors were encountered: