Skip to content

Unable to load the trained model for visualization #7

@amayuelas

Description

@amayuelas

When running the visualize script, the system does not seem to be loading the model correctly

python script/visualize.py -c config/fb15k237_visualize.yaml --checkpoint path/to/epoch/model_epoch_10.pth

This is what it returns:

RuntimeError: Error(s) in loading state_dict for LogicalQuery:
	While copying the parameter named "fact_graph", expected torch.Tensor or Tensor-like object from checkpoint but received <class 'torchdrug.data.graph.Graph'>
	While copying the parameter named "graph", expected torch.Tensor or Tensor-like object from checkpoint but received <class 'torchdrug.data.graph.Graph'>

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