Coder Social home page Coder Social logo

stfgnn-pytorch's People

Contributors

lwm412 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

stfgnn-pytorch's Issues

Conv1d: Expected 2D (unbatched) or 3D (batched) input to conv1d

What version of Pytorch you were using for this code? I use 1.12.1+cu113, but there was an error:
Traceback (most recent call last):
File "main.py", line 33, in
executor.train(train_data, valid_data)
File "/work/users/s/h/shuaishu/Transformer/STFGNN-Pytorch/STFGNN/executor/multi_step_executor.py", line 82, in train
output = self.model(trainx)
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/work/users/s/h/shuaishu/Transformer/STFGNN-Pytorch/STFGNN/model/STFGNN.py", line 416, in forward
x = model(x, self.mask)
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/work/users/s/h/shuaishu/Transformer/STFGNN-Pytorch/STFGNN/model/STFGNN.py", line 204, in forward
data_left = torch.sigmoid(self.conv1(data_temp))
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37pytorch/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37pytorch/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 307, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/work/users/s/h/shuaishu/.conda/STFGNNpy37pytorch/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 304, in _conv_forward
self.padding, self.dilation, self.groups)
RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [64, 64, 358, 12]

I have searched on the Internet about this issue and it is probably due to the version of Pytorch. For 1.12.1+cu113 I use, I need to modify to Conv2d, with the same parameters. Do they do the same things? If so, I will not downgrade my Pytorch version. But I still want to know what version you were using. Thank you so much!

somthing wrong in dealing with Dataset

When I run it in another datasets, it achieve an incredible result. Preds is almost the same with the groud_truth in test_data. And, the groud_truth is changed when self.scaler.inverse_transform is used. Maybe it's not float32? I'm confused

数据集问题

您好,请问一下邻接矩阵是如何生成的,您那边方便提供一下PEMS04,07,08的adj_mx.pkl数据集吗?万分感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.