Comments (4)
got it all working, needed floatX=float32 ; it went from 70 mins to 6 mins, not bad :)
from neural-storyteller.
load_all() takes pretty long but it only need to run once. 70 minutes seem to be a bit too long considering you are using GPU. Did you set your .theanorc to run on GPU?
from neural-storyteller.
yeah, I wasnt in gpu mode. I fixed that, but now when I run the same exact code I get:
s = generate.story(z, args.input)
File "/home/ubuntu/experiment/generate.py", line 42, in story
feats = compute_features(z['net'], im).flatten()
File "/home/ubuntu/experiment/generate.py", line 183, in compute_features
deterministic=True).eval())
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/helper.py", line 191, in get_output
all_outputs[layer] = layer.get_output_for(layer_inputs, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/conv.py", line 257, in get_output_for
conved = self.convolve(input, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/corrmm.py", line 144, in convolve
contiguous_filters = gpu_contiguous(filters)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/op.py", line 611, in call
node = self.make_node(_inputs, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/basic_ops.py", line 3963, in make_node
input = as_cuda_ndarray_variable(input)
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/basic_ops.py", line 47, in as_cuda_ndarray_variable
return gpu_from_host(tensor_x)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/op.py", line 611, in call
node = self.make_node(_inputs, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/basic_ops.py", line 140, in make_node
dtype=x.dtype)()])
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/type.py", line 93, in init
(self.class.name, dtype, name))
TypeError: CudaNdarrayType only supports dtype float32 for now. Tried using dtype float64 for variable None
I dont suppose that is normal? this same code works fine in gpu mode. do i need to convert any of the files or do anything else to make it work in gpu mode?
from neural-storyteller.
Any way I can see the .theanorc file you use? I just force gpu mode with:
THEANO_FLAGS=device=gpu
not sure if I need to tweak other settings.
from neural-storyteller.
Related Issues (20)
- generate story error HOT 1
- config.py
- Killed (also skip-thoughts) HOT 3
- How to create new posbias for custom encoder/decoder? HOT 2
- Skipthought.py HOT 1
- No module named theano HOT 3
- Models adjust in config.py HOT 4
- Could I use the code to generate stories for commercial uses? HOT 1
- Generator.py transform.resize error
- Random Nearest captions followed by an error HOT 5
- Embedding captions... HOT 4
- ValueError: could not broadcast input array from shape (3600) into shape (2400)
- How to modify bias to generate longer stories?
- cannot allocate memory error,and i do not know how much RAM it needs HOT 1
- Fine tuning COCO HOT 1
- Have no access to download VGG19 parameters
- No such file or directory: '../uni_skip.npz.pkl' HOT 2
- vgg19.pkl link not available HOT 7
- Error in unzipping npz files
- load_model() takes 0 positional arguments but 2 were given anyone help please
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neural-storyteller.