Skip to content

Problem on Prediction #2

@LTJer

Description

@LTJer

I am trying running a prediction job through the whole "surface_DOS_dataset" and the "Surf_model.pth" in the 'saved_models' folder

command:
python main.py --data_path='../surface_DOS_dataset/' --model_path='Surf_model.pth' --run_mode='Predict'

The modifications in config file:

LMBTR_descriptor: "False" 
SOAP_descriptor: "False"

error message:

File "main.py", line 508, in <module>
    main()
  File "main.py", line 301, in main
    dataset, config["Training"]["loss"], config["Job"]
  File "/u/au/sa/liutsungwei/scratch/DOS/MatDeepLearn_DOS/matdeeplearn/training/training.py", line 663, in predict
    dos_out, scaling = model(data)
  File "/u/au/sa/liutsungwei/scratch/conda/envs/MDL/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/u/au/sa/liutsungwei/scratch/DOS/MatDeepLearn_DOS/matdeeplearn/models/dospredict.py", line 114, in forward
    out = self.conv_list[i](out, data.edge_index, data.edge_attr)
  File "/u/au/sa/liutsungwei/scratch/conda/envs/MDL/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/u/au/sa/liutsungwei/scratch/DOS/MatDeepLearn_DOS/matdeeplearn/models/dospredict.py", line 253, in forward
    out = self.propagate(edge_index, x=x, edge_attr=edge_attr, size=size)
  File "/u/au/sa/liutsungwei/scratch/conda/envs/MDL/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 454, in propagate
    out = self.aggregate(out, **aggr_kwargs)
  File "/u/au/sa/liutsungwei/scratch/conda/envs/MDL/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 578, in aggregate
    return self.aggr_module(inputs, index, ptr=ptr, dim_size=dim_size,
  File "/u/au/sa/liutsungwei/scratch/conda/envs/MDL/lib/python3.7/site-packages/torch/nn/modules/module.py", line 948, in __getattr__
    type(self).__name__, name))
AttributeError: 'GC_block' object has no attribute 'aggr_module'

Is there anything wrong with my input? or command?

Thanks a lot

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