LoginSignup
4
6

More than 5 years have passed since last update.

deeplearn.jsを試してみた

Last updated at Posted at 2017-08-15

deeplearn.jsをインストールして動かすまで

deeplearnjsとは...

deeplearnjsとは...
Googleが提供しているブラウザで動くDeepLearningである。
基本的には、GPUを利用して動いているそうだ。
FirefoxとChromeで動くことを確認。

きっかけ

動かすきっかけは...現在開発中の自社システム研究のため。

インストール

インストール方法は簡単。
まず、ここを参考に同手順を行う。

$ git clone https://github.com/PAIR-code/deeplearnjs.git
$ cd deeplearnjs
$ npm run prep

<script>タグで使用するなら下記のコンマンドでビルドを行うこと:

$ ./scripts/build-standalone.sh # Builds standalone library.
>> Stored standalone library at dist/deeplearn.js

もしes6でビルドするなら、下記のコマンドでビルドする:

$ ./scripts/build-npm.sh # Builds npm package.
>> Stored npm package at dist/deeplearn-VERSION.tgz

インタラクティブのデモを開発する場合 (e.g. demos/nn-art/):

$ ./scripts/watch-demo demos/nn-art/nn-art.ts
>> Starting up http-server, serving ./
>> Available on:
>>   http://127.0.0.1:8080
>> Hit CTRL-C to stop the server
>> 1357589 bytes written to dist/demos/nn-art/bundle.js (0.85 seconds) at 10:34:45 AM
4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6