dansuh17 / segan-pytorch

SEGAN pytorch implementation https://arxiv.org/abs/1703.09452
GNU General Public License v3.0
106 stars 32 forks source link

OSError: [Errno 5] Input/output error #19

Closed 571946808 closed 4 years ago

571946808 commented 5 years ago

hello,how to resolve this problem,thank you. Traceback (most recent call last): File "model.py", line 399, in for i, sample_batch_pairs in enumerate(random_data_loader): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 623, in next return self._process_next_batch(batch) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 658, in _process_next_batch raise batch.exc_type(batch.exc_msg) OSError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 138, in _worker_loop samples = collate_fn([dataset[i] for i in batch_indices]) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 138, in samples = collate_fn([dataset[i] for i in batch_indices]) File "/content/drive/SEGAN/data_generator.py", line 56, in getitem pair = np.load(self.filepaths[idx]) File "/usr/local/lib/python3.6/dist-packages/numpy/lib/npyio.py", line 404, in load magic = fid.read(N) OSError: [Errno 5] Input/output error

dansuh17 commented 5 years ago

Do you have the appropriate files in the target directory that have been preprocessed and properly np.save() ed?

571946808 commented 5 years ago

yes,it interrupt at "Epoch 1 Step 90", the files is in the target directory

dansuh17 commented 5 years ago

Hmm, the Input/output error is not that common and the error itself does not actually tell much. In my experience, those are mostly seen when there is a problem with our OS / hardware. It might be your SSD / RAM being broken, insufficient memory, or your disk (in which you store the training files) are broken.

BoostMom commented 1 year ago

have you solved the problem?