-
Notifications
You must be signed in to change notification settings - Fork 2.5k
RuntimeError: Error compiling objects for extension #1236
Comments
I have the same problem. Please let me know if you can solve it. Thank you |
is there any updates? |
6 errors detected in the compilation of "/tmp/tmpxft_00009924_00000000-6_deform_conv_cuda.cpp1.ii". During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I solved it. |
thank you very much! |
hey, I have the same problem but I cant figure out how i can change my pytorch version to the correct version. I have the following Version Python 3.8.2 (default, May 6 2020, 09:02:42) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
and i have the cuda driver 10.2 Can you please help me to solve the problem. |
i finally chose Detectron2 and the installation (ubuntu20 cuda 10.2 pytorch 1.5stable) is very easy |
I have the same problem. I use:
I tried other versions of Pytorch, Cuda, GCC and Ubuntu. But the error remains. Can you help me?! |
I use : I was able to run the program. |
i was able to compile it with pytorch 1.4, but fails with teh same error on pytorch 1.5 |
In my case it worked when using version 0.5.0 of torchvision that comes with pytorch 1.4. In version 1.5 of pytorch the default torchdivion is version 0.6.0. When using torchdivion 0.6.0 the same error occurs. |
The current release works in windows 10 if you have torch==1.4.0 and torchvision ==0.5.0. |
Works with PyTorch 1.4.0 and torchvision 0.5.0 for me. Not PyTorch 1.5.1 and torchvision 0.6.1! |
Thank you guys!
This works perfectly well. |
@HaiyiMei same for me! pyTorch 1.4.0 and torchvision 0.5.0 seems to be the only working version combination with CUDA 10.1 |
Thanks for answering! I failed when I used torch.version=1.8.1 and torchvision.version=0.9.x, after I degraded my torch version to 1.5.0 it still failed. Only when I degraded my torch to 1.4.0 and torchvision to 0.5.0(at the same time I degrade my cuda to 10.1), I successfully compile 'python setup.py build develop' |
I have torch=1.4.0, torchvision=0.5.0, and cuda=10.1 and I am still getting this error :( |
I use: and I am still getting this error :( |
I hava this save problem |
I followed the instruction there and solved this issue by typing
Now it works with CUDA 11.0 and Pytorch 1.7 Hope it helps! |
Thanks!!!!! it even works with PyTorch 1.9 |
It's also important to add the python version. This only works for Python 1.6 for me - doesn't work for 1.7/1.8/1.9. |
You are a legend! Many thanks! |
it not works in my googlecolab huhu |
Awesome! Thank you! |
still have the same error
|
%%writefile setup.sh
maskrcnn_benchmark and coco api dependencies
pip install ninja yacs cython matplotlib tqdm opencv-python cityscapesscripts
follow PyTorch installation in https://pytorch.org/get-started/locally/
we give the instructions for CUDA 9.0
pip install -c pytorch pytorch-nightly torchvision cudatoolkit=9.0
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
python setup.py build_ext install
cd ../../
install apex
rm -rf apex
git clone https://github.com/NVIDIA/apex.git
cd apex
git pull
python setup.py install --cuda_ext --cpp_ext
cd ../
install PyTorch Detection
git clone https://github.com/facebookresearch/maskrcnn-benchmark.git
cd maskrcnn-benchmark
the following will install the lib with
symbolic links, so that you can modify
the files if you want and won't need to
re-build it
python setup.py build develop
!sh setup.sh
RuntimeError: Error compiling objects for extension
When I execute the above command, I get an error. why.
running on google colab
The text was updated successfully, but these errors were encountered: