faster-rcnn-pytorch icon indicating copy to clipboard operation
faster-rcnn-pytorch copied to clipboard

import _C

Open edehino opened this issue 2 years ago • 3 comments

I saw that in your ipynb file, you have import _C. May I know what it is? I am ready familiar with it

edehino avatar May 03 '22 23:05 edehino

When you run python setup.py develop, it uses Extension package from PyTorch for compile and future use some utils (NMS, ROI_Align, ROI_Pool, etc.) written on C++. This line on code of setup.py.

All C++ sources you can find in ./lib/csrc/

I am ready familiar with it

May be you need to update some python dependencies from notebook, i used it long time ago.

loolzaaa avatar May 04 '22 06:05 loolzaaa

Thank you for that!

Also, I am trying to replicate your installation: !pip install torch==1.4.0+cu100 torchvision==0.5.0+cu100 -f https://download.pytorch.org/whl/torch_stable.html

But when I try to, it prompts me that the earliest I could get it torch==1.7.1+cu101

Would this still work?

On Wed, May 4, 2022 at 2:43 PM Andrey Korsakov @.***> wrote:

When you run python setup.py develop, it uses Extension package from PyTorch for compile and future use some utils (NMS, ROI_Align, ROI_Pool, etc.) written on C++. This line on code https://github.com/loolzaaa/faster-rcnn-pytorch/blob/110e9e36704da378990ab80b2b3382345ca5d030/lib/setup.py#L30 of setup.py.

All C++ sources you can find in ./lib/csrc/

I am ready familiar with it

May be you need to update some python dependencies from notebook, i used it long time ago.

— Reply to this email directly, view it on GitHub https://github.com/loolzaaa/faster-rcnn-pytorch/issues/9#issuecomment-1116977967, or unsubscribe https://github.com/notifications/unsubscribe-auth/APN24GCWA7KSWI7WKKPEXWLVIIL73ANCNFSM5VAMOB4Q . You are receiving this because you authored the thread.Message ID: @.***>

-- The information contained in the email (any attachment and response string) is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email and then delete the email and any copies of it. Any views or opinions expressed within the email are solely those of the sender and do not necessarily represent those of the University of the Philippines.

edehino avatar May 06 '22 03:05 edehino

There is no problem with Cuda 10.1

I ran this notebook when PyTorch 1.5.0 was latest release. Previously, version 1.5.0 could work without changes, but I can't say the same about versions 1.5.0+

The PyTorch team sometimes makes breaking changes to their framework. If you decide to use version 1.7.1, then you may have to make changes to the neural network code.

Feel free to pull requests for fixes to support the new version.

loolzaaa avatar May 06 '22 05:05 loolzaaa