Closed BBBBchan closed 3 years ago
+1. same question.
I have solved this. The build.py is used to build InplaceABN in kd_model.py, so I just replaced InplaceABN with official implement https://github.com/mapillary/inplace_abn. In this way, we don't need build.py and can run the project in pytorch1.9.1. In my condition, this works well and can get similar performance in paper.
through pip install inplace-abn, i can use import inplace-abn. but how to import inplace_abn_sync? This doesn't seem to work. How do you do it?
can you give me some specific operation?
through pip install inplace-abn, i can use import inplace-abn. but how to import inplace_abn_sync? This doesn't seem to work. How do you do it?
Well, you can just
from inplace_abn import InPlaceABNSync
.
BatchNorm2d = functools.partial(InPlaceABNSync, activation='identity')
thank you. I will try that.
Could you give a more detail operation about how to deal with :TypeError: dist must be a Distribution instance, and how to put the inplace-abn? i don't understand, I have pip install inplace-abn, thanks!
I also has an error --ModuleNotFoundError: No module named 'libs._ext.__ext' )
thank you. I will try that.
Hi, the website provided by the author for downloading the weight files is currently inaccessible, so I'm unable to download the weights. Could you please share the weight files with me? My email is xuyuxiu83@gmail.com.
activation='identity'
hello,I cannot enter the website of the pretrained model now.Could you please share it with me?My email is xuyuxiu83@gmail.com.
When I run
python build.py
to build the native CUDA implementation of InPlace-ABN, I got this error message:I consider that I got this error due to different pytorch version. I run this command in pytorch1,9 and torch.utils.ffi is deprecated. So I change the
bulid.py
file:However, when I run
python build.py
command again, I got this error message:I consider this error is due to the higher pytorch version too. How can I modify the build.py file to get rid of this problem?
My environment: python 3.7 pytorch 1.9 cuda 11.1