Code Monkey home page Code Monkey logo

Comments (3)

TobyPDE avatar TobyPDE commented on August 22, 2024 1

Install it via pip install git+https://github.com/Theano/Theano.

from frrn.

gaopeng-eugene avatar gaopeng-eugene commented on August 22, 2024

Can you tell me how to install theano 0.9.0? The default theano for python 3,5 is 0.8.0 by which your code will run into the following error.

from frrn.

gaopeng-eugene avatar gaopeng-eugene commented on August 22, 2024

Enter path to CityScapes folder [/opt/data/penggao/dataset/cityscape]:
Enter model filename [models/frrn_b.npz]:
Enter log filename [logs/frrn_b.log]:
Define network... [0.52s]
Load model... [0.83s]
Define loss... [0.51s]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/theano/tensor/type.py", line 267, in dtype_specs
}[self.dtype]
KeyError: 'object'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/theano/tensor/basic.py", line 408, in constant_or_value
TensorType(dtype=x_.dtype, broadcastable=bcastable),
File "/usr/local/lib/python3.5/site-packages/theano/tensor/type.py", line 50, in init
self.dtype_specs() # error checking is done there
File "/usr/local/lib/python3.5/site-packages/theano/tensor/type.py", line 270, in dtype_specs
% (self.class.name, self.dtype))
TypeError: Unsupported dtype for TensorType: object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/theano/tensor/basic.py", line 202, in as_tensor_variable
return constant(x, name=name, ndim=ndim)
File "/usr/local/lib/python3.5/site-packages/theano/tensor/basic.py", line 422, in constant
dtype=dtype)
File "/usr/local/lib/python3.5/site-packages/theano/tensor/basic.py", line 417, in constant_or_value
raise TypeError("Could not convert %s to TensorType" % x, type(x))
TypeError: not all arguments converted during string formatting

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train.py", line 78, in
all_predictions, split_outputs = dltools.hybrid_training.get_split_outputs(network, deterministic=False)
File "/opt/data/penggao/deep_segmentation/FRRN/dltools/hybrid_training.py", line 18, in get_split_outputs
all_outputs = lasagne.layers.get_output(network.output_layers + sum(network.splits, []), **kwargs)
File "/usr/local/lib/python3.5/site-packages/lasagne/layers/helper.py", line 191, in get_output
all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs)
File "/opt/data/penggao/deep_segmentation/FRRN/dltools/layers.py", line 36, in get_output_for
return T.nnet.abstract_conv.bilinear_upsampling(input, self.factor)
File "/usr/local/lib/python3.5/site-packages/theano/tensor/nnet/abstract_conv.py", line 569, in bilinear_upsampling
row * ratio, col * ratio))
File "/usr/local/lib/python3.5/site-packages/theano/tensor/var.py", line 327, in reshape
return theano.tensor.basic.reshape(self, shape, ndim=ndim)
File "/usr/local/lib/python3.5/site-packages/theano/tensor/basic.py", line 4526, in reshape
newshape = as_tensor_variable(newshape)
File "/usr/local/lib/python3.5/site-packages/theano/tensor/basic.py", line 208, in as_tensor_variable
raise AsTensorError("Cannot convert %s to TensorType" % str_x, type(x))
theano.tensor.var.AsTensorError: ('Cannot convert (None, None, Elemwise{mul,no_inplace}.0, Elemwise{mul,no_inplace}.0) to TensorType', <class 'tuple'>)

from frrn.

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.