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

代码异常报错 #3

Open
hzau96yhz opened this issue Apr 14, 2023 · 2 comments
Open

代码异常报错 #3

hzau96yhz opened this issue Apr 14, 2023 · 2 comments

Comments

@hzau96yhz
Copy link

作者您好,在Windows下运行代码,仅test,会报OSError: [Errno 22] Invalid argument: 'data/ckpt/BJ\\STNSCN\\30min\\result_pred\\exp1_Test_mae:12.5180_mape:16.4887_rmse:24.4386.npy',请教一下有好的解决办法吗。

@zyzy6009
Copy link

同问

@kinnisoy
Copy link

windows系统下,路径名不能包含:号,需要将路径名中的冒号修改为其他。下面是我的修改方式(tester.py的第131行):
After:

name = 'exp{:d}_Test_mae_[{:.4f}]_mape_[{:.4f}]_rmse_[{:.4f}]'. \
            format(cfg['expid'], mtest_mae, mtest_mape, mtest_rmse)

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

3 participants