abhiskk / ladder

Implementation of Ladder Network in PyTorch.
GNU General Public License v3.0
45 stars 15 forks source link

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

Open vcvishal opened 5 years ago

vcvishal commented 5 years ago

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 commented 3 years ago

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