Open jazoza opened 7 years ago
Get the Python3 compatible version of skipthoughts.py here: https://github.com/ryankiros/skip-thoughts/pull/53/files
I'm also on Anacnoda x64, and my path_to_skipthoughts looks like this: path_to_skipthoughts = 'C:\neuralstoryteller\skip-thoughts-master\' I have the models in a subfolder of that path named "models", and this works.
You can also just change iteritems() to items() in most of these cases to fix that error.
Hi @ErikOmberg thanks for the Python3 compatible version.. when i try to use the new skip-thought code (py3 compatible one), i get an error message as below:
C:\Users\Dell\Documents\Neural_storyteller\neural_storyteller\romance.npz
Loading skip-thoughts...
Traceback (most recent call last):
File "
Can u help me with this? I see that we are passing 2 arguments config.paths['skmodels'], config.paths['sktables'] in the original generate.py.. while in the new skipthought i see load_model does not take any arguments.. so i tried to change it to just stv = skipthoughts.load_model() and got the error:
Loading model parameters...
Traceback (most recent call last):
File "
You're right - I see that link I posted only had a loadmodel function with no arguments. I didn't use that code directly. I started with the master code, and made some code changes (based on that link) to get my py3 working.
The necessary changes aren't too bad. It's mostly a few "items" change to "iteritems", parenthesis around print statements, etc...
I agree.. but i am getting an error when i do so :( could u help me with the error below
Loading skip-thoughts...
Traceback (most recent call last):
File "
Please check your bi_skip.npz file. It may be corrupt or missing if the error says it's not a valid zip file. My code makes that file name like this: path_to_bmodel = path_to_models + 'bi_skip.npz' Mine has this size: 289,340,074 bytes Mine is in this folder: ./models/ I have a bi_skip.npz.pkl file at the same path that is 689 bytes.
The config.py sets the relative path like this:
paths['skmodels'] = './models/' paths['sktables'] = './models/'
Thanks a lot @ErikOmberg .. i didn't notice that my file was corrupted.. i have one question tho wrt resize in generate.py
line 154: im = skimage.transform.resize(im, (256, w*256/h), preserve_range=True) here, there is a possibility that the number won't end up as integer.. so should we add int() to round it up?
Yes, I made that change too: int(w*256/h)
Thanks @ErikOmberg .. I've raised a new issue #37 i was wondering if u could help me with that or have u faced similar issues while running your codes.
Hi, I am running into a dead end with the storyteller already at one of the first steps. After having downloaded all necessary files, and set up the config.py, it still won't generate the first
import generate
gives the following error:
ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: libcublas.so.8.0: cannot open shared object file: No such file or directory
but it is still able to proceed (or at least that is how I understand it)
and then
z = generate.load_all()
runs into this error (pasting only the end)
`Loading skip-thoughts...
AttributeError Traceback (most recent call last)