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

Undefined name 'mask_utils' in segmentation_mask.py #6

Closed
cclauss opened this issue Sep 12, 2019 · 1 comment
Closed

Undefined name 'mask_utils' in segmentation_mask.py #6

cclauss opened this issue Sep 12, 2019 · 1 comment

Comments

@cclauss
Copy link

cclauss commented Sep 12, 2019

https://github.com/zhangxiaosong18/FreeAnchor/search?q=mask_utils&unscoped_q=mask_utils

flake8 testing of https://github.com/zhangxiaosong18/FreeAnchor on Python 3.7.1

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./maskrcnn_benchmark/structures/segmentation_mask.py:126:20: F821 undefined name 'mask_utils'
            rles = mask_utils.frPyObjects(
                   ^
./maskrcnn_benchmark/structures/segmentation_mask.py:129:19: F821 undefined name 'mask_utils'
            rle = mask_utils.merge(rles)
                  ^
./maskrcnn_benchmark/structures/segmentation_mask.py:130:20: F821 undefined name 'mask_utils'
            mask = mask_utils.decode(rle)
                   ^
3     F821 undefined name 'mask_utils'
3

E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.

  • F821: undefined name name
  • F822: undefined name name in __all__
  • F823: local variable name referenced before assignment
  • E901: SyntaxError or IndentationError
  • E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
@zhangxiaosong18
Copy link
Owner

I didn't notice this code, it's actually unnecessary, I will delete it, thank you for your 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