├── .gitattributes ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── bower.json ├── demo_screen.png ├── package.json ├── scripts ├── build-demo ├── deploy-demo ├── dump_checkpoint_vars.py ├── remove_optimizer_variables.py └── watch-demo ├── src ├── ckpts │ ├── la_muse │ │ ├── Variable │ │ ├── Variable_1 │ │ ├── Variable_10 │ │ ├── Variable_11 │ │ ├── Variable_12 │ │ ├── Variable_13 │ │ ├── Variable_14 │ │ ├── Variable_15 │ │ ├── Variable_16 │ │ ├── Variable_17 │ │ ├── Variable_18 │ │ ├── Variable_19 │ │ ├── Variable_2 │ │ ├── Variable_20 │ │ ├── Variable_21 │ │ ├── Variable_22 │ │ ├── Variable_23 │ │ ├── Variable_24 │ │ ├── Variable_25 │ │ ├── Variable_26 │ │ ├── Variable_27 │ │ ├── Variable_28 │ │ ├── Variable_29 │ │ ├── Variable_3 │ │ ├── Variable_30 │ │ ├── Variable_31 │ │ ├── Variable_32 │ │ ├── Variable_33 │ │ ├── Variable_34 │ │ ├── Variable_35 │ │ ├── Variable_36 │ │ ├── Variable_37 │ │ ├── Variable_38 │ │ ├── Variable_39 │ │ ├── Variable_4 │ │ ├── Variable_40 │ │ ├── Variable_41 │ │ ├── Variable_42 │ │ ├── Variable_43 │ │ ├── Variable_44 │ │ ├── Variable_45 │ │ ├── Variable_46 │ │ ├── Variable_47 │ │ ├── Variable_5 │ │ ├── Variable_6 │ │ ├── Variable_7 │ │ ├── Variable_8 │ │ ├── Variable_9 │ │ └── manifest.json │ ├── rain_princess │ │ ├── Variable │ │ ├── Variable_1 │ │ ├── Variable_10 │ │ ├── Variable_11 │ │ ├── Variable_12 │ │ ├── Variable_13 │ │ ├── Variable_14 │ │ ├── Variable_15 │ │ ├── Variable_16 │ │ ├── Variable_17 │ │ ├── Variable_18 │ │ ├── Variable_19 │ │ ├── Variable_2 │ │ ├── Variable_20 │ │ ├── Variable_21 │ │ ├── Variable_22 │ │ ├── Variable_23 │ │ ├── Variable_24 │ │ ├── Variable_25 │ │ ├── Variable_26 │ │ ├── Variable_27 │ │ ├── Variable_28 │ │ ├── Variable_29 │ │ ├── Variable_3 │ │ ├── Variable_30 │ │ ├── Variable_31 │ │ ├── Variable_32 │ │ ├── Variable_33 │ │ ├── Variable_34 │ │ ├── Variable_35 │ │ ├── Variable_36 │ │ ├── Variable_37 │ │ ├── Variable_38 │ │ ├── Variable_39 │ │ ├── Variable_4 │ │ ├── Variable_40 │ │ ├── Variable_41 │ │ ├── Variable_42 │ │ ├── Variable_43 │ │ ├── Variable_44 │ │ ├── Variable_45 │ │ ├── Variable_46 │ │ ├── Variable_47 │ │ ├── Variable_5 │ │ ├── Variable_6 │ │ ├── Variable_7 │ │ ├── Variable_8 │ │ ├── Variable_9 │ │ └── manifest.json │ ├── scream │ │ ├── Variable │ │ ├── Variable_1 │ │ ├── Variable_10 │ │ ├── Variable_11 │ │ ├── Variable_12 │ │ ├── Variable_13 │ │ ├── Variable_14 │ │ ├── Variable_15 │ │ ├── Variable_16 │ │ ├── Variable_17 │ │ ├── Variable_18 │ │ ├── Variable_19 │ │ ├── Variable_2 │ │ ├── Variable_20 │ │ ├── Variable_21 │ │ ├── Variable_22 │ │ ├── Variable_23 │ │ ├── Variable_24 │ │ ├── Variable_25 │ │ ├── Variable_26 │ │ ├── Variable_27 │ │ ├── Variable_28 │ │ ├── Variable_29 │ │ ├── Variable_3 │ │ ├── Variable_30 │ │ ├── Variable_31 │ │ ├── Variable_32 │ │ ├── Variable_33 │ │ ├── Variable_34 │ │ ├── Variable_35 │ │ ├── Variable_36 │ │ ├── Variable_37 │ │ ├── Variable_38 │ │ ├── Variable_39 │ │ ├── Variable_4 │ │ ├── Variable_40 │ │ ├── Variable_41 │ │ ├── Variable_42 │ │ ├── Variable_43 │ │ ├── Variable_44 │ │ ├── Variable_45 │ │ ├── Variable_46 │ │ ├── Variable_47 │ │ ├── Variable_5 │ │ ├── Variable_6 │ │ ├── Variable_7 │ │ ├── Variable_8 │ │ ├── Variable_9 │ │ └── manifest.json │ ├── udnie │ │ ├── Variable │ │ ├── Variable_1 │ │ ├── Variable_10 │ │ ├── Variable_11 │ │ ├── Variable_12 │ │ ├── Variable_13 │ │ ├── Variable_14 │ │ ├── Variable_15 │ │ ├── Variable_16 │ │ ├── Variable_17 │ │ ├── Variable_18 │ │ ├── Variable_19 │ │ ├── Variable_2 │ │ ├── Variable_20 │ │ ├── Variable_21 │ │ ├── Variable_22 │ │ ├── Variable_23 │ │ ├── Variable_24 │ │ ├── Variable_25 │ │ ├── Variable_26 │ │ ├── Variable_27 │ │ ├── Variable_28 │ │ ├── Variable_29 │ │ ├── Variable_3 │ │ ├── Variable_30 │ │ ├── Variable_31 │ │ ├── Variable_32 │ │ ├── Variable_33 │ │ ├── Variable_34 │ │ ├── Variable_35 │ │ ├── Variable_36 │ │ ├── Variable_37 │ │ ├── Variable_38 │ │ ├── Variable_39 │ │ ├── Variable_4 │ │ ├── Variable_40 │ │ ├── Variable_41 │ │ ├── Variable_42 │ │ ├── Variable_43 │ │ ├── Variable_44 │ │ ├── Variable_45 │ │ ├── Variable_46 │ │ ├── Variable_47 │ │ ├── Variable_5 │ │ ├── Variable_6 │ │ ├── Variable_7 │ │ ├── Variable_8 │ │ ├── Variable_9 │ │ └── manifest.json │ ├── wave │ │ ├── Variable │ │ ├── Variable_1 │ │ ├── Variable_10 │ │ ├── Variable_11 │ │ ├── Variable_12 │ │ ├── Variable_13 │ │ ├── Variable_14 │ │ ├── Variable_15 │ │ ├── Variable_16 │ │ ├── Variable_17 │ │ ├── Variable_18 │ │ ├── Variable_19 │ │ ├── Variable_2 │ │ ├── Variable_20 │ │ ├── Variable_21 │ │ ├── Variable_22 │ │ ├── Variable_23 │ │ ├── Variable_24 │ │ ├── Variable_25 │ │ ├── Variable_26 │ │ ├── Variable_27 │ │ ├── Variable_28 │ │ ├── Variable_29 │ │ ├── Variable_3 │ │ ├── Variable_30 │ │ ├── Variable_31 │ │ ├── Variable_32 │ │ ├── Variable_33 │ │ ├── Variable_34 │ │ ├── Variable_35 │ │ ├── Variable_36 │ │ ├── Variable_37 │ │ ├── Variable_38 │ │ ├── Variable_39 │ │ ├── Variable_4 │ │ ├── Variable_40 │ │ ├── Variable_41 │ │ ├── Variable_42 │ │ ├── Variable_43 │ │ ├── Variable_44 │ │ ├── Variable_45 │ │ ├── Variable_46 │ │ ├── Variable_47 │ │ ├── Variable_5 │ │ ├── Variable_6 │ │ ├── Variable_7 │ │ ├── Variable_8 │ │ ├── Variable_9 │ │ └── manifest.json │ └── wreck │ │ ├── Variable │ │ ├── Variable_1 │ │ ├── Variable_10 │ │ ├── Variable_11 │ │ ├── Variable_12 │ │ ├── Variable_13 │ │ ├── Variable_14 │ │ ├── Variable_15 │ │ ├── Variable_16 │ │ ├── Variable_17 │ │ ├── Variable_18 │ │ ├── Variable_19 │ │ ├── Variable_2 │ │ ├── Variable_20 │ │ ├── Variable_21 │ │ ├── Variable_22 │ │ ├── Variable_23 │ │ ├── Variable_24 │ │ ├── Variable_25 │ │ ├── Variable_26 │ │ ├── Variable_27 │ │ ├── Variable_28 │ │ ├── Variable_29 │ │ ├── Variable_3 │ │ ├── Variable_30 │ │ ├── Variable_31 │ │ ├── Variable_32 │ │ ├── Variable_33 │ │ ├── Variable_34 │ │ ├── Variable_35 │ │ ├── Variable_36 │ │ ├── Variable_37 │ │ ├── Variable_38 │ │ ├── Variable_39 │ │ ├── Variable_4 │ │ ├── Variable_40 │ │ ├── Variable_41 │ │ ├── Variable_42 │ │ ├── Variable_43 │ │ ├── Variable_44 │ │ ├── Variable_45 │ │ ├── Variable_46 │ │ ├── Variable_47 │ │ ├── Variable_5 │ │ ├── Variable_6 │ │ ├── Variable_7 │ │ ├── Variable_8 │ │ ├── Variable_9 │ │ └── manifest.json ├── images │ ├── diana.jpg │ ├── face.jpg │ ├── la_muse.jpg │ ├── rain_princess.jpg │ ├── scream.jpg │ ├── stata.jpg │ ├── udnie.jpg │ ├── wave.jpg │ └── wreck.jpg ├── net.ts ├── polymer-spec.ts ├── styletransfer-demo.html ├── styletransfer-demo.ts ├── styletransfer.html └── support.js ├── tsconfig.json └── tslint.json /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | src/bundle.js 3 | src/*.js.map 4 | build/ 5 | bower_components/ 6 | 7 | npm-debug.log 8 | .DS_Store 9 | dist/ 10 | .idea/ 11 | 12 | *~ 13 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "7" 4 | install: 5 | - "npm install && bower install && mkdir build" 6 | script: 7 | - "./scripts/deploy-demo src/styletransfer-demo.ts src/styletransfer-demo.html build" 8 | - "mv build/styletransfer-demo.html build/index.html" 9 | - "cp src/support.js build/support.js" 10 | - "cp -r src/images build/images" 11 | - "cp -r src/ckpts build/ckpts" 12 | deploy: 13 | provider: pages 14 | skip_cleanup: true 15 | github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard 16 | on: 17 | branch: master 18 | local_dir: "build" 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) [2017] [Reiichiro Nakano] 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Fast Neural Style Transfer in browser with deeplearn.js 2 | 3 | DEPRECATED: This repository has been deprecated and is no longer actively maintained (build instructions no longer work either). There is a much, much better version (where you can use ANY style) at https://github.com/reiinakano/arbitrary-image-stylization-tfjs. If you're *really* interested in this version of fast style transfer, this code has been integrated into the [ml5.js](https://github.com/ml5js/ml5-library) library and the TensorFlow.js version is actively maintained over there. 4 | 5 | This repository contains an implementation of the Fast Neural Style Transfer algorithm running fully inside a browser using the Deeplearn.JS library. 6 | 7 | Demo website: https://reiinakano.github.io/fast-style-transfer-deeplearnjs 8 | 9 | ![demo_screen](demo_screen.png) 10 | 11 | ## FAQ 12 | 13 | ### What is this about? 14 | 15 | This is an implementation of the Fast Neural Style Transfer algorithm running purely on the browser using the Deeplearn.JS library. Basically, a neural network attempts to "draw" one picture, the Content, in the style of another, the Style. 16 | 17 | ### Is my data safe? Can you see my webcam pics? 18 | 19 | Your data and pictures here never leave your computer! In fact, this is one of the main advantages of running neural networks in your browser. Instead of sending us your data, we send *you* both the model *and* the code to run the model. These are then run by your browser. 20 | 21 | ### How big are the models I'm downloading? 22 | 23 | For each available style, your browser will download a model around ~6.6MB in size. Be careful if you have limited bandwidth (mobile data users). 24 | 25 | ### The web page is ugly. 26 | 27 | I know. Sorry, I'm not really a UI designer. I have about a 10 minute tolerance for tweaking HTML and CSS until I give up. The good news is, it's all open source on Github! If you want to help improve the page's design, please send a pull request! :) 28 | 29 | ## Development 30 | 31 | To run this locally, clone the project and prepare the development environment: 32 | 33 | ```bash 34 | $ git clone https://github.com/reiinakano/fast-style-transfer-deeplearnjs.git 35 | $ cd fast-style-transfer-deeplearnjs 36 | $ npm install && bower install # Install node modules and bower components 37 | ``` 38 | 39 | To interactively develop the application 40 | 41 | ```bash 42 | $ ./scripts/watch-demo src/styletransfer-demo.ts 43 | >> Waiting for initial compile... 44 | >> 1023189 bytes written to src/bundle.js (0.71 seconds) at 2:20:06 AM 45 | >> Starting up http-server, serving ./ 46 | >> Available on: 47 | >> http://127.0.0.1:8080 48 | >> Hit CTRL-C to stop the server 49 | ``` 50 | 51 | The application will be available at `http://localhost:8080/src/styletransfer-demo.html` and will watch for changes of typescript code. 52 | 53 | ## Adding your own styles 54 | 55 | The way Fast Neural Style Transfer works is, one has to train a new neural network for each "Style" image and upload it to the server. Training takes 4-6 hours on a relatively powerful GPU (Maxwell Titan X). 56 | 57 | To train your own style model from scratch, please follow the instructions from this [Github repository](https://github.com/lengstrom/fast-style-transfer) to get your own .ckpt file. You will need Python, Tensorflow, and a decent GPU. 58 | 59 | Once you have the `model.ckpt` file for your style, run the following: 60 | 61 | ```bash 62 | $ python scripts/dump_checkpoint_vars.py --output_dir=src/ckpts/my-new-style --checkpoint_file=/path/to/model.ckpt 63 | $ python scripts/remove_optimizer_variables.py --output_dir=src/ckpts/my-new-style 64 | ``` 65 | 66 | If all goes well, `src/ckpts/my-new-style` should contain ~6.7MB of 49 items including a `manifest.json` file. 67 | 68 | Adding the style to the application is then as simple as modifying the `STYLE_MAPPINGS` variable in `src/styletransfer-demo.ts`. 69 | 70 | If you're able to successfully achieve cool new styles, I'd be glad to add them to this demo! 71 | 72 | ## Credits 73 | 74 | Credits belong to the following: 75 | 76 | * The authors of the original [Neural Style Transfer paper](https://arxiv.org/abs/1508.06576). 77 | * The authors of the paper introducing [Real-Time Style Transfer](https://arxiv.org/abs/1603.08155). 78 | * The author of the [fast-style-transfer](https://github.com/lengstrom/fast-style-transfer) Github repository. 79 | * The authors of [Deeplearn.JS](https://github.com/PAIR-code/deeplearnjs) 80 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fast-style-transfer-deeplearnjs", 3 | "description": "", 4 | "main": "", 5 | "authors": [], 6 | "license": "MIT", 7 | "homepage": "", 8 | "private": true, 9 | "ignore": [ 10 | "**/.*", 11 | "node_modules", 12 | "bower_components", 13 | "test", 14 | "tests" 15 | ], 16 | "dependencies": { 17 | "paper-dialog-scrollable": "1.*.*", 18 | "paper-icon-button": "1.*.*", 19 | "paper-tooltip": "1.*.*", 20 | "paper-toggle-button": "1.*.*", 21 | "paper-radio-group": "1.*.*", 22 | "paper-radio-button": "1.*.*", 23 | "paper-dialog": "1.*.*", 24 | "paper-button": "1.*.*", 25 | "paper-item": "1.*.*", 26 | "paper-dropdown-menu": "1.*.*", 27 | "paper-listbox": "1.*.*", 28 | "iron-icons": "1.*.*", 29 | "paper-slider": "1.*.*", 30 | "polymer": "1.*.*", 31 | "paper-spinner": "1.*.*", 32 | "paper-progress": "1.*.*" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /demo_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/demo_screen.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fast-style-transfer-deeplearnjs", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "MIT", 11 | "devDependencies": { 12 | "@types/jasmine": "~2.5.53", 13 | "@types/polymer": "~1.1.31", 14 | "bower": "~1.8.0", 15 | "browserify": "~14.4.0", 16 | "cross-spawn": "~5.1.0", 17 | "deeplearn": "0.3.11", 18 | "http-server": "~0.10.0", 19 | "jasmine-core": "~2.6.4", 20 | "polymer-bundler": "~3.0.1", 21 | "tsify": "~3.0.1", 22 | "tslint": "~5.6.0", 23 | "typedoc": "~0.8.0", 24 | "typescript": "2.4.2", 25 | "uglify-js": "~3.0.28", 26 | "watchify": "~3.9.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /scripts/build-demo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Copyright 2017 Google Inc. All Rights Reserved. 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // ============================================================================= 16 | 17 | const path = require('path'); 18 | const spawn = require('cross-spawn'); 19 | 20 | const startTsFilePath = process.argv[2]; 21 | const outDir = process.argv[3]; 22 | 23 | let outputPath; 24 | if (outDir != null) { 25 | outputPath = path.join(outDir, 'bundle.js'); 26 | } else { 27 | outputPath = path.join(path.dirname(startTsFilePath), 'bundle.js') 28 | } 29 | 30 | 31 | const cmd = path.join('node_modules', '.bin', 'browserify'); 32 | const child = spawn(cmd, [startTsFilePath, '-p', '[tsify]', '-o' , outputPath], 33 | {detached: false}); 34 | child.stdout.pipe(process.stdout); 35 | child.stderr.pipe(process.stderr); 36 | child.on('close', () => console.log(`Stored bundle in ${outputPath}`)); 37 | -------------------------------------------------------------------------------- /scripts/deploy-demo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Copyright 2017 Google Inc. All Rights Reserved. 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // ============================================================================= 16 | 17 | const path = require('path'); 18 | const spawn = require('cross-spawn'); 19 | 20 | const startTsFilePath = process.argv[2]; 21 | const startHTMLFilePath = process.argv[3]; 22 | const outDir = process.argv[4]; 23 | 24 | const cmd = path.join('scripts', 'build-demo'); 25 | const child = spawn(cmd, [startTsFilePath, outDir], {detached: false}); 26 | child.stdout.pipe(process.stdout); 27 | child.stderr.pipe(process.stderr); 28 | child.on('close', () => { 29 | const bundlePath = path.join(outDir, path.basename(startHTMLFilePath)); 30 | const cmd = path.join('node_modules', '.bin', 'polymer-bundler'); 31 | const child = spawn(cmd, ['--inline-scripts', '--inline-css', 32 | '--out-html', bundlePath, startHTMLFilePath], {detached: false}); 33 | child.stdout.pipe(process.stdout); 34 | child.stderr.pipe(process.stderr); 35 | child.on('close', () => console.log(`Saved bundled demo at ${bundlePath}`)); 36 | }); 37 | -------------------------------------------------------------------------------- /scripts/dump_checkpoint_vars.py: -------------------------------------------------------------------------------- 1 | # Copyright 2017 Google Inc. All Rights Reserved. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # ============================================================================== 15 | """A script to dump tensorflow checkpoint variables to deeplearnjs. 16 | 17 | This script takes a checkpoint file and writes all of the variables in the 18 | checkpoint to a directory. 19 | """ 20 | 21 | from __future__ import absolute_import 22 | from __future__ import division 23 | from __future__ import print_function 24 | 25 | import argparse 26 | import json 27 | import os 28 | import re 29 | import string 30 | import tensorflow as tf 31 | 32 | FLAGS = None 33 | FILENAME_CHARS = string.ascii_letters + string.digits + '_' 34 | 35 | 36 | def _var_name_to_filename(var_name): 37 | chars = [] 38 | for c in var_name: 39 | if c in FILENAME_CHARS: 40 | chars.append(c) 41 | elif c == '/': 42 | chars.append('_') 43 | return ''.join(chars) 44 | 45 | 46 | def main(): 47 | chk_fpath = os.path.expanduser(FLAGS.checkpoint_file) 48 | reader = tf.train.NewCheckpointReader(chk_fpath) 49 | var_to_shape_map = reader.get_variable_to_shape_map() 50 | output_dir = os.path.expanduser(FLAGS.output_dir) 51 | tf.gfile.MakeDirs(output_dir) 52 | manifest = {} 53 | remove_vars_compiled_re = re.compile(FLAGS.remove_variables_regex) 54 | 55 | var_filenames_strs = [] 56 | for name in var_to_shape_map: 57 | if (FLAGS.remove_variables_regex and 58 | re.match(remove_vars_compiled_re, name)) or name == 'global_step': 59 | print('Ignoring ' + name) 60 | continue 61 | var_filename = _var_name_to_filename(name) 62 | manifest[name] = {'filename': var_filename, 'shape': var_to_shape_map[name]} 63 | 64 | print('Writing variable ' + name + '...') 65 | tensor = reader.get_tensor(name) 66 | with open(os.path.join(output_dir, var_filename), 'wb') as f: 67 | f.write(tensor.tobytes()) 68 | 69 | var_filenames_strs.append("\"" + var_filename + "\"") 70 | 71 | manifest_fpath = os.path.join(output_dir, 'manifest.json') 72 | print('Writing manifest to ' + manifest_fpath) 73 | with open(manifest_fpath, 'w') as f: 74 | f.write(json.dumps(manifest, indent=2, sort_keys=True)) 75 | print('Done!') 76 | 77 | if __name__ == '__main__': 78 | parser = argparse.ArgumentParser() 79 | parser.add_argument( 80 | '--checkpoint_file', 81 | type=str, 82 | required=True, 83 | help='Path to the model checkpoint') 84 | parser.add_argument( 85 | '--output_dir', 86 | type=str, 87 | required=True, 88 | help='The output directory where to store the converted weights') 89 | parser.add_argument( 90 | '--remove_variables_regex', 91 | type=str, 92 | default='', 93 | help='A regular expression to match against variable names that should ' 94 | 'not be included') 95 | FLAGS, unparsed = parser.parse_known_args() 96 | if unparsed: 97 | print('Error, unrecognized flags:', unparsed) 98 | exit(-1) 99 | main() 100 | -------------------------------------------------------------------------------- /scripts/remove_optimizer_variables.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | from __future__ import division 3 | from __future__ import print_function 4 | 5 | import argparse 6 | import json 7 | import os 8 | import re 9 | import string 10 | 11 | FLAGS = None 12 | FILENAME_CHARS = string.ascii_letters + string.digits + '_' 13 | 14 | 15 | def main(): 16 | vars_dir = os.path.expanduser(FLAGS.output_dir) 17 | manifest_file = os.path.join(FLAGS.output_dir, 'manifest.json') 18 | with open(manifest_file) as f: 19 | manifest = json.load(f) 20 | new_manifest = {key: manifest[key] for key in manifest 21 | if 'Adam' not in key and 'beta' not in key} 22 | with open(manifest_file, 'w') as f: 23 | json.dump(new_manifest, f, indent=2, sort_keys=True) 24 | 25 | for name in os.listdir(FLAGS.output_dir): 26 | if 'Adam' in name or 'beta' in name: 27 | os.remove(os.path.join(FLAGS.output_dir, name)) 28 | 29 | 30 | 31 | if __name__ == '__main__': 32 | parser = argparse.ArgumentParser() 33 | parser.add_argument( 34 | '--output_dir', 35 | type=str, 36 | required=True, 37 | help='The output directory where to store the converted weights') 38 | FLAGS, unparsed = parser.parse_known_args() 39 | if unparsed: 40 | print('Error, unrecognized flags:', unparsed) 41 | exit(-1) 42 | main() 43 | -------------------------------------------------------------------------------- /scripts/watch-demo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Copyright 2017 Google Inc. All Rights Reserved. 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // ============================================================================= 16 | 17 | const path = require('path'); 18 | const spawn = require('cross-spawn'); 19 | 20 | const startTsFilePath = process.argv[2]; 21 | const outputPath = path.join(path.dirname(startTsFilePath), 'bundle.js') 22 | 23 | const cmd = path.join('node_modules', '.bin', 'watchify'); 24 | const watchify = spawn(cmd, [startTsFilePath, '-p', '[tsify]', '-v', '--debug', 25 | '-o' , outputPath], {detached: false}); 26 | watchify.stdout.pipe(process.stdout); 27 | watchify.stderr.pipe(process.stderr); 28 | 29 | let httpServerStarted = false; 30 | 31 | console.log('Waiting for initial compile...'); 32 | watchify.stderr.on('data', (data) => { 33 | if (data.toString().includes(`bytes written to`)) { 34 | if (!httpServerStarted) { 35 | const httpCmd = path.join('node_modules', '.bin', 'http-server'); 36 | const httpServer = spawn(httpCmd, ['-c-1'], { detached: false}); 37 | httpServer.stdout.pipe(process.stdout); 38 | httpServer.stderr.pipe(process.stderr); 39 | httpServerStarted = true; 40 | } 41 | } 42 | }); 43 | -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_1 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_10 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_11 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_12 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_13 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_14 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_15 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_16 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_17 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_18 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_19 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_2 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_20 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_21: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_21 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_22 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_23 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_24 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_25 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_26 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_27 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_28 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_29: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_29 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_3 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_30: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_30 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_31 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_32 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_33: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_33 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_34: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_34 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_35 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_36 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_37 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_38: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_38 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_39 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_4 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_40 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_41 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_42 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_43: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_43 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_44: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_44 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_45: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_45 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_46 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_47 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_5 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_6 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_7 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_8 -------------------------------------------------------------------------------- /src/ckpts/la_muse/Variable_9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/la_muse/Variable_9 -------------------------------------------------------------------------------- /src/ckpts/la_muse/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Variable": { 3 | "filename": "Variable", 4 | "shape": [ 5 | 9, 6 | 9, 7 | 3, 8 | 32 9 | ] 10 | }, 11 | "Variable_1": { 12 | "filename": "Variable_1", 13 | "shape": [ 14 | 32 15 | ] 16 | }, 17 | "Variable_10": { 18 | "filename": "Variable_10", 19 | "shape": [ 20 | 128 21 | ] 22 | }, 23 | "Variable_11": { 24 | "filename": "Variable_11", 25 | "shape": [ 26 | 128 27 | ] 28 | }, 29 | "Variable_12": { 30 | "filename": "Variable_12", 31 | "shape": [ 32 | 3, 33 | 3, 34 | 128, 35 | 128 36 | ] 37 | }, 38 | "Variable_13": { 39 | "filename": "Variable_13", 40 | "shape": [ 41 | 128 42 | ] 43 | }, 44 | "Variable_14": { 45 | "filename": "Variable_14", 46 | "shape": [ 47 | 128 48 | ] 49 | }, 50 | "Variable_15": { 51 | "filename": "Variable_15", 52 | "shape": [ 53 | 3, 54 | 3, 55 | 128, 56 | 128 57 | ] 58 | }, 59 | "Variable_16": { 60 | "filename": "Variable_16", 61 | "shape": [ 62 | 128 63 | ] 64 | }, 65 | "Variable_17": { 66 | "filename": "Variable_17", 67 | "shape": [ 68 | 128 69 | ] 70 | }, 71 | "Variable_18": { 72 | "filename": "Variable_18", 73 | "shape": [ 74 | 3, 75 | 3, 76 | 128, 77 | 128 78 | ] 79 | }, 80 | "Variable_19": { 81 | "filename": "Variable_19", 82 | "shape": [ 83 | 128 84 | ] 85 | }, 86 | "Variable_2": { 87 | "filename": "Variable_2", 88 | "shape": [ 89 | 32 90 | ] 91 | }, 92 | "Variable_20": { 93 | "filename": "Variable_20", 94 | "shape": [ 95 | 128 96 | ] 97 | }, 98 | "Variable_21": { 99 | "filename": "Variable_21", 100 | "shape": [ 101 | 3, 102 | 3, 103 | 128, 104 | 128 105 | ] 106 | }, 107 | "Variable_22": { 108 | "filename": "Variable_22", 109 | "shape": [ 110 | 128 111 | ] 112 | }, 113 | "Variable_23": { 114 | "filename": "Variable_23", 115 | "shape": [ 116 | 128 117 | ] 118 | }, 119 | "Variable_24": { 120 | "filename": "Variable_24", 121 | "shape": [ 122 | 3, 123 | 3, 124 | 128, 125 | 128 126 | ] 127 | }, 128 | "Variable_25": { 129 | "filename": "Variable_25", 130 | "shape": [ 131 | 128 132 | ] 133 | }, 134 | "Variable_26": { 135 | "filename": "Variable_26", 136 | "shape": [ 137 | 128 138 | ] 139 | }, 140 | "Variable_27": { 141 | "filename": "Variable_27", 142 | "shape": [ 143 | 3, 144 | 3, 145 | 128, 146 | 128 147 | ] 148 | }, 149 | "Variable_28": { 150 | "filename": "Variable_28", 151 | "shape": [ 152 | 128 153 | ] 154 | }, 155 | "Variable_29": { 156 | "filename": "Variable_29", 157 | "shape": [ 158 | 128 159 | ] 160 | }, 161 | "Variable_3": { 162 | "filename": "Variable_3", 163 | "shape": [ 164 | 3, 165 | 3, 166 | 32, 167 | 64 168 | ] 169 | }, 170 | "Variable_30": { 171 | "filename": "Variable_30", 172 | "shape": [ 173 | 3, 174 | 3, 175 | 128, 176 | 128 177 | ] 178 | }, 179 | "Variable_31": { 180 | "filename": "Variable_31", 181 | "shape": [ 182 | 128 183 | ] 184 | }, 185 | "Variable_32": { 186 | "filename": "Variable_32", 187 | "shape": [ 188 | 128 189 | ] 190 | }, 191 | "Variable_33": { 192 | "filename": "Variable_33", 193 | "shape": [ 194 | 3, 195 | 3, 196 | 128, 197 | 128 198 | ] 199 | }, 200 | "Variable_34": { 201 | "filename": "Variable_34", 202 | "shape": [ 203 | 128 204 | ] 205 | }, 206 | "Variable_35": { 207 | "filename": "Variable_35", 208 | "shape": [ 209 | 128 210 | ] 211 | }, 212 | "Variable_36": { 213 | "filename": "Variable_36", 214 | "shape": [ 215 | 3, 216 | 3, 217 | 128, 218 | 128 219 | ] 220 | }, 221 | "Variable_37": { 222 | "filename": "Variable_37", 223 | "shape": [ 224 | 128 225 | ] 226 | }, 227 | "Variable_38": { 228 | "filename": "Variable_38", 229 | "shape": [ 230 | 128 231 | ] 232 | }, 233 | "Variable_39": { 234 | "filename": "Variable_39", 235 | "shape": [ 236 | 3, 237 | 3, 238 | 64, 239 | 128 240 | ] 241 | }, 242 | "Variable_4": { 243 | "filename": "Variable_4", 244 | "shape": [ 245 | 64 246 | ] 247 | }, 248 | "Variable_40": { 249 | "filename": "Variable_40", 250 | "shape": [ 251 | 64 252 | ] 253 | }, 254 | "Variable_41": { 255 | "filename": "Variable_41", 256 | "shape": [ 257 | 64 258 | ] 259 | }, 260 | "Variable_42": { 261 | "filename": "Variable_42", 262 | "shape": [ 263 | 3, 264 | 3, 265 | 32, 266 | 64 267 | ] 268 | }, 269 | "Variable_43": { 270 | "filename": "Variable_43", 271 | "shape": [ 272 | 32 273 | ] 274 | }, 275 | "Variable_44": { 276 | "filename": "Variable_44", 277 | "shape": [ 278 | 32 279 | ] 280 | }, 281 | "Variable_45": { 282 | "filename": "Variable_45", 283 | "shape": [ 284 | 9, 285 | 9, 286 | 32, 287 | 3 288 | ] 289 | }, 290 | "Variable_46": { 291 | "filename": "Variable_46", 292 | "shape": [ 293 | 3 294 | ] 295 | }, 296 | "Variable_47": { 297 | "filename": "Variable_47", 298 | "shape": [ 299 | 3 300 | ] 301 | }, 302 | "Variable_5": { 303 | "filename": "Variable_5", 304 | "shape": [ 305 | 64 306 | ] 307 | }, 308 | "Variable_6": { 309 | "filename": "Variable_6", 310 | "shape": [ 311 | 3, 312 | 3, 313 | 64, 314 | 128 315 | ] 316 | }, 317 | "Variable_7": { 318 | "filename": "Variable_7", 319 | "shape": [ 320 | 128 321 | ] 322 | }, 323 | "Variable_8": { 324 | "filename": "Variable_8", 325 | "shape": [ 326 | 128 327 | ] 328 | }, 329 | "Variable_9": { 330 | "filename": "Variable_9", 331 | "shape": [ 332 | 3, 333 | 3, 334 | 128, 335 | 128 336 | ] 337 | } 338 | } -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_1 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_10 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_11 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_12 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_13 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_14 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_15 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_16 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_17 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_18 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_19 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_2 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_20 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_21: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_21 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_22 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_23 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_24 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_25 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_26 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_27 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_28 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_29: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_29 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_3 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_30: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_30 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_31 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_32 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_33: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_33 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_34: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_34 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_35 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_36 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_37 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_38: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_38 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_39 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_4 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_40 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_41 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_42 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_43: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_43 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_44: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_44 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_45: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_45 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_46 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_47 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_5 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_6 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_7 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_8 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/Variable_9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/rain_princess/Variable_9 -------------------------------------------------------------------------------- /src/ckpts/rain_princess/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Variable": { 3 | "filename": "Variable", 4 | "shape": [ 5 | 9, 6 | 9, 7 | 3, 8 | 32 9 | ] 10 | }, 11 | "Variable_1": { 12 | "filename": "Variable_1", 13 | "shape": [ 14 | 32 15 | ] 16 | }, 17 | "Variable_10": { 18 | "filename": "Variable_10", 19 | "shape": [ 20 | 128 21 | ] 22 | }, 23 | "Variable_11": { 24 | "filename": "Variable_11", 25 | "shape": [ 26 | 128 27 | ] 28 | }, 29 | "Variable_12": { 30 | "filename": "Variable_12", 31 | "shape": [ 32 | 3, 33 | 3, 34 | 128, 35 | 128 36 | ] 37 | }, 38 | "Variable_13": { 39 | "filename": "Variable_13", 40 | "shape": [ 41 | 128 42 | ] 43 | }, 44 | "Variable_14": { 45 | "filename": "Variable_14", 46 | "shape": [ 47 | 128 48 | ] 49 | }, 50 | "Variable_15": { 51 | "filename": "Variable_15", 52 | "shape": [ 53 | 3, 54 | 3, 55 | 128, 56 | 128 57 | ] 58 | }, 59 | "Variable_16": { 60 | "filename": "Variable_16", 61 | "shape": [ 62 | 128 63 | ] 64 | }, 65 | "Variable_17": { 66 | "filename": "Variable_17", 67 | "shape": [ 68 | 128 69 | ] 70 | }, 71 | "Variable_18": { 72 | "filename": "Variable_18", 73 | "shape": [ 74 | 3, 75 | 3, 76 | 128, 77 | 128 78 | ] 79 | }, 80 | "Variable_19": { 81 | "filename": "Variable_19", 82 | "shape": [ 83 | 128 84 | ] 85 | }, 86 | "Variable_2": { 87 | "filename": "Variable_2", 88 | "shape": [ 89 | 32 90 | ] 91 | }, 92 | "Variable_20": { 93 | "filename": "Variable_20", 94 | "shape": [ 95 | 128 96 | ] 97 | }, 98 | "Variable_21": { 99 | "filename": "Variable_21", 100 | "shape": [ 101 | 3, 102 | 3, 103 | 128, 104 | 128 105 | ] 106 | }, 107 | "Variable_22": { 108 | "filename": "Variable_22", 109 | "shape": [ 110 | 128 111 | ] 112 | }, 113 | "Variable_23": { 114 | "filename": "Variable_23", 115 | "shape": [ 116 | 128 117 | ] 118 | }, 119 | "Variable_24": { 120 | "filename": "Variable_24", 121 | "shape": [ 122 | 3, 123 | 3, 124 | 128, 125 | 128 126 | ] 127 | }, 128 | "Variable_25": { 129 | "filename": "Variable_25", 130 | "shape": [ 131 | 128 132 | ] 133 | }, 134 | "Variable_26": { 135 | "filename": "Variable_26", 136 | "shape": [ 137 | 128 138 | ] 139 | }, 140 | "Variable_27": { 141 | "filename": "Variable_27", 142 | "shape": [ 143 | 3, 144 | 3, 145 | 128, 146 | 128 147 | ] 148 | }, 149 | "Variable_28": { 150 | "filename": "Variable_28", 151 | "shape": [ 152 | 128 153 | ] 154 | }, 155 | "Variable_29": { 156 | "filename": "Variable_29", 157 | "shape": [ 158 | 128 159 | ] 160 | }, 161 | "Variable_3": { 162 | "filename": "Variable_3", 163 | "shape": [ 164 | 3, 165 | 3, 166 | 32, 167 | 64 168 | ] 169 | }, 170 | "Variable_30": { 171 | "filename": "Variable_30", 172 | "shape": [ 173 | 3, 174 | 3, 175 | 128, 176 | 128 177 | ] 178 | }, 179 | "Variable_31": { 180 | "filename": "Variable_31", 181 | "shape": [ 182 | 128 183 | ] 184 | }, 185 | "Variable_32": { 186 | "filename": "Variable_32", 187 | "shape": [ 188 | 128 189 | ] 190 | }, 191 | "Variable_33": { 192 | "filename": "Variable_33", 193 | "shape": [ 194 | 3, 195 | 3, 196 | 128, 197 | 128 198 | ] 199 | }, 200 | "Variable_34": { 201 | "filename": "Variable_34", 202 | "shape": [ 203 | 128 204 | ] 205 | }, 206 | "Variable_35": { 207 | "filename": "Variable_35", 208 | "shape": [ 209 | 128 210 | ] 211 | }, 212 | "Variable_36": { 213 | "filename": "Variable_36", 214 | "shape": [ 215 | 3, 216 | 3, 217 | 128, 218 | 128 219 | ] 220 | }, 221 | "Variable_37": { 222 | "filename": "Variable_37", 223 | "shape": [ 224 | 128 225 | ] 226 | }, 227 | "Variable_38": { 228 | "filename": "Variable_38", 229 | "shape": [ 230 | 128 231 | ] 232 | }, 233 | "Variable_39": { 234 | "filename": "Variable_39", 235 | "shape": [ 236 | 3, 237 | 3, 238 | 64, 239 | 128 240 | ] 241 | }, 242 | "Variable_4": { 243 | "filename": "Variable_4", 244 | "shape": [ 245 | 64 246 | ] 247 | }, 248 | "Variable_40": { 249 | "filename": "Variable_40", 250 | "shape": [ 251 | 64 252 | ] 253 | }, 254 | "Variable_41": { 255 | "filename": "Variable_41", 256 | "shape": [ 257 | 64 258 | ] 259 | }, 260 | "Variable_42": { 261 | "filename": "Variable_42", 262 | "shape": [ 263 | 3, 264 | 3, 265 | 32, 266 | 64 267 | ] 268 | }, 269 | "Variable_43": { 270 | "filename": "Variable_43", 271 | "shape": [ 272 | 32 273 | ] 274 | }, 275 | "Variable_44": { 276 | "filename": "Variable_44", 277 | "shape": [ 278 | 32 279 | ] 280 | }, 281 | "Variable_45": { 282 | "filename": "Variable_45", 283 | "shape": [ 284 | 9, 285 | 9, 286 | 32, 287 | 3 288 | ] 289 | }, 290 | "Variable_46": { 291 | "filename": "Variable_46", 292 | "shape": [ 293 | 3 294 | ] 295 | }, 296 | "Variable_47": { 297 | "filename": "Variable_47", 298 | "shape": [ 299 | 3 300 | ] 301 | }, 302 | "Variable_5": { 303 | "filename": "Variable_5", 304 | "shape": [ 305 | 64 306 | ] 307 | }, 308 | "Variable_6": { 309 | "filename": "Variable_6", 310 | "shape": [ 311 | 3, 312 | 3, 313 | 64, 314 | 128 315 | ] 316 | }, 317 | "Variable_7": { 318 | "filename": "Variable_7", 319 | "shape": [ 320 | 128 321 | ] 322 | }, 323 | "Variable_8": { 324 | "filename": "Variable_8", 325 | "shape": [ 326 | 128 327 | ] 328 | }, 329 | "Variable_9": { 330 | "filename": "Variable_9", 331 | "shape": [ 332 | 3, 333 | 3, 334 | 128, 335 | 128 336 | ] 337 | } 338 | } -------------------------------------------------------------------------------- /src/ckpts/scream/Variable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_1 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_10 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_11 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_12 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_13 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_14 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_15 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_16 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_17 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_18 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_19 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_2 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_20 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_21: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_21 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_22 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_23 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_24 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_25 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_26 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_27 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_28 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_29: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_29 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_3 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_30: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_30 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_31 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_32 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_33: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_33 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_34: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_34 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_35 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_36 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_37 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_38: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_38 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_39 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_4 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_40 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_41 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_42 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_43: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_43 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_44: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_44 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_45: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_45 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_46 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_47 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_5 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_6 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_7 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_8 -------------------------------------------------------------------------------- /src/ckpts/scream/Variable_9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/scream/Variable_9 -------------------------------------------------------------------------------- /src/ckpts/scream/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Variable": { 3 | "filename": "Variable", 4 | "shape": [ 5 | 9, 6 | 9, 7 | 3, 8 | 32 9 | ] 10 | }, 11 | "Variable_1": { 12 | "filename": "Variable_1", 13 | "shape": [ 14 | 32 15 | ] 16 | }, 17 | "Variable_10": { 18 | "filename": "Variable_10", 19 | "shape": [ 20 | 128 21 | ] 22 | }, 23 | "Variable_11": { 24 | "filename": "Variable_11", 25 | "shape": [ 26 | 128 27 | ] 28 | }, 29 | "Variable_12": { 30 | "filename": "Variable_12", 31 | "shape": [ 32 | 3, 33 | 3, 34 | 128, 35 | 128 36 | ] 37 | }, 38 | "Variable_13": { 39 | "filename": "Variable_13", 40 | "shape": [ 41 | 128 42 | ] 43 | }, 44 | "Variable_14": { 45 | "filename": "Variable_14", 46 | "shape": [ 47 | 128 48 | ] 49 | }, 50 | "Variable_15": { 51 | "filename": "Variable_15", 52 | "shape": [ 53 | 3, 54 | 3, 55 | 128, 56 | 128 57 | ] 58 | }, 59 | "Variable_16": { 60 | "filename": "Variable_16", 61 | "shape": [ 62 | 128 63 | ] 64 | }, 65 | "Variable_17": { 66 | "filename": "Variable_17", 67 | "shape": [ 68 | 128 69 | ] 70 | }, 71 | "Variable_18": { 72 | "filename": "Variable_18", 73 | "shape": [ 74 | 3, 75 | 3, 76 | 128, 77 | 128 78 | ] 79 | }, 80 | "Variable_19": { 81 | "filename": "Variable_19", 82 | "shape": [ 83 | 128 84 | ] 85 | }, 86 | "Variable_2": { 87 | "filename": "Variable_2", 88 | "shape": [ 89 | 32 90 | ] 91 | }, 92 | "Variable_20": { 93 | "filename": "Variable_20", 94 | "shape": [ 95 | 128 96 | ] 97 | }, 98 | "Variable_21": { 99 | "filename": "Variable_21", 100 | "shape": [ 101 | 3, 102 | 3, 103 | 128, 104 | 128 105 | ] 106 | }, 107 | "Variable_22": { 108 | "filename": "Variable_22", 109 | "shape": [ 110 | 128 111 | ] 112 | }, 113 | "Variable_23": { 114 | "filename": "Variable_23", 115 | "shape": [ 116 | 128 117 | ] 118 | }, 119 | "Variable_24": { 120 | "filename": "Variable_24", 121 | "shape": [ 122 | 3, 123 | 3, 124 | 128, 125 | 128 126 | ] 127 | }, 128 | "Variable_25": { 129 | "filename": "Variable_25", 130 | "shape": [ 131 | 128 132 | ] 133 | }, 134 | "Variable_26": { 135 | "filename": "Variable_26", 136 | "shape": [ 137 | 128 138 | ] 139 | }, 140 | "Variable_27": { 141 | "filename": "Variable_27", 142 | "shape": [ 143 | 3, 144 | 3, 145 | 128, 146 | 128 147 | ] 148 | }, 149 | "Variable_28": { 150 | "filename": "Variable_28", 151 | "shape": [ 152 | 128 153 | ] 154 | }, 155 | "Variable_29": { 156 | "filename": "Variable_29", 157 | "shape": [ 158 | 128 159 | ] 160 | }, 161 | "Variable_3": { 162 | "filename": "Variable_3", 163 | "shape": [ 164 | 3, 165 | 3, 166 | 32, 167 | 64 168 | ] 169 | }, 170 | "Variable_30": { 171 | "filename": "Variable_30", 172 | "shape": [ 173 | 3, 174 | 3, 175 | 128, 176 | 128 177 | ] 178 | }, 179 | "Variable_31": { 180 | "filename": "Variable_31", 181 | "shape": [ 182 | 128 183 | ] 184 | }, 185 | "Variable_32": { 186 | "filename": "Variable_32", 187 | "shape": [ 188 | 128 189 | ] 190 | }, 191 | "Variable_33": { 192 | "filename": "Variable_33", 193 | "shape": [ 194 | 3, 195 | 3, 196 | 128, 197 | 128 198 | ] 199 | }, 200 | "Variable_34": { 201 | "filename": "Variable_34", 202 | "shape": [ 203 | 128 204 | ] 205 | }, 206 | "Variable_35": { 207 | "filename": "Variable_35", 208 | "shape": [ 209 | 128 210 | ] 211 | }, 212 | "Variable_36": { 213 | "filename": "Variable_36", 214 | "shape": [ 215 | 3, 216 | 3, 217 | 128, 218 | 128 219 | ] 220 | }, 221 | "Variable_37": { 222 | "filename": "Variable_37", 223 | "shape": [ 224 | 128 225 | ] 226 | }, 227 | "Variable_38": { 228 | "filename": "Variable_38", 229 | "shape": [ 230 | 128 231 | ] 232 | }, 233 | "Variable_39": { 234 | "filename": "Variable_39", 235 | "shape": [ 236 | 3, 237 | 3, 238 | 64, 239 | 128 240 | ] 241 | }, 242 | "Variable_4": { 243 | "filename": "Variable_4", 244 | "shape": [ 245 | 64 246 | ] 247 | }, 248 | "Variable_40": { 249 | "filename": "Variable_40", 250 | "shape": [ 251 | 64 252 | ] 253 | }, 254 | "Variable_41": { 255 | "filename": "Variable_41", 256 | "shape": [ 257 | 64 258 | ] 259 | }, 260 | "Variable_42": { 261 | "filename": "Variable_42", 262 | "shape": [ 263 | 3, 264 | 3, 265 | 32, 266 | 64 267 | ] 268 | }, 269 | "Variable_43": { 270 | "filename": "Variable_43", 271 | "shape": [ 272 | 32 273 | ] 274 | }, 275 | "Variable_44": { 276 | "filename": "Variable_44", 277 | "shape": [ 278 | 32 279 | ] 280 | }, 281 | "Variable_45": { 282 | "filename": "Variable_45", 283 | "shape": [ 284 | 9, 285 | 9, 286 | 32, 287 | 3 288 | ] 289 | }, 290 | "Variable_46": { 291 | "filename": "Variable_46", 292 | "shape": [ 293 | 3 294 | ] 295 | }, 296 | "Variable_47": { 297 | "filename": "Variable_47", 298 | "shape": [ 299 | 3 300 | ] 301 | }, 302 | "Variable_5": { 303 | "filename": "Variable_5", 304 | "shape": [ 305 | 64 306 | ] 307 | }, 308 | "Variable_6": { 309 | "filename": "Variable_6", 310 | "shape": [ 311 | 3, 312 | 3, 313 | 64, 314 | 128 315 | ] 316 | }, 317 | "Variable_7": { 318 | "filename": "Variable_7", 319 | "shape": [ 320 | 128 321 | ] 322 | }, 323 | "Variable_8": { 324 | "filename": "Variable_8", 325 | "shape": [ 326 | 128 327 | ] 328 | }, 329 | "Variable_9": { 330 | "filename": "Variable_9", 331 | "shape": [ 332 | 3, 333 | 3, 334 | 128, 335 | 128 336 | ] 337 | } 338 | } -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_1 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_10 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_11 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_12 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_13 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_14 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_15 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_16 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_17 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_18 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_19 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_2 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_20 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_21: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_21 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_22 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_23 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_24 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_25 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_26 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_27 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_28 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_29: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_29 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_3 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_30: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_30 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_31 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_32 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_33: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_33 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_34: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_34 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_35 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_36 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_37 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_38: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_38 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_39 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_4 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_40 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_41 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_42 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_43: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_43 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_44: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_44 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_45: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_45 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_46 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_47 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_5 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_6 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_7 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_8 -------------------------------------------------------------------------------- /src/ckpts/udnie/Variable_9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/udnie/Variable_9 -------------------------------------------------------------------------------- /src/ckpts/udnie/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Variable": { 3 | "filename": "Variable", 4 | "shape": [ 5 | 9, 6 | 9, 7 | 3, 8 | 32 9 | ] 10 | }, 11 | "Variable_1": { 12 | "filename": "Variable_1", 13 | "shape": [ 14 | 32 15 | ] 16 | }, 17 | "Variable_10": { 18 | "filename": "Variable_10", 19 | "shape": [ 20 | 128 21 | ] 22 | }, 23 | "Variable_11": { 24 | "filename": "Variable_11", 25 | "shape": [ 26 | 128 27 | ] 28 | }, 29 | "Variable_12": { 30 | "filename": "Variable_12", 31 | "shape": [ 32 | 3, 33 | 3, 34 | 128, 35 | 128 36 | ] 37 | }, 38 | "Variable_13": { 39 | "filename": "Variable_13", 40 | "shape": [ 41 | 128 42 | ] 43 | }, 44 | "Variable_14": { 45 | "filename": "Variable_14", 46 | "shape": [ 47 | 128 48 | ] 49 | }, 50 | "Variable_15": { 51 | "filename": "Variable_15", 52 | "shape": [ 53 | 3, 54 | 3, 55 | 128, 56 | 128 57 | ] 58 | }, 59 | "Variable_16": { 60 | "filename": "Variable_16", 61 | "shape": [ 62 | 128 63 | ] 64 | }, 65 | "Variable_17": { 66 | "filename": "Variable_17", 67 | "shape": [ 68 | 128 69 | ] 70 | }, 71 | "Variable_18": { 72 | "filename": "Variable_18", 73 | "shape": [ 74 | 3, 75 | 3, 76 | 128, 77 | 128 78 | ] 79 | }, 80 | "Variable_19": { 81 | "filename": "Variable_19", 82 | "shape": [ 83 | 128 84 | ] 85 | }, 86 | "Variable_2": { 87 | "filename": "Variable_2", 88 | "shape": [ 89 | 32 90 | ] 91 | }, 92 | "Variable_20": { 93 | "filename": "Variable_20", 94 | "shape": [ 95 | 128 96 | ] 97 | }, 98 | "Variable_21": { 99 | "filename": "Variable_21", 100 | "shape": [ 101 | 3, 102 | 3, 103 | 128, 104 | 128 105 | ] 106 | }, 107 | "Variable_22": { 108 | "filename": "Variable_22", 109 | "shape": [ 110 | 128 111 | ] 112 | }, 113 | "Variable_23": { 114 | "filename": "Variable_23", 115 | "shape": [ 116 | 128 117 | ] 118 | }, 119 | "Variable_24": { 120 | "filename": "Variable_24", 121 | "shape": [ 122 | 3, 123 | 3, 124 | 128, 125 | 128 126 | ] 127 | }, 128 | "Variable_25": { 129 | "filename": "Variable_25", 130 | "shape": [ 131 | 128 132 | ] 133 | }, 134 | "Variable_26": { 135 | "filename": "Variable_26", 136 | "shape": [ 137 | 128 138 | ] 139 | }, 140 | "Variable_27": { 141 | "filename": "Variable_27", 142 | "shape": [ 143 | 3, 144 | 3, 145 | 128, 146 | 128 147 | ] 148 | }, 149 | "Variable_28": { 150 | "filename": "Variable_28", 151 | "shape": [ 152 | 128 153 | ] 154 | }, 155 | "Variable_29": { 156 | "filename": "Variable_29", 157 | "shape": [ 158 | 128 159 | ] 160 | }, 161 | "Variable_3": { 162 | "filename": "Variable_3", 163 | "shape": [ 164 | 3, 165 | 3, 166 | 32, 167 | 64 168 | ] 169 | }, 170 | "Variable_30": { 171 | "filename": "Variable_30", 172 | "shape": [ 173 | 3, 174 | 3, 175 | 128, 176 | 128 177 | ] 178 | }, 179 | "Variable_31": { 180 | "filename": "Variable_31", 181 | "shape": [ 182 | 128 183 | ] 184 | }, 185 | "Variable_32": { 186 | "filename": "Variable_32", 187 | "shape": [ 188 | 128 189 | ] 190 | }, 191 | "Variable_33": { 192 | "filename": "Variable_33", 193 | "shape": [ 194 | 3, 195 | 3, 196 | 128, 197 | 128 198 | ] 199 | }, 200 | "Variable_34": { 201 | "filename": "Variable_34", 202 | "shape": [ 203 | 128 204 | ] 205 | }, 206 | "Variable_35": { 207 | "filename": "Variable_35", 208 | "shape": [ 209 | 128 210 | ] 211 | }, 212 | "Variable_36": { 213 | "filename": "Variable_36", 214 | "shape": [ 215 | 3, 216 | 3, 217 | 128, 218 | 128 219 | ] 220 | }, 221 | "Variable_37": { 222 | "filename": "Variable_37", 223 | "shape": [ 224 | 128 225 | ] 226 | }, 227 | "Variable_38": { 228 | "filename": "Variable_38", 229 | "shape": [ 230 | 128 231 | ] 232 | }, 233 | "Variable_39": { 234 | "filename": "Variable_39", 235 | "shape": [ 236 | 3, 237 | 3, 238 | 64, 239 | 128 240 | ] 241 | }, 242 | "Variable_4": { 243 | "filename": "Variable_4", 244 | "shape": [ 245 | 64 246 | ] 247 | }, 248 | "Variable_40": { 249 | "filename": "Variable_40", 250 | "shape": [ 251 | 64 252 | ] 253 | }, 254 | "Variable_41": { 255 | "filename": "Variable_41", 256 | "shape": [ 257 | 64 258 | ] 259 | }, 260 | "Variable_42": { 261 | "filename": "Variable_42", 262 | "shape": [ 263 | 3, 264 | 3, 265 | 32, 266 | 64 267 | ] 268 | }, 269 | "Variable_43": { 270 | "filename": "Variable_43", 271 | "shape": [ 272 | 32 273 | ] 274 | }, 275 | "Variable_44": { 276 | "filename": "Variable_44", 277 | "shape": [ 278 | 32 279 | ] 280 | }, 281 | "Variable_45": { 282 | "filename": "Variable_45", 283 | "shape": [ 284 | 9, 285 | 9, 286 | 32, 287 | 3 288 | ] 289 | }, 290 | "Variable_46": { 291 | "filename": "Variable_46", 292 | "shape": [ 293 | 3 294 | ] 295 | }, 296 | "Variable_47": { 297 | "filename": "Variable_47", 298 | "shape": [ 299 | 3 300 | ] 301 | }, 302 | "Variable_5": { 303 | "filename": "Variable_5", 304 | "shape": [ 305 | 64 306 | ] 307 | }, 308 | "Variable_6": { 309 | "filename": "Variable_6", 310 | "shape": [ 311 | 3, 312 | 3, 313 | 64, 314 | 128 315 | ] 316 | }, 317 | "Variable_7": { 318 | "filename": "Variable_7", 319 | "shape": [ 320 | 128 321 | ] 322 | }, 323 | "Variable_8": { 324 | "filename": "Variable_8", 325 | "shape": [ 326 | 128 327 | ] 328 | }, 329 | "Variable_9": { 330 | "filename": "Variable_9", 331 | "shape": [ 332 | 3, 333 | 3, 334 | 128, 335 | 128 336 | ] 337 | } 338 | } -------------------------------------------------------------------------------- /src/ckpts/wave/Variable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_1 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_10 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_11 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_12 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_13 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_14 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_15 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_16 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_17 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_18 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_19 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_2 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_20 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_21: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_21 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_22 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_23 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_24 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_25 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_26 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_27 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_28 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_29: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_29 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_3 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_30: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_30 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_31 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_32 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_33: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_33 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_34: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_34 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_35 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_36 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_37 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_38: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_38 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_39 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_4 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_40 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_41 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_42 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_43: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_43 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_44: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_44 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_45: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_45 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_46 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_47 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_5 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_6 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_7 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_8 -------------------------------------------------------------------------------- /src/ckpts/wave/Variable_9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wave/Variable_9 -------------------------------------------------------------------------------- /src/ckpts/wave/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Variable": { 3 | "filename": "Variable", 4 | "shape": [ 5 | 9, 6 | 9, 7 | 3, 8 | 32 9 | ] 10 | }, 11 | "Variable_1": { 12 | "filename": "Variable_1", 13 | "shape": [ 14 | 32 15 | ] 16 | }, 17 | "Variable_10": { 18 | "filename": "Variable_10", 19 | "shape": [ 20 | 128 21 | ] 22 | }, 23 | "Variable_11": { 24 | "filename": "Variable_11", 25 | "shape": [ 26 | 128 27 | ] 28 | }, 29 | "Variable_12": { 30 | "filename": "Variable_12", 31 | "shape": [ 32 | 3, 33 | 3, 34 | 128, 35 | 128 36 | ] 37 | }, 38 | "Variable_13": { 39 | "filename": "Variable_13", 40 | "shape": [ 41 | 128 42 | ] 43 | }, 44 | "Variable_14": { 45 | "filename": "Variable_14", 46 | "shape": [ 47 | 128 48 | ] 49 | }, 50 | "Variable_15": { 51 | "filename": "Variable_15", 52 | "shape": [ 53 | 3, 54 | 3, 55 | 128, 56 | 128 57 | ] 58 | }, 59 | "Variable_16": { 60 | "filename": "Variable_16", 61 | "shape": [ 62 | 128 63 | ] 64 | }, 65 | "Variable_17": { 66 | "filename": "Variable_17", 67 | "shape": [ 68 | 128 69 | ] 70 | }, 71 | "Variable_18": { 72 | "filename": "Variable_18", 73 | "shape": [ 74 | 3, 75 | 3, 76 | 128, 77 | 128 78 | ] 79 | }, 80 | "Variable_19": { 81 | "filename": "Variable_19", 82 | "shape": [ 83 | 128 84 | ] 85 | }, 86 | "Variable_2": { 87 | "filename": "Variable_2", 88 | "shape": [ 89 | 32 90 | ] 91 | }, 92 | "Variable_20": { 93 | "filename": "Variable_20", 94 | "shape": [ 95 | 128 96 | ] 97 | }, 98 | "Variable_21": { 99 | "filename": "Variable_21", 100 | "shape": [ 101 | 3, 102 | 3, 103 | 128, 104 | 128 105 | ] 106 | }, 107 | "Variable_22": { 108 | "filename": "Variable_22", 109 | "shape": [ 110 | 128 111 | ] 112 | }, 113 | "Variable_23": { 114 | "filename": "Variable_23", 115 | "shape": [ 116 | 128 117 | ] 118 | }, 119 | "Variable_24": { 120 | "filename": "Variable_24", 121 | "shape": [ 122 | 3, 123 | 3, 124 | 128, 125 | 128 126 | ] 127 | }, 128 | "Variable_25": { 129 | "filename": "Variable_25", 130 | "shape": [ 131 | 128 132 | ] 133 | }, 134 | "Variable_26": { 135 | "filename": "Variable_26", 136 | "shape": [ 137 | 128 138 | ] 139 | }, 140 | "Variable_27": { 141 | "filename": "Variable_27", 142 | "shape": [ 143 | 3, 144 | 3, 145 | 128, 146 | 128 147 | ] 148 | }, 149 | "Variable_28": { 150 | "filename": "Variable_28", 151 | "shape": [ 152 | 128 153 | ] 154 | }, 155 | "Variable_29": { 156 | "filename": "Variable_29", 157 | "shape": [ 158 | 128 159 | ] 160 | }, 161 | "Variable_3": { 162 | "filename": "Variable_3", 163 | "shape": [ 164 | 3, 165 | 3, 166 | 32, 167 | 64 168 | ] 169 | }, 170 | "Variable_30": { 171 | "filename": "Variable_30", 172 | "shape": [ 173 | 3, 174 | 3, 175 | 128, 176 | 128 177 | ] 178 | }, 179 | "Variable_31": { 180 | "filename": "Variable_31", 181 | "shape": [ 182 | 128 183 | ] 184 | }, 185 | "Variable_32": { 186 | "filename": "Variable_32", 187 | "shape": [ 188 | 128 189 | ] 190 | }, 191 | "Variable_33": { 192 | "filename": "Variable_33", 193 | "shape": [ 194 | 3, 195 | 3, 196 | 128, 197 | 128 198 | ] 199 | }, 200 | "Variable_34": { 201 | "filename": "Variable_34", 202 | "shape": [ 203 | 128 204 | ] 205 | }, 206 | "Variable_35": { 207 | "filename": "Variable_35", 208 | "shape": [ 209 | 128 210 | ] 211 | }, 212 | "Variable_36": { 213 | "filename": "Variable_36", 214 | "shape": [ 215 | 3, 216 | 3, 217 | 128, 218 | 128 219 | ] 220 | }, 221 | "Variable_37": { 222 | "filename": "Variable_37", 223 | "shape": [ 224 | 128 225 | ] 226 | }, 227 | "Variable_38": { 228 | "filename": "Variable_38", 229 | "shape": [ 230 | 128 231 | ] 232 | }, 233 | "Variable_39": { 234 | "filename": "Variable_39", 235 | "shape": [ 236 | 3, 237 | 3, 238 | 64, 239 | 128 240 | ] 241 | }, 242 | "Variable_4": { 243 | "filename": "Variable_4", 244 | "shape": [ 245 | 64 246 | ] 247 | }, 248 | "Variable_40": { 249 | "filename": "Variable_40", 250 | "shape": [ 251 | 64 252 | ] 253 | }, 254 | "Variable_41": { 255 | "filename": "Variable_41", 256 | "shape": [ 257 | 64 258 | ] 259 | }, 260 | "Variable_42": { 261 | "filename": "Variable_42", 262 | "shape": [ 263 | 3, 264 | 3, 265 | 32, 266 | 64 267 | ] 268 | }, 269 | "Variable_43": { 270 | "filename": "Variable_43", 271 | "shape": [ 272 | 32 273 | ] 274 | }, 275 | "Variable_44": { 276 | "filename": "Variable_44", 277 | "shape": [ 278 | 32 279 | ] 280 | }, 281 | "Variable_45": { 282 | "filename": "Variable_45", 283 | "shape": [ 284 | 9, 285 | 9, 286 | 32, 287 | 3 288 | ] 289 | }, 290 | "Variable_46": { 291 | "filename": "Variable_46", 292 | "shape": [ 293 | 3 294 | ] 295 | }, 296 | "Variable_47": { 297 | "filename": "Variable_47", 298 | "shape": [ 299 | 3 300 | ] 301 | }, 302 | "Variable_5": { 303 | "filename": "Variable_5", 304 | "shape": [ 305 | 64 306 | ] 307 | }, 308 | "Variable_6": { 309 | "filename": "Variable_6", 310 | "shape": [ 311 | 3, 312 | 3, 313 | 64, 314 | 128 315 | ] 316 | }, 317 | "Variable_7": { 318 | "filename": "Variable_7", 319 | "shape": [ 320 | 128 321 | ] 322 | }, 323 | "Variable_8": { 324 | "filename": "Variable_8", 325 | "shape": [ 326 | 128 327 | ] 328 | }, 329 | "Variable_9": { 330 | "filename": "Variable_9", 331 | "shape": [ 332 | 3, 333 | 3, 334 | 128, 335 | 128 336 | ] 337 | } 338 | } -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_1 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_10 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_11 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_12 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_13 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_14 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_15 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_16 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_17 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_18 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_19 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_2 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_20 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_21: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_21 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_22: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_22 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_23 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_24 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_25 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_26 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_27 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_28 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_29: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_29 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_3 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_30: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_30 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_31 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_32 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_33: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_33 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_34: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_34 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_35 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_36 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_37: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_37 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_38: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_38 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_39 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_4 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_40 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_41 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_42 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_43: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_43 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_44: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_44 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_45: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_45 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_46 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_47: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_47 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_5 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_6 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_7 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_8 -------------------------------------------------------------------------------- /src/ckpts/wreck/Variable_9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/ckpts/wreck/Variable_9 -------------------------------------------------------------------------------- /src/ckpts/wreck/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Variable": { 3 | "filename": "Variable", 4 | "shape": [ 5 | 9, 6 | 9, 7 | 3, 8 | 32 9 | ] 10 | }, 11 | "Variable_1": { 12 | "filename": "Variable_1", 13 | "shape": [ 14 | 32 15 | ] 16 | }, 17 | "Variable_10": { 18 | "filename": "Variable_10", 19 | "shape": [ 20 | 128 21 | ] 22 | }, 23 | "Variable_11": { 24 | "filename": "Variable_11", 25 | "shape": [ 26 | 128 27 | ] 28 | }, 29 | "Variable_12": { 30 | "filename": "Variable_12", 31 | "shape": [ 32 | 3, 33 | 3, 34 | 128, 35 | 128 36 | ] 37 | }, 38 | "Variable_13": { 39 | "filename": "Variable_13", 40 | "shape": [ 41 | 128 42 | ] 43 | }, 44 | "Variable_14": { 45 | "filename": "Variable_14", 46 | "shape": [ 47 | 128 48 | ] 49 | }, 50 | "Variable_15": { 51 | "filename": "Variable_15", 52 | "shape": [ 53 | 3, 54 | 3, 55 | 128, 56 | 128 57 | ] 58 | }, 59 | "Variable_16": { 60 | "filename": "Variable_16", 61 | "shape": [ 62 | 128 63 | ] 64 | }, 65 | "Variable_17": { 66 | "filename": "Variable_17", 67 | "shape": [ 68 | 128 69 | ] 70 | }, 71 | "Variable_18": { 72 | "filename": "Variable_18", 73 | "shape": [ 74 | 3, 75 | 3, 76 | 128, 77 | 128 78 | ] 79 | }, 80 | "Variable_19": { 81 | "filename": "Variable_19", 82 | "shape": [ 83 | 128 84 | ] 85 | }, 86 | "Variable_2": { 87 | "filename": "Variable_2", 88 | "shape": [ 89 | 32 90 | ] 91 | }, 92 | "Variable_20": { 93 | "filename": "Variable_20", 94 | "shape": [ 95 | 128 96 | ] 97 | }, 98 | "Variable_21": { 99 | "filename": "Variable_21", 100 | "shape": [ 101 | 3, 102 | 3, 103 | 128, 104 | 128 105 | ] 106 | }, 107 | "Variable_22": { 108 | "filename": "Variable_22", 109 | "shape": [ 110 | 128 111 | ] 112 | }, 113 | "Variable_23": { 114 | "filename": "Variable_23", 115 | "shape": [ 116 | 128 117 | ] 118 | }, 119 | "Variable_24": { 120 | "filename": "Variable_24", 121 | "shape": [ 122 | 3, 123 | 3, 124 | 128, 125 | 128 126 | ] 127 | }, 128 | "Variable_25": { 129 | "filename": "Variable_25", 130 | "shape": [ 131 | 128 132 | ] 133 | }, 134 | "Variable_26": { 135 | "filename": "Variable_26", 136 | "shape": [ 137 | 128 138 | ] 139 | }, 140 | "Variable_27": { 141 | "filename": "Variable_27", 142 | "shape": [ 143 | 3, 144 | 3, 145 | 128, 146 | 128 147 | ] 148 | }, 149 | "Variable_28": { 150 | "filename": "Variable_28", 151 | "shape": [ 152 | 128 153 | ] 154 | }, 155 | "Variable_29": { 156 | "filename": "Variable_29", 157 | "shape": [ 158 | 128 159 | ] 160 | }, 161 | "Variable_3": { 162 | "filename": "Variable_3", 163 | "shape": [ 164 | 3, 165 | 3, 166 | 32, 167 | 64 168 | ] 169 | }, 170 | "Variable_30": { 171 | "filename": "Variable_30", 172 | "shape": [ 173 | 3, 174 | 3, 175 | 128, 176 | 128 177 | ] 178 | }, 179 | "Variable_31": { 180 | "filename": "Variable_31", 181 | "shape": [ 182 | 128 183 | ] 184 | }, 185 | "Variable_32": { 186 | "filename": "Variable_32", 187 | "shape": [ 188 | 128 189 | ] 190 | }, 191 | "Variable_33": { 192 | "filename": "Variable_33", 193 | "shape": [ 194 | 3, 195 | 3, 196 | 128, 197 | 128 198 | ] 199 | }, 200 | "Variable_34": { 201 | "filename": "Variable_34", 202 | "shape": [ 203 | 128 204 | ] 205 | }, 206 | "Variable_35": { 207 | "filename": "Variable_35", 208 | "shape": [ 209 | 128 210 | ] 211 | }, 212 | "Variable_36": { 213 | "filename": "Variable_36", 214 | "shape": [ 215 | 3, 216 | 3, 217 | 128, 218 | 128 219 | ] 220 | }, 221 | "Variable_37": { 222 | "filename": "Variable_37", 223 | "shape": [ 224 | 128 225 | ] 226 | }, 227 | "Variable_38": { 228 | "filename": "Variable_38", 229 | "shape": [ 230 | 128 231 | ] 232 | }, 233 | "Variable_39": { 234 | "filename": "Variable_39", 235 | "shape": [ 236 | 3, 237 | 3, 238 | 64, 239 | 128 240 | ] 241 | }, 242 | "Variable_4": { 243 | "filename": "Variable_4", 244 | "shape": [ 245 | 64 246 | ] 247 | }, 248 | "Variable_40": { 249 | "filename": "Variable_40", 250 | "shape": [ 251 | 64 252 | ] 253 | }, 254 | "Variable_41": { 255 | "filename": "Variable_41", 256 | "shape": [ 257 | 64 258 | ] 259 | }, 260 | "Variable_42": { 261 | "filename": "Variable_42", 262 | "shape": [ 263 | 3, 264 | 3, 265 | 32, 266 | 64 267 | ] 268 | }, 269 | "Variable_43": { 270 | "filename": "Variable_43", 271 | "shape": [ 272 | 32 273 | ] 274 | }, 275 | "Variable_44": { 276 | "filename": "Variable_44", 277 | "shape": [ 278 | 32 279 | ] 280 | }, 281 | "Variable_45": { 282 | "filename": "Variable_45", 283 | "shape": [ 284 | 9, 285 | 9, 286 | 32, 287 | 3 288 | ] 289 | }, 290 | "Variable_46": { 291 | "filename": "Variable_46", 292 | "shape": [ 293 | 3 294 | ] 295 | }, 296 | "Variable_47": { 297 | "filename": "Variable_47", 298 | "shape": [ 299 | 3 300 | ] 301 | }, 302 | "Variable_5": { 303 | "filename": "Variable_5", 304 | "shape": [ 305 | 64 306 | ] 307 | }, 308 | "Variable_6": { 309 | "filename": "Variable_6", 310 | "shape": [ 311 | 3, 312 | 3, 313 | 64, 314 | 128 315 | ] 316 | }, 317 | "Variable_7": { 318 | "filename": "Variable_7", 319 | "shape": [ 320 | 128 321 | ] 322 | }, 323 | "Variable_8": { 324 | "filename": "Variable_8", 325 | "shape": [ 326 | 128 327 | ] 328 | }, 329 | "Variable_9": { 330 | "filename": "Variable_9", 331 | "shape": [ 332 | 3, 333 | 3, 334 | 128, 335 | 128 336 | ] 337 | } 338 | } -------------------------------------------------------------------------------- /src/images/diana.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/diana.jpg -------------------------------------------------------------------------------- /src/images/face.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/face.jpg -------------------------------------------------------------------------------- /src/images/la_muse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/la_muse.jpg -------------------------------------------------------------------------------- /src/images/rain_princess.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/rain_princess.jpg -------------------------------------------------------------------------------- /src/images/scream.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/scream.jpg -------------------------------------------------------------------------------- /src/images/stata.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/stata.jpg -------------------------------------------------------------------------------- /src/images/udnie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/udnie.jpg -------------------------------------------------------------------------------- /src/images/wave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/wave.jpg -------------------------------------------------------------------------------- /src/images/wreck.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reiinakano/fast-style-transfer-deeplearnjs/bd3a0486e4ed4a02b0b4102a7f12a55e3c935d73/src/images/wreck.jpg -------------------------------------------------------------------------------- /src/net.ts: -------------------------------------------------------------------------------- 1 | import {Scalar, Array1D, Array3D, Array4D, CheckpointLoader, Model, NDArray, NDArrayMathGPU} from 'deeplearn'; 2 | 3 | const GOOGLE_CLOUD_STORAGE_DIR = 4 | // 'https://storage.googleapis.com/learnjs-data/checkpoint_zoo/transformnet/'; 5 | document.URL.substr(0,document.URL.lastIndexOf('/')) + '/ckpts/'; 6 | 7 | export class TransformNet implements Model { 8 | private variables: {[varName: string]: NDArray}; 9 | private variableDictionary: {[styleName: string]: 10 | {[varName: string]: NDArray}}; 11 | private timesScalar: NDArray; 12 | private plusScalar: NDArray; 13 | private epsilonScalar: NDArray; 14 | 15 | constructor(private math: NDArrayMathGPU, private style: string) { 16 | this.variableDictionary = {}; 17 | this.timesScalar = Scalar.new(150); 18 | this.plusScalar = Scalar.new(255./2); 19 | this.epsilonScalar = Scalar.new(1e-3); 20 | } 21 | 22 | setStyle(style: string) { 23 | this.style = style; 24 | } 25 | 26 | /** 27 | * Loads necessary variables for SqueezeNet. Resolves the promise when the 28 | * variables have all been loaded. 29 | */ 30 | async load(): Promise { 31 | if (this.variableDictionary[this.style] == null) { 32 | const checkpointLoader = 33 | new CheckpointLoader(GOOGLE_CLOUD_STORAGE_DIR + this.style + '/'); 34 | this.variableDictionary[this.style] = 35 | await checkpointLoader.getAllVariables(); 36 | } 37 | this.variables = this.variableDictionary[this.style]; 38 | } 39 | 40 | /** 41 | * Infer through TransformNet, assumes variables have been loaded. 42 | * Original Tensorflow version of model can be found at 43 | * https://github.com/lengstrom/fast-style-transfer 44 | * 45 | * @param preprocessedInput preprocessed input Array. 46 | * @return Array3D containing pixels of output img 47 | */ 48 | async predict (preprocessedInput: Array3D): Promise { 49 | 50 | const img = this.math.scope((keep, track) => { 51 | const conv1 = this.convLayer(preprocessedInput, 1, true, 0); 52 | const conv2 = this.convLayer(conv1, 2, true, 3); 53 | const conv3 = this.convLayer(conv2, 2, true, 6); 54 | const resid1 = this.residualBlock(conv3, 9); 55 | const resid2 = this.residualBlock(resid1, 15); 56 | const resid3 = this.residualBlock(resid2, 21); 57 | const resid4 = this.residualBlock(resid3, 27); 58 | const resid5 = this.residualBlock(resid4, 33); 59 | const convT1 = this.convTransposeLayer(resid5, 64, 2, 39); 60 | const convT2 = this.convTransposeLayer(convT1, 32, 2, 42); 61 | const convT3 = this.convLayer(convT2, 1, false, 45); 62 | const outTanh = this.math.tanh(convT3); 63 | const scaled = this.math.scalarTimesArray(this.timesScalar, outTanh); 64 | const shifted = this.math.scalarPlusArray(this.plusScalar, scaled); 65 | const clamped = this.math.clip(shifted, 0, 255); 66 | const normalized = this.math.divide( 67 | clamped, Scalar.new(255.)) as Array3D; 68 | 69 | return normalized; 70 | }); 71 | 72 | return img; 73 | } 74 | 75 | private convLayer(input: Array3D, strides: number, 76 | relu: boolean, varId: number): Array3D { 77 | const y = this.math.conv2d(input, 78 | this.variables[this.varName(varId)] as Array4D, 79 | null, [strides, strides], 'same'); 80 | 81 | const y2 = this.instanceNorm(y, varId + 1); 82 | 83 | if (relu) { 84 | return this.math.relu(y2); 85 | } 86 | 87 | return y2; 88 | } 89 | 90 | private convTransposeLayer(input: Array3D, numFilters: number, 91 | strides: number, varId: number): Array3D { 92 | const [height, width, ]: [number, number, number] = input.shape; 93 | const newRows = height * strides; 94 | const newCols = width * strides; 95 | const newShape: [number, number, number] = [newRows, newCols, numFilters]; 96 | 97 | const y = this.math.conv2dTranspose(input, 98 | this.variables[this.varName(varId)] as Array4D, 99 | newShape, [strides, strides], 'same'); 100 | 101 | const y2 = this.instanceNorm(y, varId + 1); 102 | 103 | const y3 = this.math.relu(y2); 104 | 105 | return y3; 106 | } 107 | 108 | private residualBlock(input: Array3D, varId: number): Array3D { 109 | const conv1 = this.convLayer(input, 1, true, varId); 110 | const conv2 = this.convLayer(conv1, 1, false, varId + 3); 111 | return this.math.addStrict(conv2, input); 112 | } 113 | 114 | private instanceNorm(input: Array3D, varId: number): Array3D { 115 | const [height, width, inDepth]: [number, number, number] = input.shape; 116 | const moments = this.math.moments(input, [0, 1]); 117 | const mu = moments.mean as Array3D; 118 | const sigmaSq = moments.variance as Array3D; 119 | const shift = this.variables[this.varName(varId)] as Array1D; 120 | const scale = this.variables[this.varName(varId + 1)] as Array1D; 121 | const epsilon = this.epsilonScalar; 122 | const normalized = this.math.divide(this.math.sub(input, mu), 123 | this.math.sqrt(this.math.add(sigmaSq, epsilon))); 124 | const shifted = this.math.add(this.math.multiply(scale, normalized), shift); 125 | return shifted.as3D(height, width, inDepth); 126 | } 127 | 128 | private varName(varId: number): string { 129 | if (varId === 0) { 130 | return 'Variable'; 131 | } 132 | else { 133 | return 'Variable_' + varId.toString(); 134 | } 135 | } 136 | 137 | dispose() { 138 | for (const styleName in this.variableDictionary) { 139 | for (const varName in this.variableDictionary[styleName]) { 140 | this.variableDictionary[styleName][varName].dispose(); 141 | } 142 | } 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /src/polymer-spec.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2017 Google Inc. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | /** 19 | * @fileoverview 20 | * 21 | * Defines an interface for creating Polymer elements in Typescript with the 22 | * correct typings. A Polymer element should be defined like this: 23 | * 24 | * ``` 25 | * let MyElementPolymer = PolymerElement({ 26 | * is: 'my-polymer-element', 27 | * properties: { 28 | * foo: string, 29 | * bar: Array 30 | * } 31 | * }); 32 | * 33 | * class MyElement extends MyElementPolymer { 34 | * foo: string; 35 | * bar: number[]; 36 | * 37 | * ready() { 38 | * console.log('MyElement initialized!'); 39 | * } 40 | * } 41 | * 42 | * document.registerElement(MyElement.prototype.is, MyElement); 43 | * ``` 44 | */ 45 | 46 | export type Spec = { 47 | is: string; properties: { 48 | [key: string]: (Function|{ 49 | // tslint:disable-next-line:no-any 50 | type: Function, value?: any; 51 | reflectToAttribute?: boolean; 52 | readonly?: boolean; 53 | notify?: boolean; 54 | computed?: string; 55 | observer?: string; 56 | }) 57 | }; 58 | observers?: string[]; 59 | }; 60 | 61 | export function PolymerElement(spec: Spec) { 62 | // tslint:disable-next-line:no-any 63 | return Polymer.Class(spec as any) as {new (): PolymerHTMLElement}; 64 | } 65 | 66 | export interface PolymerHTMLElement extends HTMLElement, polymer.Base {} 67 | -------------------------------------------------------------------------------- /src/styletransfer-demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | deeplearn.js style transfer demo 25 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/styletransfer-demo.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:max-line-length 2 | import {Array3D, GPGPUContext, gpgpu_util, render_ndarray_gpu_util, NDArrayMathCPU, NDArrayMathGPU} from 'deeplearn'; 3 | // import * as imagenet_util from '../models/imagenet_util'; 4 | import {TransformNet} from './net'; 5 | import {PolymerElement, PolymerHTMLElement} from './polymer-spec'; 6 | 7 | // tslint:disable-next-line:variable-name 8 | export const StyleTransferDemoPolymer: new () => PolymerHTMLElement = 9 | PolymerElement({ 10 | is: 'styletransfer-demo', 11 | properties: { 12 | contentNames: Array, 13 | selectedContentName: String, 14 | styleNames: Array, 15 | selectedStyleName: String 16 | } 17 | }); 18 | 19 | export enum ApplicationState { 20 | IDLE = 1, 21 | TRAINING = 2 22 | } 23 | 24 | const CONTENT_NAMES = ['stata', 'face', 'diana', 'Upload from file']; 25 | const STYLE_MAPPINGS: {[varName: string]: string} = { 26 | 'Udnie, Francis Picabia': 'udnie', 27 | 'The Scream, Edvard Munch': 'scream', 28 | 'La Muse, Pablo Picasso': 'la_muse', 29 | 'Rain Princess, Leonid Afremov': 'rain_princess', 30 | 'The Wave, Katsushika Hokusai': 'wave', 31 | 'The Wreck of the Minotaur, J.M.W. Turner': 'wreck' 32 | }; 33 | const STYLE_NAMES = Object.keys(STYLE_MAPPINGS); 34 | 35 | export class StyleTransferDemo extends StyleTransferDemoPolymer { 36 | // DeeplearnJS stuff 37 | private math: NDArrayMathGPU; 38 | private mathCPU: NDArrayMathCPU; 39 | private gpgpu: GPGPUContext; 40 | private gl: WebGLRenderingContext; 41 | 42 | private transformNet: TransformNet; 43 | 44 | // DOM Elements 45 | private contentImgElement: HTMLImageElement; 46 | private styleImgElement: HTMLImageElement; 47 | // tslint:disable-next-line:no-any 48 | private sizeSlider: any; 49 | 50 | private canvas: HTMLCanvasElement; 51 | 52 | private startButton: HTMLButtonElement; 53 | 54 | // tslint:disable-next-line:no-any 55 | private camDialog: any; 56 | private stream: MediaStream; 57 | private webcamVideoElement: HTMLVideoElement; 58 | private takePicButton: HTMLButtonElement; 59 | private closeModal: HTMLButtonElement; 60 | 61 | private fileSelect: HTMLButtonElement; 62 | 63 | // Polymer properties 64 | private contentNames: string[]; 65 | private selectedContentName: string; 66 | private styleNames: string[]; 67 | private selectedStyleName: string; 68 | 69 | private status: string; 70 | 71 | private applicationState: ApplicationState; 72 | 73 | ready() { 74 | // Initialize deeplearn.js stuff 75 | this.canvas = this.querySelector('#imageCanvas') as HTMLCanvasElement; 76 | this.gl = gpgpu_util.createWebGLContext(this.canvas); 77 | this.gpgpu = new GPGPUContext(this.gl); 78 | this.math = new NDArrayMathGPU(this.gpgpu); 79 | this.mathCPU = new NDArrayMathCPU(); 80 | 81 | // Initialize polymer properties 82 | this.applicationState = ApplicationState.IDLE; 83 | this.status = ''; 84 | 85 | // Retrieve DOM for images 86 | this.contentImgElement = 87 | this.querySelector('#contentImg') as HTMLImageElement; 88 | this.styleImgElement = 89 | this.querySelector('#styleImg') as HTMLImageElement; 90 | 91 | // Render DOM for images 92 | this.contentNames = CONTENT_NAMES; 93 | this.selectedContentName = 'stata'; 94 | this.contentImgElement.src = 'images/stata.jpg'; 95 | this.contentImgElement.height = 250; 96 | 97 | this.styleNames = STYLE_NAMES; 98 | this.selectedStyleName = 'Udnie, Francis Picabia'; 99 | this.styleImgElement.src = 'images/udnie.jpg'; 100 | this.styleImgElement.height = 250; 101 | 102 | this.transformNet = new TransformNet(this.math, 103 | STYLE_MAPPINGS[this.selectedStyleName]); 104 | 105 | this.initWebcamVariables(); 106 | 107 | // tslint:disable-next-line:no-any 108 | this.sizeSlider = this.querySelector('#sizeSlider') as any; 109 | this.sizeSlider.addEventListener('immediate-value-change', 110 | // tslint:disable-next-line:no-any 111 | (event: any) => { 112 | this.styleImgElement.height = this.sizeSlider.immediateValue; 113 | this.contentImgElement.height = this.sizeSlider.immediateValue; 114 | }); 115 | // tslint:disable-next-line:no-any 116 | this.sizeSlider.addEventListener('change', (event: any) => { 117 | this.styleImgElement.height = this.sizeSlider.immediateValue; 118 | this.contentImgElement.height = this.sizeSlider.immediateValue; 119 | }); 120 | 121 | this.fileSelect = this.querySelector('#fileSelect') as HTMLButtonElement; 122 | // tslint:disable-next-line:no-any 123 | this.fileSelect.addEventListener('change', (event: any) => { 124 | const f: File = event.target.files[0]; 125 | const fileReader: FileReader = new FileReader(); 126 | fileReader.onload = ((e) => { 127 | const target: FileReader = e.target as FileReader; 128 | this.contentImgElement.src = target.result; 129 | }); 130 | fileReader.readAsDataURL(f); 131 | this.fileSelect.value = ''; 132 | }); 133 | 134 | // Add listener to drop downs 135 | const contentDropdown = this.querySelector('#content-dropdown'); 136 | // tslint:disable-next-line:no-any 137 | contentDropdown.addEventListener('iron-activate', (event: any) => { 138 | const selected: string = event.detail.selected as string; 139 | if (selected === 'Use webcam') { 140 | this.openWebcamModal(); 141 | } 142 | else if (selected === 'Upload from file') { 143 | this.fileSelect.click(); 144 | } 145 | else { 146 | this.contentImgElement.src = 'images/' + selected + '.jpg'; 147 | } 148 | }); 149 | 150 | const styleDropdown = this.querySelector('#style-dropdown'); 151 | // tslint:disable-next-line:no-any 152 | styleDropdown.addEventListener('iron-activate', (event: any) => { 153 | this.styleImgElement.src = 154 | 'images/' + STYLE_MAPPINGS[event.detail.selected] + '.jpg'; 155 | }); 156 | 157 | // Add listener to start 158 | this.startButton = this.querySelector('#start') as HTMLButtonElement; 159 | this.startButton.addEventListener('click', () => { 160 | (this.querySelector('#load-error-message') as HTMLElement).style.display = 161 | 'none'; 162 | this.startButton.textContent = 163 | 'Starting style transfer.. Downloading + running model'; 164 | this.startButton.disabled = true; 165 | this.transformNet.setStyle(STYLE_MAPPINGS[this.selectedStyleName]); 166 | 167 | this.transformNet.load() 168 | .then(() => { 169 | this.startButton.textContent = 'Processing image'; 170 | this.runInference(); 171 | this.startButton.textContent = 'Start Style Transfer'; 172 | this.startButton.disabled = false; 173 | }) 174 | .catch((error) => { 175 | console.log(error); 176 | this.startButton.textContent = 'Start Style Transfer'; 177 | this.startButton.disabled = false; 178 | const errMessage = 179 | this.querySelector('#load-error-message') as HTMLElement; 180 | errMessage.textContent = error; 181 | errMessage.style.display = 'block'; 182 | }); 183 | }); 184 | } 185 | 186 | private initWebcamVariables() { 187 | this.camDialog = this.querySelector('#webcam-dialog'); 188 | this.webcamVideoElement = 189 | this.querySelector('#webcamVideo') as HTMLVideoElement; 190 | this.takePicButton = 191 | this.querySelector('#takePicButton') as HTMLButtonElement; 192 | this.closeModal = this.querySelector('#closeModal') as HTMLButtonElement; 193 | 194 | // Check if webcam is even available 195 | // tslint:disable-next-line:no-any 196 | const navigatorAny = navigator as any; 197 | navigator.getUserMedia = navigator.getUserMedia || 198 | navigatorAny.webkitGetUserMedia || navigatorAny.mozGetUserMedia || 199 | navigatorAny.msGetUserMedia; 200 | if (navigator.getUserMedia) { 201 | const contentNames = CONTENT_NAMES.slice(); 202 | contentNames.unshift('Use webcam'); 203 | this.contentNames = contentNames; 204 | } 205 | 206 | this.closeModal.addEventListener('click', () => { 207 | this.stream.getTracks()[0].stop(); 208 | }); 209 | 210 | this.takePicButton.addEventListener('click', () => { 211 | const hiddenCanvas: HTMLCanvasElement = 212 | this.querySelector('#hiddenCanvas') as HTMLCanvasElement; 213 | const hiddenContext: CanvasRenderingContext2D = 214 | hiddenCanvas.getContext('2d'); 215 | hiddenCanvas.width = this.webcamVideoElement.width; 216 | hiddenCanvas.height = this.webcamVideoElement.height; 217 | hiddenContext.drawImage(this.webcamVideoElement, 0, 0, 218 | hiddenCanvas.width, hiddenCanvas.height); 219 | const imageDataURL = hiddenCanvas.toDataURL('image/jpg'); 220 | this.contentImgElement.src = imageDataURL; 221 | this.stream.getTracks()[0].stop(); 222 | }); 223 | } 224 | 225 | private openWebcamModal() { 226 | this.camDialog.open(); 227 | navigator.getUserMedia( 228 | { 229 | video: true 230 | }, 231 | (stream) => { 232 | this.stream = stream; 233 | this.webcamVideoElement.src = window.URL.createObjectURL(stream); 234 | this.webcamVideoElement.play(); 235 | }, 236 | (err) => { 237 | console.error(err); 238 | } 239 | ); 240 | } 241 | 242 | async runInference() { 243 | await this.math.scope(async (keep, track) => { 244 | 245 | const preprocessed = track(Array3D.fromPixels(this.contentImgElement)); 246 | 247 | const inferenceResult = await this.transformNet.predict(preprocessed); 248 | 249 | this.setCanvasShape(inferenceResult.shape); 250 | this.renderShader = render_ndarray_gpu_util.getRenderRGBShader( 251 | this.gpgpu, inferenceResult.shape[1]); 252 | render_ndarray_gpu_util.renderToCanvas( 253 | this.gpgpu, this.renderShader, inferenceResult.getTexture()); 254 | }); 255 | } 256 | 257 | private setCanvasShape(shape: number[]) { 258 | this.canvas.width = shape[1]; 259 | this.canvas.height = shape[0]; 260 | if (shape[1] > shape[0]) { 261 | this.canvas.style.width = '500px'; 262 | this.canvas.style.height = (shape[0]/shape[1]*500).toString() + 'px'; 263 | } 264 | else { 265 | this.canvas.style.height = '500px'; 266 | this.canvas.style.width = (shape[1]/shape[0]*500).toString() + 'px'; 267 | } 268 | } 269 | 270 | } 271 | 272 | document.registerElement(StyleTransferDemo.prototype.is, StyleTransferDemo); 273 | -------------------------------------------------------------------------------- /src/styletransfer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 133 | 250 | 251 | -------------------------------------------------------------------------------- /src/support.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2017 Google Inc. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | function isSafari() { 19 | var ua = navigator.userAgent.toLowerCase(); 20 | if (ua.indexOf('safari') != -1) { 21 | if (ua.indexOf('chrome') > -1) { 22 | return false; 23 | } else { 24 | return true; 25 | } 26 | } 27 | } 28 | function isMobile() { 29 | var a = navigator.userAgent || navigator.vendor || window.opera; 30 | return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i 31 | .test(a) || 32 | /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i 33 | .test(a.substr(0, 4)); 34 | } 35 | 36 | function isWebGLEnabled() { 37 | var canvas = document.createElement('canvas'); 38 | 39 | var attributes = { 40 | alpha: false, 41 | antialias: false, 42 | premultipliedAlpha: false, 43 | preserveDrawingBuffer: false, 44 | depth: false, 45 | stencil: false, 46 | failIfMajorPerformanceCaveat: true 47 | }; 48 | return null != (canvas.getContext('webgl', attributes) || 49 | canvas.getContext('experimental-webgl', attributes)); 50 | } 51 | 52 | function isNotSupported() { 53 | return isMobile() || isSafari(); 54 | } 55 | 56 | function buildAndShowDialog(title, content) { 57 | var dialogContainer = document.createElement('div'); 58 | dialogContainer.innerHTML = ` 59 | 60 |

${title}

61 |
62 |

${content}

63 |
64 |
65 | `; 66 | document.body.appendChild(dialogContainer); 67 | var dialog = document.getElementById('dialog'); 68 | dialog.style.width = '430px'; 69 | dialogPolyfill.registerDialog(dialog); 70 | dialog.showModal(); 71 | } 72 | 73 | function inializePolymerPage() { 74 | document.addEventListener('WebComponentsReady', function(event) { 75 | if (isNotSupported()) { 76 | const title = `This device is not yet supported`; 77 | const content = ` 78 | We do not yet support your device, please try to load this demo on a desktop computer with Chrome. 79 | We are working hard to add support for other devices. Check back soon! 80 | `; 81 | buildAndShowDialog(title, content); 82 | } else if (!isWebGLEnabled()) { 83 | const title = `Check if hardware acceleration is enabled`; 84 | const content = ` 85 | Looks like your device is supported but settings aren't in place. 86 | Please check if WebGL is enabled for your browser. 87 | See: How can I enable WebGL in my browser? 88 | `; 89 | buildAndShowDialog(title, content); 90 | } else { 91 | var bundleScript = document.createElement('script'); 92 | bundleScript.src = 'bundle.js'; 93 | document.head.appendChild(bundleScript); 94 | } 95 | }); 96 | } 97 | inializePolymerPage(); 98 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "noImplicitAny": true, 5 | "sourceMap": true, 6 | "removeComments": true, 7 | "preserveConstEnums": true, 8 | "declaration": true, 9 | "target": "es5", 10 | "lib": ["es2015", "dom"], 11 | "outDir": "./dist", 12 | "noUnusedLocals": true, 13 | "noImplicitReturns": true, 14 | "noImplicitThis": true, 15 | "noUnusedParameters": false, 16 | "pretty": true, 17 | "noFallthroughCasesInSwitch": true, 18 | "allowUnreachableCode": false 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "array-type": [true, "array-simple"], 4 | "arrow-return-shorthand": true, 5 | "ban": [true, 6 | ["fit"], 7 | ["fdescribe"], 8 | ["xit"], 9 | ["xdescribe"], 10 | ["fitAsync"], 11 | ["xitAsync"], 12 | ["fitFakeAsync"], 13 | ["xitFakeAsync"] 14 | ], 15 | "ban-types": [true, 16 | ["Object", "Use {} instead."], 17 | ["String", "Use 'string' instead."], 18 | ["Number", "Use 'number' instead."], 19 | ["Boolean", "Use 'boolean' instead."] 20 | ], 21 | "class-name": true, 22 | "interface-name": [true, "never-prefix"], 23 | "jsdoc-format": true, 24 | "forin": false, 25 | "label-position": true, 26 | "max-line-length": [true, 80], 27 | "new-parens": true, 28 | "no-angle-bracket-type-assertion": true, 29 | "no-any": true, 30 | "no-construct": true, 31 | "no-debugger": true, 32 | "no-default-export": true, 33 | "no-inferrable-types": true, 34 | "no-namespace": [true, "allow-declarations"], 35 | "no-reference": true, 36 | "no-require-imports": true, 37 | "no-string-throw": true, 38 | "no-unused-expression": true, 39 | "no-unused-variable": true, 40 | "no-var-keyword": true, 41 | "object-literal-shorthand": true, 42 | "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"], 43 | "prefer-const": true, 44 | "radix": true, 45 | "semicolon": [true, "always", "ignore-bound-class-methods"], 46 | "switch-default": true, 47 | "triple-equals": [true, "allow-null-check"], 48 | "use-isnan": true, 49 | "variable-name": [ 50 | true, 51 | "check-format", 52 | "ban-keywords", 53 | "allow-leading-underscore", 54 | "allow-trailing-underscore" 55 | ] 56 | } 57 | } 58 | --------------------------------------------------------------------------------