| name: psalm | |
| channels: | |
| - pytorch | |
| - nvidia | |
| - conda-forge | |
| dependencies: | |
| - python=3.10.* | |
| - pytorch==2.0.1 | |
| - torchvision==0.15.2 | |
| - torchaudio==2.0.2 | |
| - pytorch-cuda=11.8 | |
| - mkl=2024.0.0 | |
| - pip | |
| - pip: | |
| - git+https://github.com/facebookresearch/detectron2.git | |
| - git+https://github.com/cocodataset/panopticapi.git | |
| - git+https://github.com/mcordts/cityscapesScripts.git | |
| postinstall: | | |
| export CUDA_HOME=/opt/modules/nvidia-cuda-11.8.0 | |
| export PATH=/opt/modules/nvidia-cuda-11.8.0/bin:$PATH | |
| export LD_LIBRARY_PATH=/opt/modules/nvidia-cuda-11.8.0/lib64:$LD_LIBRARY_PATH | |
| echo $CUDA_HOME | |
| cd /home/yuqian_fu/Projects/PSALM | |
| pip install -e . | |
| pip install opencv-python addict | |
| export PATH=/opt/modules/gcc-10.5.0/bin:$PATH | |
| export CC=/opt/modules/gcc-10.5.0/bin/gcc-10.5 | |
| export CXX=/opt/modules/gcc-10.5.0/bin/g++-10.5 | |
| echo "gcc version:" | |
| gcc --version | |
| cd psalm/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/ops | |
| python setup.py clean | |
| rm -rf build/ | |
| sh make.sh | |
| pip install numpy==1.23.5 | |