facebookresearch / SlowFast

PySlowFast: video understanding codebase from FAIR for reproducing state-of-the-art video models.
Apache License 2.0
6.65k stars 1.22k forks source link

Couldnt install detectron2 #717

Open Mukil07 opened 3 months ago

Mukil07 commented 3 months ago

My virtual env has :

python 3.8 pytorch 1.10 cuda 10.2

When i try to build detectron2, im getting this error

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.

When I use this command

git clone https://github.com/facebookresearch/detectron2 detectron2_repo
pip install -e detectron2_repo

I get this error,

 subprocess.run(
          File "/home2/mukilan/anaconda3/envs/sf/lib/python3.8/subprocess.py", line 516, in run
            raise CalledProcessError(retcode, process.args,
        subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

I have set the correct cuda arch using these commands

python -c "import torch; print(torch.cuda.get_device_capability())"
export TORCH_CUDA_ARCH_LIST="7.5"

Please help me figure what I am doing wrong here. Thanks !!

sourabCV commented 3 months ago

Try this: make sure torch, torchvision are installed then !git clone https://github.com/facebookresearch/detectron2.git %cd detectron2 !python setup.py build develop