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

SyntaxError: Non-ASCII character '\xc4' in file hc_deeplab.py, but no encoding declared; #15

Closed
sparshrestha opened this issue Aug 1, 2019 · 1 comment

Comments

@sparshrestha
Copy link

sparshrestha commented Aug 1, 2019

After the setup and all requirements met, running ./run_extract_feat.sh may produce such error in Linux environment.

SyntaxError: Non-ASCII character '\xc4' in file /SIGGRAPH18SSS-master/deeplab_resnet/hc_deeplab.py on line 7, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

@sparshrestha
Copy link
Author

The above error message is displayed by Python when character encoding set other then ASCII is used withing your codebase. Solution here is to add this to the top of your hc_deeplab.py file in deeplab_resnet folder to enable UTF-8 encoding:

# - *- coding: utf- 8 - *-

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

1 participant