Giter Club home page Giter Club logo

Comments (1)

rakehsaleem avatar rakehsaleem commented on August 31, 2024

I would like to clarify that I was using Keras backend as "Tensorflow" and I learned that Keras initializes weights differently with different backends. So I changed Keras backend to "theano" backend and when I run the test images, it raises the following exception.

Traceback (most recent call last):
File "main.py", line 43, in
model = ml_net_model(img_cols=shape_c, img_rows=shape_r, downsampling_factor_product=10)
File "C:\Users\mqs6680\PycharmProjects\Saliency\model.py", line 78, in ml_net_model
eltprod = EltWiseProduct(init='zero', W_regularizer=l2(1/(rows_eltcols_elt)))(pre_final_conv)
File "C:\Users\mqs6680\PycharmProjects\Saliency\venv\lib\site-packages\keras\engine\topology.py", line 514, in call
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "C:\Users\mqs6680\PycharmProjects\Saliency\venv\lib\site-packages\keras\engine\topology.py", line 572, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "C:\Users\mqs6680\PycharmProjects\Saliency\venv\lib\site-packages\keras\engine\topology.py", line 149, in create_node
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
File "C:\Users\mqs6680\PycharmProjects\Saliency\eltwise_product.py", line 56, in call
output = x
T.nnet.abstract_conv.bilinear_upsampling(K.expand_dims(K.expand_dims(1 + self.W, 0), 0), self.downsampling_factor, 1, 1)
File "C:\Users\mqs6680\PycharmProjects\Saliency\venv\lib\site-packages\theano\tensor\nnet\abstract_conv.py", line 1911, in bilinear_upsampling
raise ValueError("can't use ratio and frac_ratio together")
ValueError: can't use ratio and frac_ratio together

Any help on how to fix this will be much appreciated!

from mlnet.

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.