Installation guide

To start, clone the repo:

git clone git@github.com:antonioterpin/jkonet-star.git

Before proceeding, ensure Docker is installed on your machine. You can download Docker from the official site: https://www.docker.com/.

Once Docker is installed and running, follow these steps to build the Docker image. Execute the following command from the root directory of the repository:

docker build -t jkonet-star-app .

If you encounter any issues with the Docker build, please ensure that Docker is running and that you have the necessary permissions to execute Docker commands. You can also try to pull the python:3.12-slim image before building the jkonet-star-app image:

docker pull python:3.12-slim

Running JKOnet* using Docker

After building the image, you can generate data and train models by executing the following commands:

# Generate population data
docker run -v "$(pwd)/:/app" jkonet-star-app python data_generator.py --potential wavy_plateau --dataset-name test-wavy-plateau

# Train the model on the generated dataset
docker run -v "$(pwd)/:/app" jkonet-star-app python train.py --solver jkonet-star-potential --dataset test-wavy-plateau

Note

The installation instructions we provide are not GPU friendly. If you have a GPU, you can install the necessary packages for GPU support. Running the experiments on a GPU yields significant speedups, especially for the JKOnet* full model (jkonet-star). We collected the training times on a RTX 4090.