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

UnpicklingError: invalid load key, '\x01'. #4

Open
ShakhzodbekYuldoshov opened this issue Jul 1, 2022 · 0 comments
Open

UnpicklingError: invalid load key, '\x01'. #4

ShakhzodbekYuldoshov opened this issue Jul 1, 2022 · 0 comments

Comments

@ShakhzodbekYuldoshov
Copy link

ShakhzodbekYuldoshov commented Jul 1, 2022

UnpicklingError                           Traceback (most recent call last)
Input In [38], in <cell line: 2>()
      1 print(os.getcwd())
----> 2 data = unpickle(file_path)

Input In [12], in unpickle(file)
      1 def unpickle(file):
      2     with open(file, 'rb') as file:
----> 3         return pickle.load(file, encoding='bytes')

UnpicklingError: invalid load key, '\x01'.
```
## used code:
'''
import pickle

def unpickle(file):
    with open(file, 'rb') as file:
        return pickle.load(file, encoding='bytes')

file_path = './data/traffic_sign/out.bin'
data = unpickle(file_path)
'''

this code is working with original cifar10 dataset but giving error with custom dataset created using convert-images-to-cifar-format.py  code.
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

1 participant