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

Parameter of unet denoiser in the inference stage #7

Open
miaomiaomiao66 opened this issue Dec 5, 2024 · 0 comments
Open

Parameter of unet denoiser in the inference stage #7

miaomiaomiao66 opened this issue Dec 5, 2024 · 0 comments

Comments

@miaomiaomiao66
Copy link

Dear author, In the inference stage, the unet denoiser is defined in a straight forward way:
unet = create_model(**opt.unet_kwargs)
and the parameter is load from the pth file, for example 60_net_G.pth
however the following error occurred:
Missing key(s) in state_dict: "time_embed.0.weight", "time_embed.0.bias", "time_embed.2.weight", "time_embed.2.bias", "input_blocks.0.0.weight", "input_blocks.0.0.bias",
Unexpected key(s) in state_dict: "content_stream.res_0.conv_0.bias", "content_stream.res_0.conv_0.weight_orig", "content_stream.res_0.conv_0.weight_u",
After carefully go through the code and the essay, I found the checkpoint file is for DMTmodel, but not the unet denoiser,
Is this caused by parameter setting (**opt.unet_kwargs) or other factors?
I am looking forward to your reply and guidance!

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