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

csv error #132

Open
mooncv opened this issue May 26, 2024 · 1 comment
Open

csv error #132

mooncv opened this issue May 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mooncv
Copy link

mooncv commented May 26, 2024

When running, the following error occurs and the number of training sessions is limited to 50. Is it necessary to save csv? I am wondering if there is a way to fix the error or resolve the issue by not saving.

+ python ./get_esc_result.py --exp_path ./exp/test-esc50-f10-t10-impTrue-aspTrue-b16-lr1e-5
Traceback (most recent call last):
  File "/kaggle/working/ast/egs/esc50/./get_esc_result.py", line 21, in <module>
    result = np.loadtxt(args.exp_path+'/fold' + str(fold) + '/result.csv', delimiter=',')
  File "/opt/conda/lib/python3.10/site-packages/numpy/lib/npyio.py", line 1373, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "/opt/conda/lib/python3.10/site-packages/numpy/lib/npyio.py", line 992, in _read
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/opt/conda/lib/python3.10/site-packages/numpy/lib/_datasource.py", line 193, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/opt/conda/lib/python3.10/site-packages/numpy/lib/_datasource.py", line 533, in open
    raise FileNotFoundError(f"{path} not found.")
FileNotFoundError: ./exp/test-esc50-f10-t10-impTrue-aspTrue-b16-lr1e-5/fold1/result.csv not found.
@YuanGongND YuanGongND added the bug Something isn't working label Jun 30, 2024
@YuanGongND
Copy link
Owner

YuanGongND commented Jun 30, 2024

This is likely due to the path "./exp/test-esc50-f10-t10-impTrue-aspTrue-b16-lr1e-5/fold1/" does not exist, our code should automatically mkdir that, but failed due to some reason like permission issue. Do you have w permission? It may not related to csv, and you do not have to save csv, it is just for logging purpose. But if you have permission issue, even you comment out this line you may still get into other bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants