Skip to content

If you encounter issues related to APE installation, try this #22

Description

@Leon1207
# 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

Activity

  1. pseudo-usama commented on Nov 7, 2025

    @pseudo-usama

    I have cude 13.0 and it has no binary for torch==1.12.1
    I tried upgrading torch to torch==2.9.0, but then while installing detectron2 it expects torch to be 1.12.1

    Is there a way I can make detectron2 to use torch latest version

  2. Leon1207 commented on Nov 9, 2025

    @Leon1207
    OwnerAuthor

    I have cude 13.0 and it has no binary for torch==1.12.1 I tried upgrading torch to torch==2.9.0, but then while installing detectron2 it expects torch to be 1.12.1

    Is there a way I can make detectron2 to use torch latest version

    Hi, maybe you can refer to the APE or detectron2 repo for solutions.

  3. RavenCaffeine commented on Jan 12, 2026

    @RavenCaffeine

    CUDA12.4可以吗

  4. Leon1207 commented on Jan 12, 2026

    @Leon1207
    OwnerAuthor

    CUDA12.4可以吗

    尝试过12.2,是没问题的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions