-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
Hi Crara,
Yes. To run test, please visit readme.md and check the usage. To be honest I never fully run the training until convergence, so I didn’t really use this line ever. I have updated a version that removes this line.
Best,
Paul
On Apr 25, 2021, at 9:42 AM, CraraW ***@***.******@***.***>> wrote:
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'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#5>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFN2LV4YELBLSUL6V7QOBI3TKQL5LANCNFSM43RJQLRA>.
|
Hi, I have just uploaded some trained models, please check out the updated readme. |
Thank you so much |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 !
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'
The text was updated successfully, but these errors were encountered: