Skip to content

Error in Decoding #1

@ebnuakoh

Description

@ebnuakoh

Hi, I run into this error while trying your code in Jupyter. Here is the error. Kindly help. Thanks!

UnicodeDecodeError Traceback (most recent call last)
in ()
----> 1 run()

in run()
12 batch_extractor(images_path)
13
---> 14 ma = Matcher('features.pck')
15
16 for s in sample:

in init(self, pickled_db_path)
3 def init(self, pickled_db_path="features.pck"):
4 with open(pickled_db_path) as fp:
----> 5 self.data = pickle.load(fp)
6 self.names = []
7 self.matrix = []

~/anaconda3/lib/python3.6/codecs.py in decode(self, input, final)
319 # decode input (taking the buffer into account)
320 data = self.buffer + input
--> 321 (result, consumed) = self._buffer_decode(data, self.errors, final)
322 # keep undecoded input until the next call
323 self.buffer = data[consumed:]

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions