You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I run into a UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte error when running scripts/construct_delta_patch.py. Searching online, this looks like Python not opening a file in binary format when it should be. My Python version is 3.7.4 and TensorFlow version is 1.15.0. Is there an older version I should use instead? Thank you.
Full error message:
Traceback (most recent call last):
File "scripts/construct_delta_patch.py", line 220, in <module>
compute_and_save_delta_patch()
File "scripts/construct_delta_patch.py", line 192, in compute_and_save_delta_patch
'dog-bamboo_forest*'))))
File "scripts/construct_delta_patch.py", line 39, in load_imgs
fnames)
File "/Users/.../opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Users/.../opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
File "/Users/.../opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/Users/.../opt/anaconda3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "scripts/construct_delta_patch.py", line 36, in <lambda>
Image.open(tf.gfile.GFile(f)).convert('RGB').resize(
File "/Users/.../opt/anaconda3/lib/python3.7/site-packages/PIL/Image.py", line 2775, in open
prefix = fp.read(16)
File "/Users/.../opt/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/lib/io/file_io.py", line 128, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length))
File "/Users/.../opt/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/lib/io/file_io.py", line 98, in _prepare_value
return compat.as_str_any(val)
File "/Users/.../opt/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/util/compat.py", line 123, in as_str_any
return as_str(value)
File "/Users/.../opt/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/util/compat.py", line 93, in as_text
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
The text was updated successfully, but these errors were encountered:
Hello, I run into a
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
error when runningscripts/construct_delta_patch.py
. Searching online, this looks like Python not opening a file in binary format when it should be. My Python version is 3.7.4 and TensorFlow version is 1.15.0. Is there an older version I should use instead? Thank you.Full error message:
The text was updated successfully, but these errors were encountered: