-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·30 lines (23 loc) · 915 Bytes
/
install.sh
File metadata and controls
executable file
·30 lines (23 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Define the environment name
ENV_NAME="paco"
# Create the conda environment if it doesn't exist
if ! conda info --envs | grep -q "^${ENV_NAME} "; then
echo "Creating conda environment ${ENV_NAME}..."
conda create -n ${ENV_NAME} python=3.10 -y
fi
# Activate the conda environment
echo "Activating environment ${ENV_NAME}..."
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate ${ENV_NAME}
# Upgrade pip (optional)
pip install --upgrade pip
# Install pip dependencies from requirements.txt
echo "Installing pip dependencies..."
pip install -r requirements.txt
# Now install pointnet2_ops
echo "Installing pointnet2_ops..."
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
# Now install pytorch3d
echo "Installing pytorch3d..."
pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"