-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
36 lines (30 loc) · 1.09 KB
/
install.sh
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
31
32
33
34
35
36
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# This Script Assumes Python 3.9, CUDA 11.6
conda deactivate
# Set environment variables
export ENV_NAME=DiffLoc
export PYTHON_VERSION=3.9
export PYTORCH_VERSION=1.13.0
export CUDA_VERSION=11.6
# Create a new conda environment and activate it
conda create -n $ENV_NAME python=$PYTHON_VERSION
conda activate $ENV_NAME
# Install PyTorch, torchvision, and PyTorch3D using conda
conda install pytorch=$PYTORCH_VERSION torchvision pytorch-cuda=$CUDA_VERSION -c pytorch -c nvidia
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install pytorch3d -c pytorch3d
# Install pip packages
pip install hydra-core --upgrade
pip install omegaconf opencv-python einops visdom
pip install accelerate==0.24.0
pip install matplotlib==3.8.2
pip install pandas==2.2.0
pip install transforms3d==0.4.1
pip install open3d==0.18.0
pip install h5py==3.10.0
pip install tensorboardX==2.6.2.2
pip install timm==0.9.12