johannesu / nasnet-keras Goto Github PK
View Code? Open in Web Editor NEWKeras implementation of NASNet-A
License: MIT License
Keras implementation of NASNet-A
License: MIT License
Hi, in paper (Figure4, ReductionCell) there are only 3 layer for Concate input , as you code (line 300 in nasnet.py) ,it should be
return Concatenate(.....)([add_2, add_3 add_4])
add_1 is not in Concate input!!!! please check it.
How can I use this implementation to train on my own data?
File "nasnet.py", line 229
dropout_rate=0.5) -> Model:
^
SyntaxError: invalid syntax
@johannesu
Hi, thank you for your sharing. And I am confused about penultimate_filters !!! Is it only used in Line 354(nasnet.py) ??
I tried to finetune NASNet like a Keras K.application
model however, there is no weights
kwarg. For example, for Xception it defaults to loading the imagenet
pretrained weights.
I tried to use some of the functions provided in the package as follows,
import nasnet
origin = 'https://storage.googleapis.com/download.tensorflow.org/models/nasnet-a_large_04_10_2017.tar.gz'
fname='nasnet_large'
md5_hash='5286bdbb29bab27c4d3431c70f8becf9'
cache_dir = os.path.expanduser(os.path.join('~', '.keras', 'models'))
model = nasnet.NASNetA(include_top=False, input_shape=(img_height, img_width, 3))
nasnet.load_pretrained_weights(model, fname, origin, md5_hash,
skip_first_dense=True, cache_dir=cache_dir)
However, this throws the error,
ValueError: Layer weight shape (1, 1, 96, 8) not compatible with provided weight shape (1, 1, 96, 42)
What is going wrong here? Better still, it would be great to get a weights kwarg built in to make it fully follow the Keras API. Many thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.