Neural Network Projects with Python by James Loy;
Author:James Loy; [Неизв.]
Language: eng
Format: epub
Tags: COM004000 - COMPUTERS / Intelligence (AI) and Semantics, COM044000 - COMPUTERS / Neural Networks, COM037000 - COMPUTERS / Machine Theory
Publisher: Packt Publishing
Published: 2019-02-28T07:11:52+00:00
INPUT_SIZE = 128 # Change this to 48 if the code takes too long to run
vgg16 = VGG16(include_top=False, weights='imagenet',
input_shape=(INPUT_SIZE,INPUT_SIZE,3))
Note that we used include_top=False when we created a new VGG16 model. This argument tells Keras not to import the fully connected layers at the end of the VGG16 network.
We're now going to freeze the rest of the layers in the VGG16 model, since we're not going to retrain them from scratch. We can freeze the layers by running the following code snippet:
for layer in vgg16.layers:
layer.trainable = False
Next, we're going to add a fully connected layer with 1 node right at the end of the neural network. The syntax to do this is slightly different, since the VGG16 model is not a Keras Sequential model that we're used to. In any case, we can add the layers by running the following code:
from keras.models import Model
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8292)
Test-Driven Development with Java by Alan Mellor(6661)
Data Augmentation with Python by Duc Haba(6566)
Principles of Data Fabric by Sonia Mezzetta(6327)
Learn Blender Simulations the Right Way by Stephen Pearson(6213)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6087)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5480)
Big Data Analysis with Python by Ivan Marin(5330)
The Infinite Retina by Robert Scoble Irena Cronin(5179)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5140)
Pretrain Vision and Large Language Models in Python by Emily Webber(4291)
Infrastructure as Code for Beginners by Russ McKendrick(4050)
Functional Programming in JavaScript by Mantyla Dan(4037)
The Age of Surveillance Capitalism by Shoshana Zuboff(3943)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3765)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3567)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3542)
