Icon

kn_​dl_​03_​fine_​tune_​vgg16_​python

Fine-tune VGG16 (Python)

Instead of creating our own network architecture as in the previous workflow "Train simple CNN", in this workflow we use the pre-trained network architecture VGG16.

Please note: The workflow series is heavily inspired by the great blog-post of François Chollet (see https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html.)

1. Workflow 01 Preprocessing
2. Workflow 02 Trains simple CNN

3. Workflow 03 Fine-tune VGG16 Python: Instead of creating our own network architecture as in the previous workflow "Train simple CNN", in this workflow we use the pre-trained network architecture VGG16. (https://keras.io/applications/#vgg16, released by VGG (http://www.robots.ox.ac.uk/~vgg/research/very_deep/) at Oxford under the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/).

4. Workflow 04 Fine-tune VGG16

In order to run the example, please make sure you have the following KNIME extensions installed:

- KNIME Deep Learning - Keras Integration (Labs)
- KNIME Image Processing (Community Contributions Trusted)
- KNIME Image Processing - Deep Learning Extension (Community Contributions Trusted)
- KNIME Image Processing - Python Extension (Community Contributions Trusted)

You also need a local Python installation that includes Keras. Please refer to https://www.knime.com/deeplearning#keras for installation recommendations and further information.

KNIME Deep Learning - Classify Cats and Dogs In this series of workflows we want to demonstrate how to solve an image classification problem using KNIME Deep Learning - Keras integration.We want to train a model to distinguish cats and dogs on images. Data from:https://www.kaggle.com/c/dogs-vs-cats/overviewAdapted from:Keras - Cats vs. Dogs (christian.birkhold)https://hub.knime.com/knime/spaces/Examples/latest/04_Analytics/14_Deep_Learning/02_Keras/04_Cats_and_Dogs~gEkDg2tB3SliwDgo/ In order to run the example, please make sure you have the following KNIME extensions installed:https://docs.knime.com/latest/analytics_platform_installation_guide/index.html#_installing_extensions_and_integrations* KNIME Deep Learning - Keras Integration (Labs)* KNIME Image Processing (Community Contributions Trusted)* KNIME Image Processing - Deep Learning Extension (Community Contributions Trusted)* KNIME Image Processing - Python Extension (Community Contributions Trusted)* KNIME Streaming Execution (Labs) keras.conda.environmentknime_py_keras_win=> for Windows environmentReplace layers.Fine-tune last convolutional.Apply trainedmodel on test data.Unify RowIDs.>= 0.5 is dog(might have to adapt)Read in preprocessedimages from Workflow 01_Preprocessing../data/preprocessed_150x150_sample.tableDownload network from Keras.Alternatively, you can also use theDL Keras Network Readerand load any other stored network. ../model/keras_fine_cats_dogs_model.zipSave for deploymentNode 1045../model/keras_fine_cats_dogs_model.zipkeras.conda.environmentknime_py_keras_macos=> for MacOS environmentknime_py_keras_win DL PythonNetwork Editor DL PythonNetwork Learner DL Python NetworkExecutor Shuffle Partitioning RowID Rule Engine Column Filter Table Reader DL PythonNetwork Creator Category To Number Model Writer Joiner Scorer Model Reader knime_py_keras_macos KNIME Deep Learning - Classify Cats and Dogs In this series of workflows we want to demonstrate how to solve an image classification problem using KNIME Deep Learning - Keras integration.We want to train a model to distinguish cats and dogs on images. Data from:https://www.kaggle.com/c/dogs-vs-cats/overviewAdapted from:Keras - Cats vs. Dogs (christian.birkhold)https://hub.knime.com/knime/spaces/Examples/latest/04_Analytics/14_Deep_Learning/02_Keras/04_Cats_and_Dogs~gEkDg2tB3SliwDgo/ In order to run the example, please make sure you have the following KNIME extensions installed:https://docs.knime.com/latest/analytics_platform_installation_guide/index.html#_installing_extensions_and_integrations* KNIME Deep Learning - Keras Integration (Labs)* KNIME Image Processing (Community Contributions Trusted)* KNIME Image Processing - Deep Learning Extension (Community Contributions Trusted)* KNIME Image Processing - Python Extension (Community Contributions Trusted)* KNIME Streaming Execution (Labs) keras.conda.environmentknime_py_keras_win=> for Windows environmentReplace layers.Fine-tune last convolutional.Apply trainedmodel on test data.Unify RowIDs.>= 0.5 is dog(might have to adapt)Read in preprocessedimages from Workflow 01_Preprocessing../data/preprocessed_150x150_sample.tableDownload network from Keras.Alternatively, you can also use theDL Keras Network Readerand load any other stored network. ../model/keras_fine_cats_dogs_model.zipSave for deploymentNode 1045../model/keras_fine_cats_dogs_model.zipkeras.conda.environmentknime_py_keras_macos=> for MacOS environmentknime_py_keras_win DL PythonNetwork Editor DL PythonNetwork Learner DL Python NetworkExecutor Shuffle Partitioning RowID Rule Engine Column Filter Table Reader DL PythonNetwork Creator Category To Number Model Writer Joiner Scorer Model Reader knime_py_keras_macos

Nodes

Extensions

Links