Skip to content

Latest commit

 

History

History

ai

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Setup ML/AI Python packages

Run go get in the root directory

Inside ai/

Setup gopy

Run

$ gopy build --output=engine github.com/go-compression/raisin/engine

Install requirements

$ pip install -r requirements.txt

Running

Use ./start.sh to run the program from the shell

This exports the engine directory as a LD_LIBRARY_PATH which needs to be set before invoking the python program.

Here's a sample VSCode run configuration:

{
  "name": "test.py",
  "type": "python",
  "request": "launch",
  "program": "test.py",
  "console": "integratedTerminal",
  "env": {
    "LD_LIBRARY_PATH": "${env:LD_LIBRARY_PATH}:${fileDirname}/engine"
  },
  "cwd": "${workspaceFolder}/ai/"
}