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

Error during Running Evaluation Script #8

Open
sayanmandal opened this issue Aug 6, 2018 · 2 comments
Open

Error during Running Evaluation Script #8

sayanmandal opened this issue Aug 6, 2018 · 2 comments

Comments

@sayanmandal
Copy link

I am getting the following error after executing eval.py. I am using python2.7
14CS30032@cpusrv-gpu-112:~/visDial.pytorch$ python2.7 eval/eval_G_DIS.py --data_dir model/ --model_path model/save/HCIAE-G-DIS.pth --cuda
/usr/lib64/python2.7/site-packages/h5py/init.py:13: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
from h5py import _conv
/usr/lib64/python2.7/site-packages/h5py/init.py:16: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
from h5py import h5a, h5d, h5ds, h5f, h5fd, h5g, h5r, h5s, h5t, h5p, h5z
/usr/lib64/python2.7/site-packages/h5py/_hl/group.py:15: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
from h5py import h5g, h5i, h5o, h5r, h5t, h5l, h5p
Traceback (most recent call last):
File "eval/eval_G_DIS.py", line 30, in
from misc.netG import _netG
File "/home/du4/14CS30032/visDial.pytorch/misc/netG.py", line 147
if self.mos_flag:
^
IndentationError: unexpected indent

@sayanmandal
Copy link
Author

sayanmandal commented Aug 6, 2018

Now I am getting this error,
Traceback (most recent call last):
File "eval/eval_G_DIS.py", line 98, in
netG = _netG(opt.model, n_words, opt.ninp, opt.nhid, opt.nlayers, opt.dropout)
File "/home/du4/14CS30032/visDial.pytorch/misc/netG.py", line 20, in init
self.mos_layer = mixture_of_softmaxes(nhid, 5, ntoken + 1)
NameError: global name 'mixture_of_softmaxes' is not defined
I checked in the netG.py and indeed there was no functions defined with name 'mixture_of_softmaxes'

@sayanmandal
Copy link
Author

can't run eval.py due to the following error.
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for _netG:
Missing key(s) in state_dict: "mos_layer.prior.weight", "mos_layer.latent.0.bias", "mos_layer.latent.0.weight", "mos_layer.decoder.bias", "mos_layer.decoder.weight"

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