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: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte #85

Open
Moushab opened this issue May 21, 2020 · 2 comments

Comments

@Moushab
Copy link

Moushab commented May 21, 2020

Hi
am getting the following error when running measure_map.py
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

Using TensorFlow backend.
Traceback (most recent call last):
File "measure_map.py", line 106, in
C = pickle.load(f_in)
File "/usr/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 0x80 in position 0: invalid start byte

@bostankhan6
Copy link

I have having the same issue. Can anyone help us with this?

@bostankhan6
Copy link

I have resolved the the above error in the measure_map.py file. The error is when the file is read:

with open(config_output_filename, 'r') as f_in:
C = pickle.load(f_in)

above instead of writing 'r' write 'rb' It will resolve the first issue.

There is a second issue and it is that it does not recognize the keyword 'difficult' in a certain "if" condition part of the code. I don't know from where this comes from but it is unable to find the keyword in the specified dictionary. When i commented this out the code ran fine. However, I am not sure if commenting this condition out would affect the mAP evaluation for the dataset.

I used the following command to run the measure_map.py code:
python measure_map.py -o simple -p test.csv

The link of the edited version of the measure_map is given below:
https://github.com/bostankhan6/Object-Detection-YoloV3-RetinaNet-FasterRCNN/blob/master/Faster%20RCNN/measure_map.py

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