MiB icon indicating copy to clipboard operation
MiB copied to clipboard

Question about how to install inplace-abn

Open FFFFlamingo opened this issue 3 years ago • 9 comments

Thanks for your great work! How do I install the corresponding version of Inplace-ABN on Windows? 'Pip install inplace-abn' doesn't work.Neither does 'git clone' the package and then 'python setup.py install'. I look forward to your reply.

FFFFlamingo avatar Feb 06 '23 13:02 FFFFlamingo

Hello. Please refer to this repository for the install instruction: https://github.com/mapillary/inplace_abn

fcdl94 avatar Feb 20 '23 10:02 fcdl94

I tried to follow their instructions but they throw errors. https://pastebin.com/BqUnhDSW

cs-mshah avatar Apr 12 '23 11:04 cs-mshah

It seems you have trouble compiling their library. Can you please check if the CUDA and GCC you are using match the requirement? Did you try to install the library from pip?

fcdl94 avatar Apr 12 '23 11:04 fcdl94

Yes all requirements are satisfied. "NOTE 2: we are only able to provide support for Linux platforms and CUDA versions >= 10.0" I am using CUDA 11.7.
I tried using both pip and from source as given in their instructions. Both give the same errors.
Can this repository code be updated to account for new changes: using torch.amp and from torch.nn.parallel import DistributedDataParallel as DDP

cs-mshah avatar Apr 12 '23 13:04 cs-mshah

Take a look at Mibv2 here: https://github.com/fcdl94/MiBv2/

fcdl94 avatar Apr 12 '23 13:04 fcdl94

Thanks for the new implementation. I tried to create an environment using requirements.txt but the inplace-abn package doesn't correctly get installed and I believe the model uses it. Is there a way to do without inplace-abn or can you push the inplace-abn version which works to the repo?

cs-mshah avatar Apr 13 '23 13:04 cs-mshah

Inplace-abn installation is not under my control 😅 Please if you are not able to install it, check their repository. In-place ABN is mandatory for the project, there is no specific version for it (I think only one was released).

fcdl94 avatar Apr 13 '23 13:04 fcdl94

Hi @fcdl94

what is the CUDA version you used for your code?

prinshul avatar Apr 17 '23 06:04 prinshul

It was CUDA 10.2.

fcdl94 avatar Apr 17 '23 08:04 fcdl94