GithubHelp home page GithubHelp logo

Comments (2)

jsalbert avatar jsalbert commented on June 6, 2024

Sorry I forgot to upload it. Now it should work.

from retrieval-2017-cam.

aiyanxiao avatar aiyanxiao commented on June 6, 2024

/home/cvg/anaconda2/envs/keras2.7/bin/python2.7 /home/cvg/retrieval-2017-cam-master/keras_code/A_Dist_Feat_CAMs_Extraction.py
Using TensorFlow backend.
Traceback (most recent call last):
File "/home/cvg/retrieval-2017-cam-master/keras_code/A_Dist_Feat_CAMs_Extraction.py", line 48, in
model = vggcam(nb_classes)
File "/home/cvg/retrieval-2017-cam-master/keras_code/vgg_cam.py", line 27, in vggcam
model.add(Convolution2D(64, 3, 3, activation='relu'))
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/keras/models.py", line 308, in add
output_tensor = layer(self.outputs[0])
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/keras/engine/topology.py", line 487, in call
self.build(input_shapes[0])
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/keras/layers/convolutional.py", line 410, in build
self.W = self.init(self.W_shape, name='{}_W'.format(self.name))
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/keras/initializations.py", line 57, in glorot_uniform
fan_in, fan_out = get_fans(shape, dim_ordering=dim_ordering)
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/keras/initializations.py", line 15, in get_fans
receptive_field_size = np.prod(shape[2:])
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 2539, in prod
out=out, **kwargs)
File "/home/cvg/anaconda2/envs/keras2.7/lib/python2.7/site-packages/numpy/core/_methods.py", line 35, in _prod
return umr_prod(a, axis, dtype, out, keepdims)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

Please help me with this problem, Thanks! In addition, what's the version of tensorflow used by you?

from retrieval-2017-cam.

Related Issues (10)

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.