UNav Server provides a serverless implementation for indoor navigation using computer vision techniques. It leverages Modal for deployment and offers features like visual localization, path planning, and navigation guidance.
- Python 3.10+
- Modal CLI
- A Modal account and token
Create a virtual environment:
python -m venv .venvActivate the virtual environment:
- On macOS/Linux:
source .venv/bin/activate - On Windows:
.venv\Scripts\activate
Install dependencies:
pip install -r requirements.txtNavigate to the folder
cd src/modal_functions/unav_v2modal deploy unav_modal.pyscaledown_window and GPU type are configurable at deploy time using:
UNAV_SCALEDOWN_WINDOW(default:300)UNAV_GPU_TYPE(default:t4, allowed:a10,t4,any)
UNAV_SCALEDOWN_WINDOW=600 UNAV_GPU_TYPE=t4 modal deploy unav_modal.pyYou can also deploy from GitHub UI using:
- Actions ->
Deploy UNav v2 Modal->Run workflow - Set
scaledown_windowinput - Set
gpu_typeinput (a10,t4, orany) - Ensure repository secrets
MODAL_TOKEN_IDandMODAL_TOKEN_SECRETare configured
python test_modal_functions.py