pytorch-relation-extraction icon indicating copy to clipboard operation
pytorch-relation-extraction copied to clipboard

sizes must be non-negative

Open tao2years opened this issue 6 years ago • 0 comments


Traceback (most recent call last): File "/root/pycharm-community-2017.1.1/helpers/pydev/pydev_run_in_console.py", line 78, in globals = run_file(file, None, None) File "/root/pycharm-community-2017.1.1/helpers/pydev/pydev_run_in_console.py", line 35, in run_file pydev_imports.execfile(file, globals, locals) # execute the script File "/root/pytorch-relation-extraction-master/main_mil.py", line 203, in fire.Fire() File "/root/anaconda3/envs/py27/lib/python2.7/site-packages/fire/core.py", line 127, in Fire component_trace = _Fire(component, args, context, name) File "/root/anaconda3/envs/py27/lib/python2.7/site-packages/fire/core.py", line 366, in _Fire component, remaining_args) File "/root/anaconda3/envs/py27/lib/python2.7/site-packages/fire/core.py", line 542, in _CallCallable result = fn(*varargs, **kwargs) File "/root/pytorch-relation-extraction-master/main_mil.py", line 33, in train model = getattr(models, 'PCNN_ONE')(opt) File "/root/pytorch-relation-extraction-master/models/PCNN_ONE.py", line 39, in init self.init_word_emb() File "/root/pytorch-relation-extraction-master/models/PCNN_ONE.py", line 65, in init_word_emb w2v = p_2norm(self.opt.w2v_path) File "/root/pytorch-relation-extraction-master/models/PCNN_ONE.py", line 59, in p_2norm v = torch.from_numpy(np.load(path)) RuntimeError: sizes must be non-negative

tao2years avatar Nov 13 '18 01:11 tao2years