You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or one of the previos steps, since it only seems to work with evenly numbered batch sizes.
To reproduce, with a fresh clone of the repository, run https://github.com/PaddlePaddle/PaddleSpatial/blob/main/research/D3VAE/d3vae_pytorch/main.py
with all arguments set to default except for the path to the dataset, the batch_size and optionally specify which gpu to use. If run with an even integer as batch_size it works:
python main.py --root_path /path/to/ETDataset/ETT-small/ --data_path ETTh1.csv --batch_size 2 --gpu 0
but if the batch_size is uneven, e.g. 1, the code crashes with the following error: PaddleSpatial/research/D3VAE/d3vae_pytorch/model/resnet.py", line 152, in forward output = output.view(-1, int(self.hw/8)*int(self.hw/8)*8*self.dim) RuntimeError: shape '[-1, 8192]' is invalid for input of size
The text was updated successfully, but these errors were encountered:
Hi,
Since here we use the resnet (line 54 in 'model.py') with fixed parameters and structure to calculate the score, so the batch size needs to be set to an even number to adapt to this network.
If the batch size is set to an uneven number, the structure of the resnet needs to be modified as well.
First of all, thank you for your interesting work and for releasing the code on github!
I ran into an issue when I tried to reproduce the paper's results on the ETTh1 dataset. The issue is related to the line below:
PaddleSpatial/research/D3VAE/d3vae_pytorch/model/resnet.py
Line 152 in 13bd2d9
or one of the previos steps, since it only seems to work with evenly numbered batch sizes.
To reproduce, with a fresh clone of the repository, run https://github.com/PaddlePaddle/PaddleSpatial/blob/main/research/D3VAE/d3vae_pytorch/main.py
with all arguments set to default except for the path to the dataset, the batch_size and optionally specify which gpu to use. If run with an even integer as batch_size it works:
python main.py --root_path /path/to/ETDataset/ETT-small/ --data_path ETTh1.csv --batch_size 2 --gpu 0
but if the batch_size is uneven, e.g. 1, the code crashes with the following error:
PaddleSpatial/research/D3VAE/d3vae_pytorch/model/resnet.py", line 152, in forward output = output.view(-1, int(self.hw/8)*int(self.hw/8)*8*self.dim) RuntimeError: shape '[-1, 8192]' is invalid for input of size
The text was updated successfully, but these errors were encountered: