-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
19 lines (15 loc) · 767 Bytes
/
setup.sh
File metadata and controls
19 lines (15 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
set -euo pipefail
ENV_NAME="moAI"
YAML="config/conda_env.yaml"
conda env remove -n "$ENV_NAME" -y || true
conda env create -f "$YAML" -n "$ENV_NAME"
conda run -n "$ENV_NAME" conda remove -y pytorch torchvision cudatoolkit || true
conda run -n "$ENV_NAME" python -m pip install --upgrade pip
conda run -n "$ENV_NAME" python -m pip install torch torchvision
conda run -n "$ENV_NAME" python -m pip install -e megapose6d/
conda run -n "$ENV_NAME" --no-capture-output \
python -c 'import torch, torchvision, sys, platform; \
print("Python:", sys.version.split()[0], platform.platform()); \
print("Torch:", torch.__version__, "CUDA:", torch.version.cuda, "CUDA avail:", torch.cuda.is_available()); \
print("Torchvision:", torchvision.__version__)'