Pycharm中报错 No such file or directory: '../data?
报错如下:
Traceback (most recent call last):
File "D:/Pycharm/PycharmProject/Py/ASTGCN-r-pytorch-master/ASTGCN-r-pytorch-master/prepareData.py", line 309, in <module>
data = np.load(graph_signal_matrix_filename)
File "D:\Anaconda3\envs\Pt1_6\lib\site-packages\numpy\lib\npyio.py", line 416, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '../data/PEMS08/PEMS08.npz'
出错的代码段:
data = np.load(graph_signal_matrix_filename)
data['data'].shape
with contextlib.ExitStack() as stack:
if hasattr(file, 'read'):
fid = file
own_fid = False
else:
fid = stack.enter_context(open(os_fspath(file), "rb"))
own_fid = True
望大佬们解惑,真的不知道怎么改。救救孩子....
0 提建议
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
3 条回答 默认 最新
-
吃布丁的胖丁 2021-06-03 10:53关注
项目里有一个config文件 里面可以修改相应的参数
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?3无用 6