Installation
Download the model
The code can be downloaded from the repository (steps highlighted in red). If you are using the graphical user interface (GUI), instead download the compiled tool from releases.
Once downloaded, unzip the archive into your project directory.
Installing requirements
Python
Running the SOM tool requires Python version 3.12 or above, which can be downloaded here. Follow the installer instructions to set it up.
Node.js
To run the script using the GUI from the terminal, Node.js is required, which can be downloaded here. Follow the installer instructions to set it up. Alternatively, download the standalone GUI from here to skip this step.
Setting up the environment
Open up a terminal and enter the following:
-
Navigate to your directory
cd "/path/to/SOM"
-
Create a new python environment (optional, not if using the GUI):
python -m venv . source bin/activate
-
Install dependencies:
python -m pip install .
If Node.js was installed to run the GUI from the terminal, additionally install the required node modules:
-
Navigate to UI directory
cd "/path/to/SOM/ui"
-
Install dependencies:
npm install
Running the tool
To run the tool from the terminal:
python "/path/to/SOM/src/main.py"
To run the UI from the terminal:
cd "/path/to/SOM/ui"
npm run start
Alternatively, see Using the tool.