File size: 621 Bytes
49d36c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e  # Exit immediately if a command exits with a non-zero status.

echo "Installing gem in editable mode..."
uv pip install -e .

echo "Installing SAM-3D-Body runtime deps..."
uv pip install cloudpickle fvcore iopath pycocotools braceexpand roma 'setuptools<75'

if [[ "$(uname)" == "Darwin" ]]; then
    echo "macOS detected — skipping detectron2, installing ONNX Runtime..."
    uv pip install onnxruntime
else
    echo "Installing detectron2..."
    uv pip install 'git+https://github.com/facebookresearch/detectron2.git@a1ce2f9' --no-build-isolation --no-deps
fi

echo "Environment setup complete."