Skip to content

KeyError: 'time_embed.0.weight' #478

Closed
@thibaudart

Description

@thibaudart

I launch a training, stop it and want to continue it.

I set the source model as the model of the latest epoch and the resume from saved training state to the latest state folder. Everyelse are similar.

I got this issue:

Traceback (most recent call last):
File "D:\kohya_ss\train_network.py", line 699, in
train(args)
File "D:\kohya_ss\train_network.py", line 126, in train
text_encoder, vae, unet, _ = train_util.load_target_model(args, weight_dtype)
File "D:\kohya_ss\library\train_util.py", line 2547, in load_target_model
text_encoder, vae, unet = model_util.load_models_from_stable_diffusion_checkpoint(args.v2, name_or_path)
File "D:\kohya_ss\library\model_util.py", line 877, in load_models_from_stable_diffusion_checkpoint
converted_unet_checkpoint = convert_ldm_unet_checkpoint(v2, state_dict, unet_config)
File "D:\kohya_ss\library\model_util.py", line 234, in convert_ldm_unet_checkpoint
new_checkpoint["time_embedding.linear_1.weight"] = unet_state_dict["time_embed.0.weight"]
KeyError: 'time_embed.0.weight'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions