A complete data annotation and tracking system with both Python (FastAPI) backend and C++ interface. Supports video object segmentation using SAM 2 and point tracking using CoTracker.
-
Create Python virtual environment using venv or Anaconda
-
Run
git clone https://github.com/facebookresearch/sam2.git && cd sam2outside of this directory -
Run
pip install -e .while insam2directory -
Run
pip install -e ".[notebooks]"while insam2directory -
Return to the data engine directory and run
pip install -r requirements.txt
- Run
fastapi dev backend/api.pyto test the API manually with hot reload, or runpython3 backend/tests/tester.pyto test the API automatically and see results underbackend/tests/
-
Install
nlohmann_jsonandcurldev packages via your package manager -
Run
mkdir build -
Run
cmake buildto generate CMake build files -
Run
cmake --build buildto compile project -
Run
./build/src/BackendInterfaceTestswhile the venv is sourced to test backend code