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

UnicodeDecodeError #110

Open
Mostalk opened this issue Apr 10, 2020 · 4 comments
Open

UnicodeDecodeError #110

Mostalk opened this issue Apr 10, 2020 · 4 comments

Comments

@Mostalk
Copy link

Mostalk commented Apr 10, 2020

System information

  • csv2TFrecords
  • Windows 10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if
    the issue happens on mobile device:
  • TensorFlow installed from: pip install tensorflow==2.2.0rc2
  • TensorFlow version : 2.2.0-rc2
  • Python version: 3.8.2
  • GPU model: AMD HD 7950

Traceback (most recent call last):
File "tf.py", line 100, in
tf.app.run()
File "C:\Users\Mostalk\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\Mostalk\AppData\Roaming\Python\Python38\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "C:\Users\Mostalk\AppData\Roaming\Python\Python38\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "tf.py", line 91, in main
tf_example = create_tf_example(group, path)
File "tf.py", line 46, in create_tf_example
encoded_jpg = fid.read()
File "C:\Users\Mostalk\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\lib\io\file_io.py", line 116, in read
self._preread_check()
File "C:\Users\Mostalk\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\lib\io\file_io.py", line 78, in _preread_check
self._read_buf = _pywrap_file_io.BufferedInputStream(
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 123: invalid continuation byte

@GabeBMRS
Copy link

Having the same issue.

@yasmineaitouares
Copy link

I'm facing the same issue, did you find a solution ?

@Mostalk
Copy link
Author

Mostalk commented Apr 3, 2021

I'm facing the same issue, did you find a solution ?

No, I tried to repeat, but without success

@yasmineaitouares
Copy link

It was actually a typo error of the command for me, I removed unnecessary spaces and tried to write paths with «\» instead of «/» (or reversed, I don’t really remember), and it worked !

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