kaist-dmlab / DualTF

4 stars 0 forks source link

RuntimeError:The size of tensor a (10224)must match the size of tensor b (5000)at non-singleton dimension 1 #1

Open AndSonder opened 3 weeks ago

AndSonder commented 3 weeks ago

Hi, I just run ECG.sh without change anything. However I meet the following error.

image

Could you help to solve it ?

young-eun-nam commented 3 weeks ago

We apologize for the delay in responding. For an ECG, there are nine datasets. Each dataset has the following shape: (1833, 2) (1841, 2) (2439, 2) (1287, 2) (10863, 2) (3348, 2) (2610, 2) (1121, 2) (2011, 2) (1447, 2) (2943, 2) (2255, 2) (34735, 2) (9882, 2) (2373, 2) (2721, 2) (3152, 2) (1756, 2)

For some datasets, the overall timestamp length is shorter than others. In our experiments, we reported the average window length for the entire ECG dataset, so adjusting the nested window length and sequence length to be shorter will eliminate the Runtime error.