Skip to content

errors about loading pre-train models #59

@harrywuhust2022

Description

@harrywuhust2022

KeyError: "Unable to open object (object 'branch1.0.conv.weight' doesn't exist)"

that's the error I have encounter when I write the code like this:

model_path = './mcnn_shtechA_660.h5'

model = MCNN()

trained_model = os.path.join(model_path)

load_net(trained_model, model)

model = model.to(device)

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