STFGNN icon indicating copy to clipboard operation
STFGNN copied to clipboard

Ask for version information in requirements.txt

Open sam351 opened this issue 2 years ago • 4 comments

Hi, I'm trying to set the environment in colab. I cloned this repo & installed packages with requirements.txt After that, I ran below command as it's mentioned in the README.md.

python main_4n0_3layer_12T_res.py --config config/PEMS04/individual_3layer_12T.json

however, I'm getting AttributeError, which seems to be related with mxnet version issue

Traceback (most recent call last): File "main_4n0_3layer_12T_res.py", line 27, in net = construct_model(config) File "/content/STFGNN/utils_4n0_3layer_12T_res.py", line 41, in construct_model init=mx.init.Constant(value=adj_mx.tolist())) File "/usr/local/lib/python3.7/dist-packages/mxnet/symbol/symbol.py", line 2970, in var init = init.dumps() File "/usr/local/lib/python3.7/dist-packages/mxnet/initializer.py", line 477, in dumps self._kwargs['value'] = val.tolist() if isinstance(val, np.ndarray) else val.asnumpy().tolist() AttributeError: 'list' object has no attribute 'asnumpy'

I think it may be related with mxnet version issue. Could you clarify specific version information of each required packge you used in the project? Or do you have any other possible cause for that Error?

Thank you in advance :)

sam351 avatar Aug 21 '22 07:08 sam351

I am facing the same problem. Have you solved it?

packer-c avatar Nov 15 '22 11:11 packer-c

Nope... I'm still waiting for the reply...

sam351 avatar Dec 01 '22 10:12 sam351

I solved it, just change Mxnet version. My mxnet =1.4.0; Cuda = 10.0; python=3.7 with Windows.

packer-c avatar Dec 04 '22 16:12 packer-c

I solved it, just change Mxnet version. My mxnet =1.4.0; Cuda = 10.0; python=3.7 with Windows.

Is it mxnet-cu100=1.4.0? Could you provide more detailed version information about other packages? I still can't get it to work... Thanks! cf32bb0d674e758e031e88ba37db306

Jaycon98 avatar Jun 05 '23 13:06 Jaycon98