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

how to run test.py #18

Open
pyl122516 opened this issue Aug 3, 2024 · 0 comments
Open

how to run test.py #18

pyl122516 opened this issue Aug 3, 2024 · 0 comments

Comments

@pyl122516
Copy link

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>)

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

1 participant