8000 mac run error:UnicodeDecodeError: 'ascii' codec can't decode byte 0xbc in position 24: ordinal not in range(128) · Issue #17 · bakwc/PornDetector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mac run error:UnicodeDecodeError: 'ascii' codec can't decode byte 0xbc in position 24: ordinal not in range(128) #17

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

Open
gclsoft opened this issue Jan 27, 2019 · 1 comment

Comments

@gclsoft
Copy link
gclsoft commented Jan 27, 2019
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1741, in <module>
    main()
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1735, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1135, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/Users/apple/PycharmProjects/face/face_recognition/examples/porn/pornDect.py", line 4, in <module>
    model.loadModel('model.bin')
  File "/Users/apple/PycharmProjects/face/face_recognition/examples/porn/pcr.py", line 156, in loadModel
    data = pickle.loads(data)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbc in position 24: ordinal not in range(128)
@MNCTTY
Copy link
MNCTTY commented Dec 16, 2019

data = pickle.loads(data, encoding = 'latin1')

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
0