LibCity / Bigscity-LibCity

LibCity: An Open Library for Urban Spatial-temporal Data Mining
https://libcity.ai/
Apache License 2.0
886 stars 163 forks source link

在运行已复现模型的时候遇到如下问题 #342

Closed qixingyu-code closed 1 year ago

qixingyu-code commented 1 year ago

Traceback (most recent call last): File "/root/autodl-tmp/Bigscity-LibCity/libcity/data/utils.py", line 21, in get_dataset return getattr(importlib.import_module('libcity.data.dataset'), AttributeError: module 'libcity.data.dataset' has no attribute 'ASTGCNDataset'

aptx1231 commented 1 year ago

是运行什么命令出现的问题呢?麻烦提供一下

qixingyu-code commented 1 year ago

python run_model.py --task traffic_state_pred --dataset PeMS04 --model ASTGCN --max_epoch 2 我尝试去使用经典的数据集测试模型的性能,输入命令后就出现之前描述的错误。不知道是什么原因,希望您能解答一下

aptx1231 commented 1 year ago

PeMS04 数据集是在哪下载的?网盘下载的应该是PEMSD4

aptx1231 commented 1 year ago

如果是从PDFormer仓库下载的话,需要改一下名字,因为这个代码做了一个名字的验证。

image

qixingyu-code commented 1 year ago

我的数据集是在LibCity系统的github主页提供的百度网盘下载的,刚刚尝试了一下命令行将数据集名称更换为PEMSD4,但是还是出现了报错,不知道是什么原因导致的 命令行输入 python run_model.py --task traffic_state_pred --dataset PEMSD4 --model ASTGCN SQ734PVVEY17A3I9XYL75PE 2${PY8Y5HI}RSBC 1~(D~}Q 由于终端显示的信息有点多,我依次对提示进行截取

aptx1231 commented 1 year ago

raw_data/目录下边的内容看一下

qixingyu-code commented 1 year ago

JGF(722XCL2 9)WIUBGYJQ 我对raw_data目录的部分数据集(PEMS系统的)进行截取

aptx1231 commented 1 year ago

百度网盘里边就是PEMSD4呀 image

PEMSD4/下边的内容呢,也看一下,是这个吗?

image

qixingyu-code commented 1 year ago

LE2~0K9D9Y}@D(AREXCZN~W 感觉好像没问题啊,为啥我运行总是有bug啊,23333

aptx1231 commented 1 year ago

看你第二张图的报错,应该是gensim的版本问题

qixingyu-code commented 1 year ago

好的,那我再好好调试一下环境,非常感谢您对我问题的解答