justanhduc / graphx-conv

Official implementation of GraphX-Convolution
https://justanhduc.github.io/2019/09/29/GraphX-Convolution.html
MIT License
62 stars 17 forks source link

how to run test.py #18

Open pyl122516 opened 1 month ago

pyl122516 commented 1 month ago

i change graphx.checkpoint_folder= "/home/tjut_jxxgraphx/daima/graphx-conv-master/src/results/ICCV-fc-final/run3"

run python test.py /home/tjut_jxxgraphx/daima/graphx-conv-master/src/configs/fc-final.gin --gpu 3 and have a error:

(graphx) tjut_jxxgraphx@user-NF5468M5:~/daima/graphx-conv-master/src$ python test.py /home/tjut_jxxgraphx/daima/graphx-conv-master/src/configs/fc-final.gin --gpu 3 /home/tjut_jxxgraphx/daima/graphx-conv-master/src/results/ICCV-fc-final/run3 Traceback (most recent call last): File "test.py", line 69, in test_each_category() File "/home/tjut_jxxgraphx/anaconda3/envs/graphx/lib/python3.7/site-packages/gin/config.py", line 1605, in gin_wrapper utils.augment_exception_message_and_reraise(e, err_str) File "/home/tjut_jxxgraphx/anaconda3/envs/graphx/lib/python3.7/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise raise proxy.with_traceback(exception.traceback) from None File "/home/tjut_jxxgraphx/anaconda3/envs/graphx/lib/python3.7/site-packages/gin/config.py", line 1582, in gin_wrapper return fn(*new_args, new_kwargs) File "test.py", line 33, in test_each_category states = mon.load('training.pt', type='torch') File "/home/tjut_jxxgraphx/anaconda3/envs/graphx/lib/python3.7/site-packages/neuralnet_pytorch/monitor.py", line 1463, in load return self._load(file, method, version, kwargs) File "/home/tjut_jxxgraphx/anaconda3/envs/graphx/lib/python3.7/site-packages/neuralnet_pytorch/monitor.py", line 1497, in _load obj = method(os.path.join(self.current_folder, version), **kwargs) TypeError: _load_pickle() got an unexpected keyword argument 'type' In call to configurable 'GraphX' (<function test_each_category at 0x7f596004b440>)