- Clone repository
- Install requirements.txt
An environment with a pre-configured Python + Torch installation using GPUs is available. Please follow this link.
Then, you have to add the src folder to your python path, so it can find the given API. In Linux it is done by running the following command, after replacing with the correct path (e.g., using pwd command in src folder):
export PYTHONPATH = $PYTHONPATH:/absolute/path/to/src
Note that this should be done everytime if you are running scripts in a terminal.
In a Jupyter Notebook (and even in a script), it can be done manually as follows:
import sys
sys.path.append("/absolute/path/to/src")
before doing any import of the am4ip library.
One can also configure its IDE for the project.
- right Click on the src folder
- Mark Directory as > Sources Root