diff --git a/README.md b/README.md index 681d5a5..d3439bd 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,15 @@ This repo contains the front-end part of [make.girls.moe](http://make.girls.moe/). -We decide to open-source model training scripts after the release of Chainer 3.0. Since Chainer do not support gradient norm function currently, we use some tricks in the training. -Also, my personal repo [Chainer-GANs](https://github.com/Aixile/chainer-gan-experiments) contains some necessary references for reproducing our results. - ## Running on local machine +*You need `git-lfs` to clone this repo.* + 1. Modify `src/Config.js` and set `var debug=true;` 2. `npm install` 3. `npm start` ## License -Source codes of the website are under the GPL v3.0 license. - -[Pre-trained model files](https://github.com/makegirlsmoe/makegirls.moe_web/tree/master/public/models) are owned by Yanghua Jin. -(Copyright 2017 Yanghua Jin All Rights Reserved.) - -## Mirroring this site -If you want to build a mirror of this site or make some modifications, we requrie you to follow - -1. Add a statement to clarify that your mirror site is not related to make.girls.moe official. -2. Distribute model files on your own server, this could be done by modifying [Config.js](https://github.com/makegirlsmoe/makegirls.moe_web/blob/master/src/Config.js). -3. Source codes should be available online because of the GPL license. \ No newline at end of file +MakeGirlsMoe is freely available only for non-commercial use. Please, see the [license](https://github.com/makegirlsmoe/makegirlsmoe_web/blob/master/LICENSE.txt">) for further details. +For commercial queries, contact [Yanghua Jin](mailto:yanghuajin94@gmail.com). +The code of web interface is under the GPL v3.0 license and can be redistributed. +All the compiled model files are privately owned by Yanghua Jin and are not allowed for unauthorized commercial use. diff --git a/public/models/Bouvardia256_8bit/graph_webassembly.json b/public/models/Bouvardia256_8bit/graph_webassembly.json index 289350a..a2d0ab3 100644 --- a/public/models/Bouvardia256_8bit/graph_webassembly.json +++ b/public/models/Bouvardia256_8bit/graph_webassembly.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:759ba9395c5c6bf014cbb728ce938ed76f724be121ae52f8beb82d2dff135442 -size 15186 +oid sha256:797c6418a0d4f0b71a1ebb9562d1eb03dec36fb8503d14b92562a3266487ab6a +size 14815 diff --git a/public/models/Bouvardia256_8bit/graph_webgl_16384.json b/public/models/Bouvardia256_8bit/graph_webgl_16384.json index cdd2ee9..f869d1b 100644 --- a/public/models/Bouvardia256_8bit/graph_webgl_16384.json +++ b/public/models/Bouvardia256_8bit/graph_webgl_16384.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a1e8da5dc4f7f35b703a8e79917424f99d9ea39e9841bdd5fb4f2d88adb97254 -size 1363549 +oid sha256:a557d7e7c1437c5057c268dc220811c9d4de71d7fb5112a6386b0694e060b03c +size 1226629 diff --git a/public/models/Bouvardia256_8bit/graph_webgl_4096.json b/public/models/Bouvardia256_8bit/graph_webgl_4096.json index 03a7be7..a528b59 100644 --- a/public/models/Bouvardia256_8bit/graph_webgl_4096.json +++ b/public/models/Bouvardia256_8bit/graph_webgl_4096.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c93358f8f208e1224a5d91b8e7967471a8251486a929d2a98ecec908f61624fd -size 2619244 +oid sha256:5d39f8165e129ece293e1da93d68552a08267e884a8da75b61170d519ed19b1f +size 2231062 diff --git a/public/models/Bouvardia256_8bit/graph_webgl_8192.json b/public/models/Bouvardia256_8bit/graph_webgl_8192.json index 918bffa..b54b14b 100644 --- a/public/models/Bouvardia256_8bit/graph_webgl_8192.json +++ b/public/models/Bouvardia256_8bit/graph_webgl_8192.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9d8facec275157e55f3c0eb075d22491220d9fef59f0ce541a89cc5517a98c27 -size 1962125 +oid sha256:9f2c67bb22f4f11c779ef9fc7549af4c7fe537d0ecd82eb0f5b31fe1f50f9a0e +size 1663147 diff --git a/public/models/Bouvardia256_8bit/graph_webgpu.json b/public/models/Bouvardia256_8bit/graph_webgpu.json index 4f17b17..04d7b32 100644 --- a/public/models/Bouvardia256_8bit/graph_webgpu.json +++ b/public/models/Bouvardia256_8bit/graph_webgpu.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:59b6cfb7e9faff8fe2cbfe034ec25b5e5c49f0658c7f595273d4c7ad96441b9f -size 154120 +oid sha256:ce5445bf7082ddde8e0d68f2694b957e5e54db1eb12d422a61b781cc393e204a +size 147949 diff --git a/public/models/Bouvardia256_8bit/kernels_asmjs.js b/public/models/Bouvardia256_8bit/kernels_asmjs.js index 5d8238a..e3d29a2 100644 --- a/public/models/Bouvardia256_8bit/kernels_asmjs.js +++ b/public/models/Bouvardia256_8bit/kernels_asmjs.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c79c5dcf742fb926193b6798991c29db80cce603fc9402e17fc494db44204893 -size 89846 +oid sha256:c9f939c96e9e29cff1021c14caa097131f020d36e696dacd8cfb99b6ce630a85 +size 87051 diff --git a/public/models/Bouvardia256_8bit/kernels_asmjs.js.mem b/public/models/Bouvardia256_8bit/kernels_asmjs.js.mem index f7e16d3..9e28599 100644 --- a/public/models/Bouvardia256_8bit/kernels_asmjs.js.mem +++ b/public/models/Bouvardia256_8bit/kernels_asmjs.js.mem @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3fed4f06967ec5e919f89f224ef8b9d8f761208dd8e2d7d9cb61b0a607e84eda -size 5809 +oid sha256:f447fcc1ab76d90b59d9c22ee97039ba7567a92be6ee0edaf97d8ca68e7e324b +size 5619 diff --git a/public/models/Bouvardia256_8bit/kernels_webassembly.cpp b/public/models/Bouvardia256_8bit/kernels_webassembly.cpp index 3b84809..cc23320 100644 --- a/public/models/Bouvardia256_8bit/kernels_webassembly.cpp +++ b/public/models/Bouvardia256_8bit/kernels_webassembly.cpp @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ea389c163d9f64887733de73e194de9290093a440b26ac1051d1bb2f86574ace -size 27616 +oid sha256:91f3af3a881bc3a1e3862eec0e38ca3eeed1184e449b870b6605358e01742611 +size 24316 diff --git a/public/models/Bouvardia256_8bit/kernels_webassembly.js b/public/models/Bouvardia256_8bit/kernels_webassembly.js index 04dfed9..c973e84 100644 --- a/public/models/Bouvardia256_8bit/kernels_webassembly.js +++ b/public/models/Bouvardia256_8bit/kernels_webassembly.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:be11f60997e55c9867d6dae88554dc24c2f3b519974fabe43863e8573e06eb0a -size 52087 +oid sha256:b5428f93242712a6532fc48cda8b46cf314ae6cd594889566d1e78b37bca7c02 +size 48937 diff --git a/public/models/Bouvardia256_8bit/kernels_webassembly.wasm b/public/models/Bouvardia256_8bit/kernels_webassembly.wasm index 051fa64..1af4cec 100644 --- a/public/models/Bouvardia256_8bit/kernels_webassembly.wasm +++ b/public/models/Bouvardia256_8bit/kernels_webassembly.wasm @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f0dae249dcf088847fca055e5dcce71aca950d1e43f95fc85eefe922b96445c -size 32821 +oid sha256:05ae60555588a99e334f5ba35d1d621391f8c4b411f3088933b5e660a8062a0d +size 31489 diff --git a/public/models/Bouvardia256_8bit/kernels_webgpu.metal b/public/models/Bouvardia256_8bit/kernels_webgpu.metal index aa5834d..f64e33f 100644 --- a/public/models/Bouvardia256_8bit/kernels_webgpu.metal +++ b/public/models/Bouvardia256_8bit/kernels_webgpu.metal @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:398bae6cfca5cebe4c01f837579ebd8e7b1e6e60ee380148ca4e68424890deb4 -size 61516 +oid sha256:4e08de693d990b4cb57d93a1eea2e313a3ec15915e552c9a34f580bfc649a0d9 +size 59554 diff --git a/public/models/Bouvardia256_8bit/weight_webassembly.bin b/public/models/Bouvardia256_8bit/weight_webassembly.bin index f220b13..3c567e8 100644 --- a/public/models/Bouvardia256_8bit/weight_webassembly.bin +++ b/public/models/Bouvardia256_8bit/weight_webassembly.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a5d619c510900efdf91d54c0aa83347b7773b453c8041038c9af1a37a87fa708 -size 9754307 +oid sha256:9735eb6b1549973cffc02ee267ff67afc017d897c01e7569058a7238981163a7 +size 9808555 diff --git a/public/models/Bouvardia256_8bit/weight_webgl_16384.bin b/public/models/Bouvardia256_8bit/weight_webgl_16384.bin index 18f632f..cd43410 100644 --- a/public/models/Bouvardia256_8bit/weight_webgl_16384.bin +++ b/public/models/Bouvardia256_8bit/weight_webgl_16384.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4525d5fef2b55e8e7bba0a45d722c41976775eada902459de5a8a7da1b2ef3c5 -size 9899753 +oid sha256:309691f18400a225eb0f91aec09b2c53f424d7470b19dbfdb45ff29c9fe69064 +size 9908592 diff --git a/public/models/Bouvardia256_8bit/weight_webgl_4096.bin b/public/models/Bouvardia256_8bit/weight_webgl_4096.bin index 5e6ab10..a27275e 100644 --- a/public/models/Bouvardia256_8bit/weight_webgl_4096.bin +++ b/public/models/Bouvardia256_8bit/weight_webgl_4096.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3c0f067bff4c8d15bbc280e0d0d039af464e81f3fd8b34e6e3208c5526911852 -size 10190195 +oid sha256:9bac30fe5ca5d65d213722bad967a1817d1a84cdedc40323fb04871fa5e71425 +size 10184614 diff --git a/public/models/Bouvardia256_8bit/weight_webgl_8192.bin b/public/models/Bouvardia256_8bit/weight_webgl_8192.bin index 4262749..fc6b6c9 100644 --- a/public/models/Bouvardia256_8bit/weight_webgl_8192.bin +++ b/public/models/Bouvardia256_8bit/weight_webgl_8192.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9e9969f8eb573ed3ed4d34db5efe23836d80c41fc9c931e6bcabe62badd26f5 -size 9998146 +oid sha256:840f172f15292e31570da868fc016fb993a02c095c69e0d48d9327034ca8d1a3 +size 9994155 diff --git a/public/models/Bouvardia256_8bit/weight_webgpu.bin b/public/models/Bouvardia256_8bit/weight_webgpu.bin index d88c43a..cc811bf 100644 --- a/public/models/Bouvardia256_8bit/weight_webgpu.bin +++ b/public/models/Bouvardia256_8bit/weight_webgpu.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5c659d2eb9607c1aff0b82891a3a85d814b7bc8eb786e5acad5e7e626bf22938 -size 9728881 +oid sha256:c7b1e5d4609e7170e26c1690e2d0160233205b0ada42d8cea5b232ad7866b2ff +size 9781605 diff --git a/public/models/test_8bit/graph_webassembly.json b/public/models/test_8bit/graph_webassembly.json deleted file mode 100644 index 05ff64b..0000000 --- a/public/models/test_8bit/graph_webassembly.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e14fa2b0be8edfbd569901946269b84ea6406d03eef511674db6a25a32b7128 -size 78934 diff --git a/public/models/test_8bit/graph_webgl_16384.json b/public/models/test_8bit/graph_webgl_16384.json deleted file mode 100644 index df53781..0000000 --- a/public/models/test_8bit/graph_webgl_16384.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30159c7dc90bd090c4b0be56fdc88ba9578cfd034b3c4dba8a3f90ebd0e87b93 -size 1501171 diff --git a/public/models/test_8bit/graph_webgl_4096.json b/public/models/test_8bit/graph_webgl_4096.json deleted file mode 100644 index 370f20d..0000000 --- a/public/models/test_8bit/graph_webgl_4096.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:236ad22d870785e784f6b5a539002980ac79df0a42e01d9af043ce7143a9e0e1 -size 1397515 diff --git a/public/models/test_8bit/graph_webgl_8192.json b/public/models/test_8bit/graph_webgl_8192.json deleted file mode 100644 index ce9de9f..0000000 --- a/public/models/test_8bit/graph_webgl_8192.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed9e2740eb1a5d11fd3e20b18d9cdd7b05e894ab2e06b11e75231d11700ba212 -size 1502171 diff --git a/public/models/test_8bit/graph_webgpu.json b/public/models/test_8bit/graph_webgpu.json deleted file mode 100644 index 2894a6b..0000000 --- a/public/models/test_8bit/graph_webgpu.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5bae257fa80420dbae44eb2b92e38c3560a18427074d3f4d9ebde3ad22baa50b -size 535742 diff --git a/public/models/test_8bit/kernels_asmjs.js b/public/models/test_8bit/kernels_asmjs.js deleted file mode 100644 index b6c8df7..0000000 --- a/public/models/test_8bit/kernels_asmjs.js +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75e2f2c1d71bdb90afedaf1e1b5227c60418e9157bcdcd21624779d5f0f7f08a -size 168030 diff --git a/public/models/test_8bit/kernels_asmjs.js.mem b/public/models/test_8bit/kernels_asmjs.js.mem deleted file mode 100644 index 215a2d3..0000000 --- a/public/models/test_8bit/kernels_asmjs.js.mem +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b90de48420e6d669728113a91572b27c8895c8c0c8507c92a92fd98383bc1a02 -size 16333 diff --git a/public/models/test_8bit/kernels_webassembly.cpp b/public/models/test_8bit/kernels_webassembly.cpp deleted file mode 100644 index 1d8b477..0000000 --- a/public/models/test_8bit/kernels_webassembly.cpp +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09e080ece4091d072895994f33ffc82d32933058e330e42494d96de2c291b828 -size 88239 diff --git a/public/models/test_8bit/kernels_webassembly.js b/public/models/test_8bit/kernels_webassembly.js deleted file mode 100644 index 87af7e7..0000000 --- a/public/models/test_8bit/kernels_webassembly.js +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa6e62176c921bd49d5aaf211c8c345e4d28bd934269e7e392fae0b09b929155 -size 52144 diff --git a/public/models/test_8bit/kernels_webassembly.wasm b/public/models/test_8bit/kernels_webassembly.wasm deleted file mode 100644 index eeb3931..0000000 --- a/public/models/test_8bit/kernels_webassembly.wasm +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4bda4ab22eeb55e4138be8af51f7cef88956798d61490c4a559838cdb01881d -size 95542 diff --git a/public/models/test_8bit/kernels_webgpu.metal b/public/models/test_8bit/kernels_webgpu.metal deleted file mode 100644 index 7bdeff1..0000000 --- a/public/models/test_8bit/kernels_webgpu.metal +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e256add5df56d9c67cd9d1ca0f9abd5b8a6ca8accbcfce6f3744369c4a0f82ce -size 66645 diff --git a/public/models/test_8bit/weight_webassembly.bin b/public/models/test_8bit/weight_webassembly.bin deleted file mode 100644 index 1348425..0000000 --- a/public/models/test_8bit/weight_webassembly.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b0730e2f0cd6ad33c2b7eab60976d5c4f3716e0326222f9785e12c6991cc120 -size 3614782 diff --git a/public/models/test_8bit/weight_webgl_16384.bin b/public/models/test_8bit/weight_webgl_16384.bin deleted file mode 100644 index 6bc2674..0000000 --- a/public/models/test_8bit/weight_webgl_16384.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f65ca3f97622f6cca969b65b654b851f0d811c1f4d9fd78e52585739fdff0ce0 -size 4231091 diff --git a/public/models/test_8bit/weight_webgl_4096.bin b/public/models/test_8bit/weight_webgl_4096.bin deleted file mode 100644 index 6bc2674..0000000 --- a/public/models/test_8bit/weight_webgl_4096.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f65ca3f97622f6cca969b65b654b851f0d811c1f4d9fd78e52585739fdff0ce0 -size 4231091 diff --git a/public/models/test_8bit/weight_webgl_8192.bin b/public/models/test_8bit/weight_webgl_8192.bin deleted file mode 100644 index 6bc2674..0000000 --- a/public/models/test_8bit/weight_webgl_8192.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f65ca3f97622f6cca969b65b654b851f0d811c1f4d9fd78e52585739fdff0ce0 -size 4231091 diff --git a/public/models/test_8bit/weight_webgpu.bin b/public/models/test_8bit/weight_webgpu.bin deleted file mode 100644 index 1348425..0000000 --- a/public/models/test_8bit/weight_webgpu.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b0730e2f0cd6ad33c2b7eab60976d5c4f3716e0326222f9785e12c6991cc120 -size 3614782 diff --git a/src/Config.js b/src/Config.js index 503ae82..ead7b94 100644 --- a/src/Config.js +++ b/src/Config.js @@ -1,4 +1,4 @@ -var debug = false; +var debug = true; var backendUrlPrefix = (debug ? 'http://localhost:6253' : ''); var frontendUrlPrefix = (debug ? 'http://localhost:3000' : ''); var hostServer = 'maketest.girls.moe'; @@ -251,8 +251,8 @@ var Config = { { key: 'year', type: 'continuous', - min: -1.5, - max: 1.5, + min: -1, + max: 1, step: 0.1, offset: 35, prob: 0.8 diff --git a/src/components/generator/OptionsExpert.js b/src/components/generator/OptionsExpert.js index 0c956a1..295b00a 100644 --- a/src/components/generator/OptionsExpert.js +++ b/src/components/generator/OptionsExpert.js @@ -83,8 +83,8 @@ class OptionsExpert extends OptionsClass { {this.renderLabel(key, title)} this.props.onModelOptionChange(key, value === 1)}/> - this.props.dispatch(generatorAction.modelOptionChange(key, false, value))}/> + onChange={(value) => this.props.dispatch(generatorAction.modelOptionChange(key, value === 1))}/> + this.props.dispatch(generatorAction.modelOptionChange(key, false, value))}/> ); } diff --git a/src/locale/en_US.js b/src/locale/en_US.js index 8549061..a32fdb0 100644 --- a/src/locale/en_US.js +++ b/src/locale/en_US.js @@ -38,7 +38,7 @@ const en_US = { Here: "here", Amaryllis:"Amaryllis 128x128 Ver.170716 (3.8MB)", Bouvardia128: "Bouvardia 128x128 Ver.171123 (9.8MB)", - Bouvardia256: "Bouvardia 256x256 Ver.171123 (9.9MB)", + Bouvardia256: "Bouvardia 256x256 Ver.171125 (9.9MB)", HairColor:"Hair Color", HairStyle:"Hair Style", diff --git a/src/locale/ja_JP.js b/src/locale/ja_JP.js index 84d1fba..5983bb1 100644 --- a/src/locale/ja_JP.js +++ b/src/locale/ja_JP.js @@ -38,7 +38,7 @@ const ja_JP = { Here: "こちら", Amaryllis:"Amaryllis 128x128 Ver.170716 (3.8MB)", Bouvardia128: "Bouvardia 128x128 Ver.171123 (9.8MB)", - Bouvardia256: "Bouvardia 256x256 Ver.171123 (9.9MB)", + Bouvardia256: "Bouvardia 256x256 Ver.171125 (9.9MB)", HairColor:"髪の色", diff --git a/src/locale/ru_RU.js b/src/locale/ru_RU.js index 81a82d7..fd0b35f 100644 --- a/src/locale/ru_RU.js +++ b/src/locale/ru_RU.js @@ -38,7 +38,7 @@ const ru_RU = { Here: "here", Amaryllis:"Amaryllis 128x128 Ver.170716 (3.8MB)", Bouvardia128: "Bouvardia 128x128 Ver.171123 (9.8MB)", - Bouvardia256: "Bouvardia 256x256 Ver.171123 (9.9MB)", + Bouvardia256: "Bouvardia 256x256 Ver.171125 (9.9MB)", HairColor:"Цвет волос", diff --git a/src/locale/zh_CN.js b/src/locale/zh_CN.js index 10d9197..73404bc 100644 --- a/src/locale/zh_CN.js +++ b/src/locale/zh_CN.js @@ -38,7 +38,7 @@ const zh_CN = { Here: "点击这里", Amaryllis:"Amaryllis 128x128 Ver.170716 (3.8MB)", Bouvardia128: "Bouvardia 128x128 Ver.171123 (9.8MB)", - Bouvardia256: "Bouvardia 256x256 Ver.171123 (9.9MB)", + Bouvardia256: "Bouvardia 256x256 Ver.171125 (9.9MB)", HairColor:"发色", HairStyle:"发型",