[denoising2D] Error : No such file or directory: 'results/result_denoising_2D_it000
nikhilCad opened this issue · 1 comments
I was trying to run denoising2D file. Downloaded DC dataset, generated .mat file. In the last Block titled "Optimize" I get this error :
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/scipy/io/matlab/mio.py in _open_file(file_like, appendmat, mode)
38 try:
---> 39 return open(file_like, mode), True
40 except IOError:
FileNotFoundError: [Errno 2] No such file or directory: 'results/result_denoising_2D_it00000.mat'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
6 frames
/usr/local/lib/python3.7/dist-packages/scipy/io/matlab/mio.py in _open_file(file_like, appendmat, mode)
43 if appendmat and not file_like.endswith('.mat'):
44 file_like += '.mat'
---> 45 return open(file_like, mode), True
46 else:
47 raise IOError('Reader needs file name or open file-like object')
FileNotFoundError: [Errno 2] No such file or directory: 'results/result_denoising_2D_it00000.mat'
Due to this line,
if i % save_every == 0: scipy.io.savemat("results/result_denoising_2D_it%05d.mat" % (i), {'pred':out_np.transpose(1,2,0), 'pred_avg':out_avg_np.transpose(1,2,0)})
What should be done to resolve it?
You have to create a new folder (name it 'results') at the directory.