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

module 'pixellib.torchbackend' has no attribute 'instance' #111

Open
taotaoyuhust opened this issue Oct 21, 2021 · 2 comments
Open

module 'pixellib.torchbackend' has no attribute 'instance' #111

taotaoyuhust opened this issue Oct 21, 2021 · 2 comments

Comments

@taotaoyuhust
Copy link

Hi
When i run the 5 lines code , got the error as the title
"module 'pixellib.torchbackend' has no attribute 'instance' "

my pytorch version is 1.6.0
and i already upgrade the version using : pip install pixellib --upgrade

Thank you!

@Jeffrin-J
Copy link

I faced the same issue. I solved it by changing all the import statements in pixellib package which were in the form
import A.B.C as D to from A.B import C as D

@ezeakeal
Copy link

Try this

from pixellib import instance as instanceSegmentation

I found the package was moved to this level using this code

import pixellib
import pkgutil
for p in pkgutil.iter_modules(pixellib.__path__):
    print(p)

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

3 participants