|
@@ -1,53 +1,82 @@
|
|
|
# PyCS
|
|
|
-
|
|
|
[](https://gitlab.com/troebs/pycs/-/commits/master)
|
|
|
[](https://gitlab.com/troebs/pycs/-/commits/master)
|
|
|
[](https://www.python.org/)
|
|
|
[](https://vuejs.org/)
|
|
|
|
|
|
-PyCS is a python tool to use and update machine learning models using any modern web browser.
|
|
|
+PyCS is a python tool to use and fit machine learning models using any modern web browser.
|
|
|
|
|
|
-## Requirements
|
|
|
|
|
|
+## Requirements
|
|
|
- python 3.6 + pip
|
|
|
- nodejs 14 + npm
|
|
|
|
|
|
-## Getting Started
|
|
|
|
|
|
-create and activate a virtual python environment
|
|
|
+## Getting Started
|
|
|
+### CI Builds
|
|
|
+Download the [latest version](https://gitlab.com/troebs/pycs/-/jobs/artifacts/master/download?job=bundle) and unzip it. Execute the following commands using a command prompt:
|
|
|
|
|
|
+- create and activate a virtual python environment
|
|
|
```bash
|
|
|
python -m venv env
|
|
|
source env/bin/activate
|
|
|
```
|
|
|
|
|
|
-install python dependencies
|
|
|
-
|
|
|
+- install python dependencies
|
|
|
```bash
|
|
|
pip install numpy opencv-python Pillow scipy
|
|
|
pip install eventlet flask python-socketio
|
|
|
```
|
|
|
|
|
|
-start server
|
|
|
-
|
|
|
+- start server
|
|
|
```bash
|
|
|
python app.py
|
|
|
```
|
|
|
|
|
|
-change directory to webui
|
|
|
+### Docker
|
|
|
+Docker is the preferred way to quickly start a PyCS instance without requiring any more software or libraries on your system.
|
|
|
|
|
|
+- build image with tag `pycs`
|
|
|
```bash
|
|
|
-cd webui/
|
|
|
+docker build -t pycs .
|
|
|
+```
|
|
|
+
|
|
|
+- start container
|
|
|
+```bash
|
|
|
+docker run -p 5000:5000 pycs
|
|
|
+```
|
|
|
+
|
|
|
+### Development
|
|
|
+Use `git` to clone this repository or download the [latest version as a zip file](https://gitlab.com/troebs/pycs/-/archive/master/pycs-master.zip). Execute the following commands using a command prompt:
|
|
|
+
|
|
|
+- create and activate a virtual python environment
|
|
|
+```bash
|
|
|
+python -m venv env
|
|
|
+source env/bin/activate
|
|
|
+```
|
|
|
+
|
|
|
+- install python dependencies
|
|
|
+```bash
|
|
|
+pip install numpy opencv-python Pillow scipy
|
|
|
+pip install eventlet flask python-socketio
|
|
|
```
|
|
|
|
|
|
-install vuejs
|
|
|
+- start server
|
|
|
+```bash
|
|
|
+python app.py
|
|
|
+```
|
|
|
|
|
|
+- change directory to webui
|
|
|
```bash
|
|
|
-npm install vue
|
|
|
+cd webui/
|
|
|
```
|
|
|
|
|
|
-start frontend
|
|
|
+- install vuejs and other dependencies
|
|
|
+```bash
|
|
|
+npm install
|
|
|
+```
|
|
|
|
|
|
+- start frontend
|
|
|
```bash
|
|
|
npm run serve
|
|
|
```
|