Coder Social home page Coder Social logo

Comments (4)

jtoy avatar jtoy commented on August 12, 2024 1

got it all working, needed floatX=float32 ; it went from 70 mins to 6 mins, not bad :)

from neural-storyteller.

YknZhu avatar YknZhu commented on August 12, 2024

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.

jtoy avatar jtoy commented on August 12, 2024

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.

jtoy avatar jtoy commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.