- Install Anaconda package manager with Python version 3.9 from Miniconda (recommended because of small size) or full Anaconda (includes graphical user interface for package management).
- Verify that the pip3 (Python 3's official package manager) is installed by entering
pip3 -v
in the terminal. If it is not installed, install it, perhaps using this tutorial. - Create the conda environment
jtml
from theenvironment.yml
using the commandconda env create -f environment.yml
. - Activate the conda env with
conda activate jtml
. - There may be other dependencies that you can install using conda or pip3.
WandB - our logging system.
- Create an account from the website and send the email you used to Sasank (to get invited to the Wandb team).
If you have an NVIDIA graphics card, please install CUDA. This will allow you to use your GPU for training, which is useful when running a couple batches during development to ensure the code runs.
Large data is in the Files section of the Microsoft Teams team. Please copy these files/folders locally. This includes the image folder of X-ray images and segmentation masks (you need to unzip this folder) and the .ckpt model checkpoint file needed for loading a pretrained model for testing.
After you download these files/folders locally, remember to edit the config file (in config/config.py) to specify the location of your local image directory and checkpoint file.
- Be in the LitJTML directory (use the
cd
command to change the directory to theblah/blah/LitJTML/
directory). - To fit (train) a model, call
python scripts/fit.py my_config
wheremy_config
is the name of the config.py file in theconfig/
directory.- The config file should specify the model, data, and other parameters.