Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 3.34 KB

README.md

File metadata and controls

55 lines (46 loc) · 3.34 KB

SHIFT Lab

This repository contains a set of tools for training models with the SHIFT dataset. The SHIFT dataset is a multi-task synthetic driving dataset that was created using the CARLA simulator. As such, it provides an opportunity to train models which can be deployed in autonomous driving stacks operating inside CARLA, providing a rich research opportunity in AV stack development.

Models

Setup

Local

If you'd prefer to work outside the Docker container, you can set up like this:

  1. Install latest NVIDIA driver for your hardware.
  2. Install CUDA Toolkit.
  3. Set up a virtual environment:
    • python -m venv ./venv
  4. Activate virtual environment:
    • Windows Powershell: ./venv/Scripts/Activate.ps1
    • Linux: source ./venv/bin/activate
  5. Install repo:
    1. Set environment variable
      • Linux: export PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cu117
      • Windows: $env:PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cu117"
    2. pip install -e .
  6. Install bitsandbytes (optional):
  7. Run a training script (Use --help to discover params):
    • python ./scripts/model_train_eval/train_multiformer.py --help

Docker

Navigate in your terminal into this repository. With Docker installed on your system:

  1. Build Docker image (this may take a while):
    • docker build -f Dockerfile . -t shift_lab:latest
  2. Run Docker image:
    • docker run -it --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 shift_lab:latest
  3. Run a training script (Use --help to discover params):
    • python shift-experiments/scripts/model_train_eval/train_multitask_segformer.py --help