mirror of
https://gitee.com/mymagicpower/AIAS.git
synced 2024-12-06 06:08:53 +08:00
.. | ||
aias-training-demo | ||
aias-training-ui | ||
README_CN.md | ||
README.md |
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:
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