# cuda 11.3
conda create --name ape python=3.9 -y
conda activate ape
pip install torch==1.12.1 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 --upgrade
pip install transformers==4.32.1 cython opencv-python scipy einops lvis fairscale
# Compile detrex and detectron2, ensuring both gcc and g++ are switched to 8.4.0!
pip install git+https://github.com/facebookresearch/detectron2@017abbf
pip install numpy==1.22.4 flake8==3.9.2 pyflakes==2.3.0
git clone https://github.com/IDEA-Research/detrex.git
cd detrex # Change requirements: omegaconf==2.3.0, remove flake8==3.8.1
git checkout 776058e
python setup.py install
pip install git+https://github.com/openai/CLIP.git@d50d76d
python3 -m pip install -e .
pip install --ignore-installed numpy==1.23