AIAS/7_engine_hub/training_demo
2021-10-29 10:29:42 +08:00
..
aias-training-demo no message 2021-10-03 22:25:35 +08:00
aias-training-ui no message 2021-10-28 14:33:22 +08:00
README_CN.md no message 2021-10-29 10:29:42 +08:00
README.md no message 2021-10-28 14:33:22 +08:00

Visualizing Training with AIAS & DJL

This module provides training visualization UI and backend service.

Currently, implemented features:

  • Training/Validating progress
  • Training Metrics Visualization chart
  • Inference: Online image/Local image

Prerequisites

  • You need to have Java Development Kit version 11 or later installed on your system.

Install the Java Development Kit

For ubuntu:

sudo apt-get install openjdk-11-jdk-headless

For centos:

sudo yum install java-11-openjdk-devel

For macOS:

brew tap homebrew/cask-versions
brew update
brew cask install adoptopenjdk11

You can also download and install Oracle JDK manually if you have trouble with the previous commands.

If you have multiple versions of Java installed, you can use the $JAVA_HOME environment variable to control which version of Java to use.

Getting started: 30 seconds to run an example

Build and install UI

This component supports building with npm. To build, use the following command:

# clone the visualization-vue project
cd aias-training-ui

# install dependency
npm install

# develop
npm run dev

This will automatically open http://localhost:8090

Build backend example project

To build, use the following command:

# enter the project directory
cd visualization-vue

# Maven build
mvn package -DskipTests -f aias-training-demo

# enter the jar directory
cd /Path/to/visualization-vue/aias-training-demo/target/

# Run example code
java -jar aias-training-demo-0.0.1-SNAPSHOT.jar

Open browser

Open http://localhost:8090 to get:

  • Training Screenshot

  • Inference Screenshot

Reference

1. Check node.js and npm version:

node -v
v14.16.0
npm -v
7.8.0

2. Install latest node.js and npm:

#Clean cache
sudo npm cache clean -f
#Install n
sudo npm install -g n
#Install latest node.js
sudo n stable
#Install latest npm
sudo npm install npm@latest -g

3. If you're getting this error on Mac OSX:

"Package pangocairo was not found in the pkg-config search path."
Ensure to run:

brew install pkg-config
brew intall cairo
brew install pango