Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'inplace_abn' #22

Open
shanjiuvspikaqiu opened this issue Nov 17, 2020 · 5 comments
Open

ImportError: No module named 'inplace_abn' #22

shanjiuvspikaqiu opened this issue Nov 17, 2020 · 5 comments

Comments

@shanjiuvspikaqiu
Copy link

Thank you for the great work! I met a problem with No module named 'inplace_abn' when I run python3 evaluate.py. After installing inplace_abn from official repo, it works still not.

Do you have any advices? THX and have a nice day!

@juntang-zhuang
Copy link
Owner

juntang-zhuang commented Nov 18, 2020

Hi, I'm not sure, could it be a problem related to the path in your python environment? The source of inplace_abn is in https://github.com/juntang-zhuang/ShelfNet/tree/941c71cc85a3d6227c03ed435b1ad80c6c39573f/ShelfNet18_realtime/modules/src Could you try setting up from here?

@shanjiuvspikaqiu
Copy link
Author

@juntang-zhuang Thank you for the reply. I will be appreciate, if you could tell me how to set up from /moudules/src.

@juntang-zhuang
Copy link
Owner

I can directly run it. I guess it's a problem with your path environment. My code is modified from https://github.com/CoinCheung/BiSeNet/tree/master/old , seems no need to setup

@shanjiuvspikaqiu
Copy link
Author

shanjiuvspikaqiu commented Dec 9, 2020

@juntang-zhuang You are right, thank you! I changed the environment into Python 3.6 and PyTorch 1.1 , it works!
(tiny suggestion: maybe you can change the Requirements more specific in README.md)

I tried python 3.7 & PyTorch 1.2, 1.6, 1.7, found you mentioned here #18 (comment)
Are there any codes to inference the images? I'd like to see how good the result with rgb labels is. Have a nice day!

@juntang-zhuang
Copy link
Owner

juntang-zhuang commented Dec 24, 2020

I think you can change the dataloader to inference the images. Currently I don't have any code to directly inference on given images.
Just changed readme with PyTorch version, thanks for suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants