Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code running #5

Closed
CraraW opened this issue Apr 25, 2021 · 3 comments
Closed

code running #5

CraraW opened this issue Apr 25, 2021 · 3 comments

Comments

@CraraW
Copy link

CraraW commented Apr 25, 2021

Hi ,when I run the code with the command “ python -u main.py -c grid/icews14/config_srgcn.json --fast-dev-run”,there raise an error "AttributeError: 'NoneType' object has no attribute 'module'"in trianner.test() . I found your code has the "test.py". Does the trianner.test() function need to be called in "main.py"? Thanks !

  • Traceback (most recent call last):
    File "main.py", line 144, in
    trainer.test()
    File "/data2/xx/cuda_env/envs/temp/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 1191, in test
    self.__run_evaluation(test=True)
    File "/data2/xx/cuda_env/envs/temp/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 1479, in __run_evaluation
    can_run_test_step = self.__is_overriden('test_step') and self.__is_overriden('test_end')
    File "/data2/xx/cuda_env/envs/temp/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 476, in __is_overriden
    model = self.__get_model()
    File "/data2/xx/cuda_env/envs/temp/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 468, in __get_model
    return self.model.module if self.data_parallel else self.model
    AttributeError: 'NoneType' object has no attribute 'module'
@JiapengWu
Copy link
Owner

JiapengWu commented May 1, 2021 via email

@JiapengWu
Copy link
Owner

Hi, I have just uploaded some trained models, please check out the updated readme.

@CraraW
Copy link
Author

CraraW commented May 10, 2021

Hi, I have just uploaded some trained models, please check out the updated readme.

Thank you so much

@CraraW CraraW closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants