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

[denoising2D] Error : No such file or directory: 'results/result_denoising_2D_it000 #5

Open
nikhilCad opened this issue Jul 12, 2022 · 1 comment

Comments

@nikhilCad
Copy link

nikhilCad commented Jul 12, 2022

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?
image

@Keiv4n
Copy link

Keiv4n commented Jan 10, 2023

You have to create a new folder (name it 'results') at the directory.

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