allanzelener / YAD2K

YAD2K: Yet Another Darknet 2 Keras
Other
2.71k stars 877 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte #99

Open maitham opened 6 years ago

maitham commented 6 years ago

I seem to be getting this error, can anyone help ?

> `./yad2k.py yolo.cfg yolo.weights model_data/yolo.h5
> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
>   from ._conv import register_converters as _register_converters
> Using TensorFlow backend.
> Loading weights.
> Weights Header:  [       0        1        0 32013312]
> Parsing Darknet config.
> <_io.TextIOWrapper name='yolo.cfg' mode='r' encoding='UTF-8'>
> Traceback (most recent call last):
>   File "./yad2k.py", line 271, in <module>
>     _main(parser.parse_args())
>   File "./yad2k.py", line 90, in _main
>     unique_config_file = unique_config_sections(config_path)
>   File "./yad2k.py", line 55, in unique_config_sections
>     for line in fin:
>   File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py", line 321, in decode
>     (result, consumed) = self._buffer_decode(data, self.errors, final)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte`