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

TypeError: a bytes-like object is required, not 'str' #3

Open
vcvishal opened this issue May 4, 2019 · 1 comment
Open

TypeError: a bytes-like object is required, not 'str' #3

vcvishal opened this issue May 4, 2019 · 1 comment

Comments

@vcvishal
Copy link

vcvishal commented May 4, 2019

thank you for your code
when i try to run, it gives following error
BATCH SIZE: 100
EPOCHS: 20
RANDOM SEED: 42
NOISE STD: 0.2
LR DECAY EPOCH: 15
CUDA: False

Loading Data
Traceback (most recent call last):
File "ladder/ladder.py", line 283, in
main()
File "ladder/ladder.py", line 127, in main
train_labelled_images = pickle.load(f)
TypeError: a bytes-like object is required, not 'str'

would you please help me
thank you

@999Yy999
Copy link

999Yy999 commented Jul 2, 2021

try to add a reading mode 'mode='rb'' in the 'open' method

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