diff --git a/README.md b/README.md index d7d839b..2edff60 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Tensor operations are extended on top of the [ndarray](https://github.com/scijs/ - Inception V3, trained on ImageNet -- Xception V1, trained on ImageNet +- Xception, trained on ImageNet - Bidirectional LSTM for IMDB sentiment classification diff --git a/demos/src/home.js b/demos/src/home.js index d9e78dc..ae93df1 100644 --- a/demos/src/home.js +++ b/demos/src/home.js @@ -22,6 +22,11 @@ const DEMO_INFO_DEV = [ path: 'inception-v3', imagePath: '/demos/assets/inception-v3.png' }, + { + title: 'Xception, trained on ImageNet', + path: 'xception', + imagePath: '/demos/assets/inception-v3.png' + }, { title: 'Bidirectional LSTM for IMDB sentiment classification', path: 'imdb-bidirectional-lstm', @@ -50,6 +55,11 @@ const DEMO_INFO_PROD = [ path: 'inception-v3', imagePath: 'demos/assets/inception-v3.png' }, + { + title: 'Xception, trained on ImageNet', + path: 'xception', + imagePath: 'demos/assets/inception-v3.png' + }, { title: 'Bidirectional LSTM for IMDB sentiment classification', path: 'imdb-bidirectional-lstm', diff --git a/demos/src/inception-v3/inception-v3.js b/demos/src/inception-v3/inception-v3.js index 31ac21b..16b2686 100644 --- a/demos/src/inception-v3/inception-v3.js +++ b/demos/src/inception-v3/inception-v3.js @@ -190,6 +190,7 @@ export const InceptionV3 = Vue.extend({ // data processing // see https://github.com/fchollet/keras/blob/master/keras/applications/imagenet_utils.py + // and https://github.com/fchollet/keras/blob/master/keras/applications/inception_v3.py let dataTensor = ndarray(new Float32Array(data), [width, height, 4]) let dataProcessedTensor = ndarray(new Float32Array(width * height * 3), [width, height, 3]) ops.divseq(dataTensor, 255) diff --git a/demos/src/index.js b/demos/src/index.js index 4251240..80b6b86 100644 --- a/demos/src/index.js +++ b/demos/src/index.js @@ -8,6 +8,7 @@ import { MnistCnn } from './mnist-cnn/mnist-cnn' import { MnistVae } from './mnist-vae/mnist-vae' import { ResNet50 } from './resnet50/resnet50' import { InceptionV3 } from './inception-v3/inception-v3' +import { Xception } from './xception/xception' import { ImdbBidirectionalLstm } from './imdb-bidirectional-lstm/imdb-bidirectional-lstm' Vue.component('menu', Menu) @@ -16,6 +17,7 @@ Vue.component('mnist-cnn', MnistCnn) Vue.component('mnist-vae', MnistVae) Vue.component('resnet50', ResNet50) Vue.component('inception-v3', InceptionV3) +Vue.component('xception', Xception) Vue.component('imdb-bidirectional-lstm', ImdbBidirectionalLstm) Vue.use(VueMdl.default) @@ -50,6 +52,7 @@ function matchRoute () { 'mnist-vae', 'resnet50', 'inception-v3', + 'xception', 'imdb-bidirectional-lstm' ] diff --git a/demos/src/menu.template.html b/demos/src/menu.template.html index 9e9a77a..a2c9fb5 100644 --- a/demos/src/menu.template.html +++ b/demos/src/menu.template.html @@ -31,6 +31,12 @@ +