-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi,
Thanks for sharing the codes for ANet. The ANet is trained and validated successfully but an error occurred in loading the checkpoint. Here are the details:
10:02:04 Load checkpoint from model_epoch_1.pth
Traceback (most recent call last):
File "/home/my_project_dir/script/run.py", line 62, in
train_and_validate(cfg, solver)
File "/home/my_project_dir/script/run.py", line 35, in train_and_validate
solver.load("model_epoch_%d.pth" % best_epoch)
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torchdrug-0.2.1-py3.9.egg/torchdrug/core/engine.py", line 242, in load
self.model.load_state_dict(state["model"], strict=strict)
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2138, in load_state_dict
load(self, state_dict)
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2120, in load
module._load_from_state_dict(
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2024, in _load_from_state_dict
if param.is_meta and not input_param.is_meta and not assign_to_params_buffers:
AttributeError: 'Graph' object has no attribute 'is_meta'