AntreasAntoniou / DAGAN

DAGAN: Data Augmentation Generative Adversarial Networks
https://arxiv.org/abs/1711.04340
MIT License
415 stars 103 forks source link

OSError #13

Open stevenveenma opened 6 years ago

stevenveenma commented 6 years ago

Thanks for this interesting repository. I tried it using the instructions but got the error below: OSError: Failed to interpret file 'datasets/omniglot_data.npy' as a pickle

stevenveenma commented 6 years ago

Some more details: Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 428, in load return pickle.load(fid, **pickle_kwargs) _pickle.UnpicklingError: invalid load key, '<'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "train_omniglot_dagan.py", line 8, in num_of_gpus=num_gpus, gen_batches=10) File "/media/DATADRIVE2/Steven/DAGAN/data.py", line 303, in init gen_batches) File "/media/DATADRIVE2/Steven/DAGAN/data.py", line 16, in init self.x_train, self.x_test, self.x_val = self.load_dataset(last_training_class_index) File "/media/DATADRIVE2/Steven/DAGAN/data.py", line 306, in load_dataset self.x = np.load("datasets/omniglot_data.npy") File "/home/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 431, in load "Failed to interpret file %s as a pickle" % repr(file)) OSError: Failed to interpret file 'datasets/omniglot_data.npy' as a pickle