未验证 提交 df2627cb 编写于 作者: P Peter Pan 提交者: GitHub

build: setup github actions (#792)

* feat: restore selected model when navigating back to graph page

* build: setup github actions

* build: create lint status check
上级 381d8b80
name: Build
on: [push, pull_request]
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8']
node-version: ['12', '14']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install requirements
run: |
pip install wheel
pip install -r requirements.txt
- name: Build whl
run: |
python setup.py bdist_wheel
- name: Upload whl
uses: actions/upload-artifact@v2
with:
name: VisualDL
path: dist/*.whl
name: Lint
on: pull_request
jobs:
lint_fe:
name: Lint FE
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Install dependencies
run: |
cd frontend
./scripts/install.sh
yarn
- name: Run linters
uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint: true
prettier: true
eslint_dir: frontend/
eslint_extensions: js,ts,jsx,tsx
eslint_args: "--max-warnings 0 --ignore-path .gitignore"
lint_be:
name: Lint BE
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install requirements
run: |
echo "TODO"
- name: Lint
run: |
echo: "TODO"
language: python
python:
- "3.8.3"
jobs:
include:
- name: "Bionic Linux"
dist: bionic
before_install:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- name: "MacOS"
osx_image: xcode11.5
before_install:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# - name: "Windows"
# os: windows
# language: shell
# before_install:
# - choco install nvm.portable
# - choco install python --version 3.8.3
# - python -m pip install --upgrade pip
# env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
install:
- nvm install 12.18.0
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
before_script:
- nvm use 12.18.0
script:
- python3 setup.py bdist_wheel || python setup.py bdist_wheel
notifications:
email:
on_success: change
on_failure: always
......@@ -6,7 +6,7 @@
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/paddlepaddle/visualdl/develop?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://pypi.org/project/visualdl/"><img src="https://img.shields.io/pypi/v/visualdl?style=flat-square" alt="PyPI" /></a>
<a href="https://pypi.org/project/visualdl/#files"><img src="https://img.shields.io/pypi/dm/visualdl?style=flat-square" alt="Downloads" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/blob/develop/LICENSE"><img src="https://img.shields.io/github/license/paddlepaddle/visualdl?style=flat-square" alt="License" /></a>
......@@ -21,7 +21,7 @@ VisualDL, a visualization analysis tool of PaddlePaddle, provides a variety of c
VisualDL provides various visualization functions, including tracking metrics in real-time, visualizing the model structure, displaying the data sample, presenting the changes of distributions of tensors, showing the pr curves, projecting high-dimensional data to a lower dimensional space and more. For specific guidelines of each function, please refer to [**VisualDL User Guide**](./docs/components/UserGuide-en.md). Currently, VisualDL iterates rapidly and new functions will be continously added.
VisualDL natively supports the use of Python. Developers can retrieve plentiful visualization results by simply adding a few lines of Python code into the model before training.
VisualDL natively supports the use of Python. Developers can retrieve plentiful visualization results by simply adding a few lines of Python code into the model before training.
## Contents
......@@ -41,11 +41,11 @@ VisualDL natively supports the use of Python. Developers can retrieve plentiful
The high-level design of API makes it easy to use. Only one click can initiate the visualization of model structures.
### Various Functions
### Various Functions
The function contains the visualization of training parameters, data samples, graph structures, histograms of tensors, PR curves and high-dimensional data.
### High Compatibility
### High Compatibility
VisualDL provides the visualization of the mainstream model structures such as Paddle, ONNX, Caffe, widely supporting visual analysis for diverse users.
......@@ -71,7 +71,7 @@ pip install --upgrade dist/visualdl-*.whl
```
Please note that Python 2 is no longer maintained officially since January 1, 2020. VisualDL now only supports Python 3 in order to ensure the usability of codes.
## Usage Guideline
## Usage Guideline
VisualDL stores the data, parameters and other information of the training process in a log file. Users can launch the panel to observe the visualization results.
......@@ -148,7 +148,7 @@ visualdl --logdir ./log
#### Launch in Python Script
Developers can start the VisualDL panel in Python script as follows:
Developers can start the VisualDL panel in Python script as follows:
```python
visualdl.server.app.run(logdir,
......@@ -216,7 +216,7 @@ Developers can compare with multiple experiments by specifying and uploading the
### Image
**Image** provides real-time visualizations of the image data during the training process, allowing developers to observe the changes of images in different training stages and to deeply understand the effects of the training process.
**Image** provides real-time visualizations of the image data during the training process, allowing developers to observe the changes of images in different training stages and to deeply understand the effects of the training process.
<p align="center">
<img src="https://user-images.githubusercontent.com/48054808/90869677-22353500-e3cb-11ea-9830-2334bdd8e52e.gif" width="55%"/>
......@@ -256,7 +256,7 @@ Histogram displays how the trend of tensors (weight, bias, gradient, etc.) chang
### High Dimensional
**High Dimensional** provides two approaches--T-SNE and PCA--to do the dimensionality reduction, allowing developers to have an in-depth analysis of the relationship between high-dimensional data and to optimize algorithms based on the analysis.
**High Dimensional** provides two approaches--T-SNE and PCA--to do the dimensionality reduction, allowing developers to have an in-depth analysis of the relationship between high-dimensional data and to optimize algorithms based on the analysis.
<p align="center">
<img src="https://user-images.githubusercontent.com/48054808/90870677-85739700-e3cc-11ea-8653-18fa5c4106a3.GIF" width="85%"/>
......
......@@ -7,7 +7,7 @@
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/paddlepaddle/visualdl/develop?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://pypi.org/project/visualdl/"><img src="https://img.shields.io/pypi/v/visualdl?style=flat-square" alt="PyPI" /></a>
<a href="https://pypi.org/project/visualdl/#files"><img src="https://img.shields.io/pypi/dm/visualdl?style=flat-square" alt="Downloads" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/blob/develop/LICENSE"><img src="https://img.shields.io/github/license/paddlepaddle/visualdl?style=flat-square" alt="License" /></a>
......
......@@ -4,7 +4,7 @@
<br />
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/PaddlePaddle/VisualDL/develop?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL"><img src="https://img.shields.io/github/languages/top/PaddlePaddle/VisualDL?style=flat-square" alt="GitHub top language" /></a>
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="code style: prettier" /></a>
<a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="lerna"></a>
......
......@@ -4,7 +4,7 @@
<br />
<p align="center">
<a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/PaddlePaddle/VisualDL?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL/actions"><img src="https://img.shields.io/github/workflow/status/PaddlePaddle/VisualDL/build?style=flat-square" alt="Build Status" /></a>
<a href="https://github.com/PaddlePaddle/VisualDL"><img src="https://img.shields.io/github/languages/top/PaddlePaddle/VisualDL?style=flat-square" alt="GitHub top language" /></a>
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="code style: prettier" /></a>
<a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="lerna"></a>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册