Comments (2)
Sorry I forgot to upload it. Now it should work.
from retrieval-2017-cam.
/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)
- Question about boxes in evaluation
- pytorch code
- Question about PyTorch code
- About the parameter N_PCA HOT 6
- Problem of model = vggcam(nb_classes) HOT 1
- what is the speed of feature extraction HOT 2
- Question about Weight HOT 1
- Question about the VGG model HOT 1
- Problem when getting the features HOT 4
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 retrieval-2017-cam.