Skip to content

About the training result of stage 1 #72

@fffanli

Description

@fffanli

After the training of stage 1, model.safetensors and optimizer.bin and random_states have been saved.However,I don't get the ip.bin and style_aware_bin.So I use the following codes for saving necessary ckpt but I don't get style in the inference result which is terrible. I'm confused about how to save the correct training ckpt .

if accelerator.is_main_process:
torch.save(accelerator.unwrap_model(ip_adapter).state_dict(),
os.path.join(save_path, "ip.bin"))
torch.save(accelerator.unwrap_model(style_aware_encoder).state_dict(),
os.path.join(save_path, "style_aware_encoder.bin"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions