config conda environment

1
2
3
4
5
6
xdantong@longleaf-login6 dof gaussian camoptim]$ module unload python

xdantong@longleaf-login6 dof gaussian camoptim]$ module load anaconda/2021.11

xdantong@longleaf-login6 dof gaussian camoptim]$ conda --version
conda 4.12.0

pip install torch==2.0.1 torchvision==0.15.2 torch-cluster==1.6.3 torchaudio==2.0.2 -f https://download.pytorch.org/whl/torch_stable.html

1
conda activate dof_gs
1
2
3
4
5

(dof_gs) [xdantong@longleaf-login4 dof_gaussian_camOptim]$ pip install torch-cluster==0.15.2
ERROR: Could not find a version that satisfies the requirement torch-cluster==0.15.2 (from versions: 0.1.1, 0.2.3, 0.2.4, 1.0.1, 1.0.3, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.3a1, 1.4.3, 1.4.4, 1.4.5, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.6.0, 1.6.1, 1.6.2, 1.6.3)
ERROR: No matching distribution found for torch-cluster==0.15.2

install torch-cluster:

pip install torch-cluster==1.6.3 -f https://data.pyg.org/whl/torch-1.8.1+cu102.html

1
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118  torchaudio==2.0.2+cu118 -f https://download.pytorch.org/whl/torch_stable.html

conda install setuptools wheel

module avail cuda

module load cuda/11.8

version `GLIBCXX_3.4.29‘ not found解决办法:

https://blog.csdn.net/qq_43824135/article/details/136918157

1
python train.py --config config_files/config_version1_exp1.yaml

方法一:在 conda 环境中安装 GCC 和 G++

1
2
conda install -c conda-forge gcc=12.3.0sbat
conda install -c conda-forge gxx=12.3.0
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
#!/bin/bash
#SBATCH -p general # Partition name
#SBATCH -N 1 # Number of nodes
#SBATCH --mem 5120 # Memory in MB
#SBATCH -n 1 # Number of tasks
#SBATCH -t 2:00:00 # Runtime limit
#SBATCH --mail-type=end # Send email at job completion
#SBATCH --mail-user=xdantong@email.unc.edu # Email address

# Load necessary modules or activate environment
module load anaconda/2021.11
module load cuda/11.8

# Activate Conda environment
conda activate dof_gs

# Install specific PyTorch version and packages
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 -f https://download.pytorch.org/whl/torch_stable.html
pip install torch-cluster==1.6.3 -f https://data.pyg.org/whl/torch-1.8.1+cu102.html
pip install torchmetrics==1.3.0 torchtyping==0.1.4 torch-efficient-distloss==0.1.3

# Install custom packages or submodules
pip install submodules/diff-gaussian-rasterization-mipGS-outCoC
pip install submodules/simple-knn

# Your main Python script execution command
python train.py --config config_files/config_version1_exp1.yaml # Command to execute your Python script

module load anaconda/2021.11

module load cuda/11.8

conda activate dof_gs

CUDA = 12.4

pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 -f https://download.pytorch.org/whl/torch_stable.html

conda install pytorch-cluster -c pyg

python train.py –config config_files/config_version1_exp1.yaml