Closed kavinvin closed 4 years ago
Can you check the input sizes that you are feeding? Please add a print statement in appropriate places in this function and check what sort of shapes you are feeding? The file containing this function contains the whole data-loader. You can print in multiple places and try to track the sizes of the inputs (and ground-truth) that is being fed to the model.
It seems to appear randomly once a while in a batch where the shape of one sample is (89, 96, 96, 3) instead of (90, 96, 96, 3), thus causing the shape error. I'm not sure if the problem is from the dataset or get_window
function.
Hi, I will upload a fix to this issue in the repo after digging a bit more about the conditions where such an error can occur. I thought we had kept some sort of a check for this but apparently that is not enough. You can also try keeping a check in the data loader to ensure that the number of frames in a window is equal to the given "T" in hparams.py. I am leaving this issue open until we update the code.
I downloaded the dataset. Processed it. Then trained the model with the following command:
python train.py first_run --data_root Dataset/chem/ --preset synthesizer/presets/chem.json
And on step 8, I got the following error:ValueError: all input arrays must have the same shape
What did I do it wrong here? Thanks!