Skip to content

okuta/chainerui

 
 

Repository files navigation

ChainerUI

CircleCI

training_captures

ChainerUI is a visualization and management tool for Chainer.

Installation

To install ChainerUI, use pip

$ pip install chainerui

Then initialize ChainerUI database.

$ chainerui db create
$ chainerui db upgrade

To install ChainerUI from source

$ git clone https://github.com/chainer/chainerui.git
$ cd chainerui/frontend
$ npm install && npm run build && cd ..
$ python setup.py install
  • ChainerUI uses sqlite3 module which is included in the Python standard library. To enable sqlite3 module, need to install SQLite library before building Python.
    • on Ubuntu, install "libsqlite3-dev" (apt-get install libsqlite3-dev) before building Python
  • On Windows, install Visual C++ Build Tools with the Default Install setting, before ChainerUI install.

Quick start

Try examples.

$ git clone https://github.com/chainer/chainerui.git
$ cd chainerui

$ # create your first project
$ chainerui project create -d examples -n example-project

$ # run ChainerUI server
$ chainerui server

Open http://localhost:5000/ and select "example-project".

Usage

Create a project

$ chainerui project create -d PROJECT_DIR [-n PROJECT_NAME]

The ChainerUI server watches the below files under the project directory recursively.

  • log: a JSON file created by LogReport extension.
  • args: (optional) a JSON file, which includes key-value pairs you want to see on ChainerUI along with logs. See save_args, util function to dump command line arguments or dictionary to args file.
  • commands: (optional) a JSON file, which is automatically created by CommandsExtension . This is a file for ChainerUI server to communicate with CommandsExtension .
path/to/result
  |--- log
  |--- args
  |--- commands

examples/train_mnist.py, based on chainer/examples/mnist/train_mnist.py, is a useful example to see how to set save_args and CommandsExtension on training script.

Start ChainerUI server

$ chainerui server

Open http://localhost:5000/ .

Unregister results

To unregister a result, click X button at the right end of the result table. If unregister a result once, cannot restore the same name result on the result table (known problem).

To unregister all results, drop and create a new database as follows.

$ chainerui db drop
$ chainerui db create
$ chainerui db upgrade

Browser compatibility

ChainerUI is supported by the latest stable version of the following browser.

  • Firefox
  • Chrome

License

MIT License

Contribution

Any contribution to ChainerUI is welcome!

Run tests

Install "pytest" package and run test

$ CHAINERUI_ENV=test pytest

Build client side JS

$ cd frontend
$ npm install
$ npm run build:watch

About

ChainerUI: User Interface for Chainer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.9%
  • Python 27.8%
  • CSS 6.2%
  • Other 1.1%