chainerui:chainer的用户界面
chainerui的Python项目详细描述
链路
chainerui是用于Chainer的可视化和管理工具。
安装
要安装chainerui,请使用pip
。
$ pip install chainerui
从源安装chainerui。
$ git clone https://github.com/chainer/chainerui.git $ cd chainerui/frontend $ npm install && npm run build &&cd .. $ pip install -e .
- chainerui使用标准python库中包含的
sqlite3
模块。如果python是从源代码构建的,那么在构建python之前必须安装sqlite3
。- 在ubuntu上,在构建python之前必须安装“libsqlite3 dev”(
$ apt-get install libsqlite3-dev
)。
在Windows上,在构建Python之前,使用默认安装设置安装VisualC++构建工具。
- 在ubuntu上,在构建python之前必须安装“libsqlite3 dev”(
快速启动
初始化chainerui数据库。
$ chainerui db create $ chainerui db upgrade
复制列车日志示例并创建项目。
$ 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
打开http://localhost:5000/并选择“示例项目”。
有关详细用法,请参见getting started
Docker启动
从DockerHub获取docker容器并启动chainerui服务器。容器已安装chainerui模块,设置数据库和命令以启动服务器。
$ git clone https://github.com/chainer/chainerui.git $ cd chainerui $ # replace tag to the latest version number $ docker pull chainer/chainerui:v0.4.0 $ docker run -d -p 5000:5000 -v $PWD:/projects --name chainerui chainer/chainerui:v0.4.0 $ # then ChainerUI server is running $ # create project via HTTP $ curl http://localhost:5000/api/v1/projects -X POST -H "Content-Type: application/json" -d '{"project":{"name":"example-project","path_name":"/projects/examples"}}'
打开http://localhost:5000/并选择“示例项目”。
有关详细用法,请参见docker start
浏览器兼容性
以下浏览器的最新稳定版本支持chainerui。
- 火狐
- 铬
许可证
麻省理工学院许可证(见LICENSE
文件)。
贡献
欢迎任何对Chainerui的贡献!
- python代码遵循Chainer contribution guide。
运行测试
安装“pytest”软件包并运行测试
$ pytest
构建客户端js
$ cd frontend
$ npm install
$ npm run build:watch