Comments (9)
i solved this problem via reinstalled the Keras to 2.0.5 version.
from densenet-keras.
i have same problem ++
from densenet-keras.
Guys @monder0116, @johntian Hi ! I encountered the same problem, I found a solution, but I am not sure that it is 100% correct. So what I did:
`from keras.layers import concatenate
concat_feat = concatenate([concat_feat, x], mode='concat', axis=concat_axis, name='concat_'+str(stage)+'_'+str(branch))
I replaced this line with
mergeto
concatenate, because
merge` seems to be deprecated invocation.
from densenet-keras.
@django-kz Thanks for sharing.
from densenet-keras.
@YingXiuHe Thanks for sharing.
from densenet-keras.
、、、
from keras.layers import concatenate
concat_feat = concatenate([concat_feat, x], axis=concat_axis, name='concat_'+str(stage)+''+str(branch))
、、、
in my win10,it works.
But
、、、
from keras.layers import concatenate
concat_feat = concatenate([concat_feat, x], mode='concat', axis=concat_axis, name='concat'+str(stage)+'_'+str(branch))
、、、
it don't work. I guess that is the version problem of keras. Mine:2.2.4
from densenet-keras.
The latest version of Keras does not support concatenate
Use this Lambda
policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])
from densenet-keras.
The latest version of Keras does not support
concatenate
Use this
Lambda
policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])
hi, how to write the code? thanks.
from densenet-keras.
The latest version of Keras does not support
concatenate
Use thisLambda
policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])
hi, how to write the code? thanks.
Replace concatenate([concat_feat, x], mode='concat', axis=concat_axis, name='concat'+str(stage)+'_'+str(branch))
with policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])
(This is my code. )
https://www.tensorflow.org/api_docs/python/tf/keras/layers/Lambda
from densenet-keras.
Related Issues (20)
- face recognition HOT 1
- will you provide no top architecture of the densenet with the pre-trained weigths?
- Training own model HOT 1
- Regarding scale HOT 1
- Is there a pre-train module for CIFAR100 on keras?
- AssertionError: AbstractConv shape mismatch: shape of filters does not match given kshp. HOT 3
- RGB or BGR? HOT 2
- Step by step implementation of code
- Code is using growth_rate instead of nb_filter HOT 1
- DocUNet
- Bounding box of predicted class HOT 1
- TypeError: 'module' object is not callable HOT 2
- Pretrained model
- Pretrained DenseNet Models HOT 1
- Scale layer vs BatchNormalization in Keras v2 HOT 4
- about the pre-train weight HOT 15
- Preprocessing for finetuning the models
- Not working with keras 2.0.5 and tf 1.2.1 HOT 1
- Why the 'bias' is set to False? HOT 1
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 densenet-keras.