Skip to content

When I load the model, error no volumes in dictionary #2

@AbdulrahmanAlsumaih

Description

@AbdulrahmanAlsumaih

I cannot use this function for inference

def load_params_vol(self, path, device):
ckpt = torch.load(path)
model = ckpt["model"]
self.volumes = model["volumes"].to(device)
self.mask_volmes = model["mask_volmes"].to(device)
self.features = model["features"].to(device)
self.implicit_surface.load_state_dict(model["implicit_surface"])
self.has_vol = True

it will not let me load your model from your GitHub, it says that there is no volumes in dictionary.

any idea what the issue is

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