Comments (3)
raise ValueError(err.message)
ValueError: Negative dimension size caused by subtracting 11 from 3 for 'conv_1/convolution' (op: 'Conv2D') with input shapes: [?,3,227,227], [11,11,227,96].
Do you know how to debug this๏ผ It occurred when I tried to use the alexnet.
from convnets-keras.
Hi @yueseW.
I'm not sure which code you are referring to. If you're interested in performing transfer learning using AlexNet, you can have a look at my project. If this does not help, then please post the code that you are trying to run.
from convnets-keras.
Hi @yueseW
Actually it's because I guess you are using tensorflow with keras so you have to change the dimension of input shape to (w, h, ch) instead of default (ch, w, h) For e.g. in AlexNet here
def AlexNet(weights_path=None, heatmap=False):
if heatmap:
inputs = Input(shape=(3,None,None))
else:
inputs = Input(shape=(3,227,227))
You have to change to
def AlexNet(weights_path=None, heatmap=False):
if heatmap:
inputs = Input(shape=(None,None, 3))
else:
inputs = Input(shape=(227,227,3))
from convnets-keras.
Related Issues (20)
- Heatmap has low resolution (43x73 in the dog example) HOT 1
- add license
- raise error when using process_image_batch (using sample code)
- Are you interested in doubling the heatmap resolution? (4x more pixels) HOT 2
- support more networks
- vgg networks dont't produce heatmaps HOT 1
- error while loading weights in case of heatmap=true
- Why don't you assign regularisation to the layers?
- I cannot reproduce your results. HOT 3
- Import Error HOT 21
- What is geometric norm?
- Alexnet issue with Keras 2
- why can't I reproduce your result? HOT 3
- Load weights error in theano HOT 2
- Share information about training
- error: Load weight file (ValueError: You are trying to load a weight file containing 11 layers into a model with 7 layers.)
- Dimensions must be equal, HOT 2
- convnets.py in 'module' object is not callable HOT 1
- Unable to install h5py and convnets-keras HOT 2
- Unable to download weights for AlexNet HOT 3
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 convnets-keras.